Compile Error
foo.cc: In function ‘int main()’:
foo.cc:18:28: error: expected primary-expression before ‘)’ token
18 | if()
| ^
foo.cc:19:9: error: expected primary-expression before ‘}’ token
19 | }
| ^
foo.cc:21:2: error: expected ‘}’ at end of input
21 | }
| ^
foo.cc:3:11: note: to match this ‘{’
3 | int main(){
| ^
foo.cc:5:17: warning: unused variable ‘sum’ [-Wunused-variable]
5 | int n,m,sum=0;
| ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P3053 山之谷 GESP202603 四级T1
- 语言
- C++
- 递交时间
- 2026-05-01 17:18:47
- 评测时间
- 2026-05-01 17:18:47
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes