Compile Error

foo.cc:4:1: error: expected initializer before 'int'
 int fibonacci(int n)
 ^~~
foo.cc: In function 'int main()':
foo.cc:20:6: error: 'n' was not declared in this scope
 cin>>n;
      ^
foo.cc:20:6: note: suggested alternative: 'yn'
 cin>>n;
      ^
      yn
foo.cc:21:8: error: 'f' was not declared in this scope
  int s=f(n);
        ^
foo.cc:22:12: error: 'a1' was not declared in this scope
  cout<<a0<<a1;
            ^~
foo.cc:22:12: note: suggested alternative: 'a0'
  cout<<a0<<a1;
            ^~
            a0
foo.cc:21:6: warning: unused variable 's' [-Wunused-variable]
  int s=f(n);
      ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1911 斐波那契之函数调用
语言
C++
递交时间
2021-05-20 06:55:06
评测时间
2021-05-20 06:55:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes