Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:33:33: error: 'elseif' was not declared in this scope
   33 |                                 elseif(row==1) {
      |                                 ^~~~~~
/in/foo.cc:42:33: error: expected '}' before 'else'
   42 |                                 else {
      |                                 ^~~~
/in/foo.cc:29:50: note: to match this '{'
   29 |                         } else if (digit == '3') {
      |                                                  ^
/in/foo.cc:47:23: error: 'line' was not declared in this scope; did you mean 'link'?
   47 |                 cout<<line<<endl;
      |                       ^~~~
      |                       link
/in/foo.cc: At global scope:
/in/foo.cc:49:9: error: 'return0' does not name a type
   49 |         return0;
      |         ^~~~~~~
/in/foo.cc:50:1: error: expected declaration before '}' token
   50 | }
      | ^

信息

递交者
类型
递交
题目
P2852 打印数字2024.12GESP3级T2
语言
C++
递交时间
2026-08-09 12:21:51
评测时间
2026-08-09 12:21:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes