Compile Error

foo.cc: In function 'int main()':
foo.cc:5:7: error: expected initializer before '+' token
    5 |  int a+1,b+1,c;
      |       ^
foo.cc:6:8: error: 'a' was not declared in this scope
    6 |  cout<<a<<" "<<b<<" ";
      |        ^
foo.cc:6:16: error: 'b' was not declared in this scope
    6 |  cout<<a<<" "<<b<<" ";
      |                ^
foo.cc:9:3: error: 'c' was not declared in this scope
    9 |   c=a+b;
      |   ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1039 斐波那契数列
语言
C++
递交时间
2021-12-11 09:20:51
评测时间
2021-12-11 09:20:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes