Wrong Answer
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:39: warning: array subscript -1 is below array bounds of 'int [100005]' [-Warray-bounds]
11 | ans+=a[i]-a[-1];
| ~~~~^
/in/foo.cc:3:7: note: while referencing 'a'
3 | int n,a[100005],ans;
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1402 积木大赛
- 语言
- C++
- 递交时间
- 2026-05-17 09:10:49
- 评测时间
- 2026-05-17 09:10:49
- 评测机
- 分数
- 10
- 总耗时
- 50ms
- 峰值内存
- 828.0 KiB