记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:16: error: expected initializer before '.' token
   10 |         int cin.ignore();
      |                ^
/in/foo.cc:11:16: error: expected initializer before 'input'
   11 |     int string input;
      |                ^~~~~
/in/foo.cc:12:22: error: 'input' was not declared in this scope; did you mean 'int'?
   12 |     int getline(cin, input);
      |                      ^~~~~
      |                      int
/in/foo.cc:12:27: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |     int getline(cin, input);
      |                           ^
/in/foo.cc:16:5: error: 'reverse' was not declared in this scope
   16 |     reverse(input.begin(), input.end());
      |     ^~~~~~~
/in/foo.cc:12:9: warning: unused variable 'getline' [-Wunused-variable]
   12 |     int getline(cin, input);
      |         ^~~~~~~

信息

递交者
类型
递交
题目
P1097 xf2-10倒叙输出
比赛
2025年春 南师大《程序设计与竞赛》作业赛第四场
语言
C++
递交时间
2025-03-29 20:54:20
评测时间
2025-03-29 20:54:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes