Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:28: error: expected ';' before '}' token
15 | l++
| ^
| ;
16 | }
| ~
/in/foo.cc:24:39: error: 'lj' was not declared in this scope; did you mean 'j'?
24 | for(int j=0;j<lj++)
| ^~
| j
/in/foo.cc:24:43: error: expected ';' before ')' token
24 | for(int j=0;j<lj++)
| ^
| ;
/in/foo.cc:24:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
24 | for(int j=0;j<lj++)
| ^~~
/in/foo.cc:26:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
26 | sum+=cnt;
| ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P2592 自幂数判断 2级2 2023.6
- 语言
- C++
- 递交时间
- 2025-12-21 10:04:03
- 评测时间
- 2025-12-21 10:04:03
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes