记录详情

Compile Error

/in/foo.cc:5:8: error: stray '\357' in program
   int i,n,sum;
        ^
/in/foo.cc:5:9: error: stray '\274' in program
   int i,n,sum;
         ^
/in/foo.cc:5:10: error: stray '\214' in program
   int i,n,sum;
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:11: error: expected initializer before 'n'
   int i,n,sum;
           ^
/in/foo.cc:6:8: error: 'n' was not declared in this scope
   cin>>n;
        ^
/in/foo.cc:7:7: error: 'i' was not declared in this scope
   for(i<n,i++)
       ^
/in/foo.cc:11:9: error: 'sum' was not declared in this scope
   cout<<sum<<endl;
         ^~~
/in/foo.cc:12:3: error: expected primary-expression before 'return'
   return 0;
   ^~~~~~
/in/foo.cc:12:3: error: expected ')' before 'return'

信息

递交者
类型
递交
题目
A2-3 循环结构入门:斐波拉契数列的和
语言
C++
递交时间
2024-10-15 20:28:47
评测时间
2024-10-15 20:28:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes