Compile Error
foo.cc: In function ‘int main()’:
foo.cc:10:26: error: redeclaration of ‘int x’
10 | int n;cin>>n;int x,y,x;
| ^
foo.cc:10:22: note: ‘int x’ previously declared here
10 | int n;cin>>n;int x,y,x;
| ^
foo.cc:11:26: error: ‘z’ was not declared in this scope
11 | while(cin>>x>>y>>z,x) w[x][y]=z;
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P2844 藏书阁中的智慧 pta202411T4
- 语言
- C++
- 递交时间
- 2026-10-16 09:45:16
- 评测时间
- 2026-10-16 09:45:16
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes