Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(int i=1;i<=n;i++)
| ^~~
/in/foo.cc:11:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
11 | cin>>a[i].p;>>a[i].v
| ^~
/in/foo.cc:11:29: error: expected primary-expression before '>>' token
/in/foo.cc:11:33: error: 'i' was not declared in this scope
11 | cin>>a[i].p;>>a[i].v
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P3018 道具商店202512GESP6级T2
- 语言
- C++
- 递交时间
- 2026-02-23 09:35:14
- 评测时间
- 2026-02-23 09:35:14
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes