Compile Error
foo.cc: In function ‘int main()’: foo.cc:13:29: error: ‘n’ was not declared in this scope 13 | a[++n]=t%2; | ^ foo.cc:16:32: error: ‘n’ was not declared in this scope 16 | for(int j=1;j<=n;j++) | ^
信息
- 递交者
- 类型
- 递交
- 题目
- P2948 幂和数
- 语言
- C++
- 递交时间
- 2025-08-13 17:55:22
- 评测时间
- 2025-08-13 17:55:22
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes