0 Runtime Error
foo.cc: In function 'int main()': foo.cc:10:37: warning: iteration 2009 invokes undefined behavior [-Waggressive-loop-optimizations] 10 | for(int j=1;j<=2010;j++)a[j]=0; | ~~~~^~ foo.cc:10:22: note: within this loop 10 | for(int j=1;j<=2010;j++)a[j]=0; | ~^~~~~~ foo.cc:19:19: warning: iteration 2009 invokes undefined behavior [-Waggressive-loop-optimizations] 19 | if(a[j]>=2)cnt+=j; | ~~~^ foo.cc:18:22: note: within this loop 18 | for(int j=1;j<=2010;j++){ | ~^~~~~~ foo.cc:10:37: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [8040, 8043] is out of the bounds [0, 8040] of object 'a' with type 'int [2010]' [-Warray-bounds=] 10 | for(int j=1;j<=2010;j++)a[j]=0; | ~~~~^~ foo.cc:9:13: note: 'a' declared here 9 | int a[2010]; | ^
# | 状态 分数 | 耗时 | 内存占用 |
---|
#1 | Wrong Answer 0 | 1ms | 404 KiB |
#2 | Wrong Answer 0 | 1ms | 404 KiB |
#3 | Wrong Answer 0 | 1ms | 404 KiB |
#4 | Wrong Answer 0 | 1ms | 404 KiB |
#5 | Wrong Answer 0 | 1ms | 404 KiB |
#6 | Wrong Answer 0 | 1ms | 404 KiB |
#7 | Wrong Answer 0 | 1ms | 324 KiB |
#8 | Wrong Answer 0 | 4ms | 404 KiB |
#9 | Wrong Answer 0 | 4ms | 404 KiB |
#10 | Wrong Answer 0 | 4ms | 404 KiB |
#11 | Runtime Error 0 | 11ms | 404 KiB |
#12 | Runtime Error 0 | 11ms | 404 KiB |
#13 | Wrong Answer 0 | 187ms | 412 KiB |
#14 | Wrong Answer 0 | 185ms | 320 KiB |
#15 | Wrong Answer 0 | 187ms | 408 KiB |
#16 | Runtime Error 0 | 21ms | 404 KiB |
#17 | Runtime Error 0 | 22ms | 412 KiB |
#18 | Runtime Error 0 | 22ms | 404 KiB |
#19 | Runtime Error 0 | 20ms | 404 KiB |
#20 | Runtime Error 0 | 22ms | 404 KiB |
代码
信息
- 递交者
- 题目
- CSPS2024GFC 染色
- 比赛
- 【官方数据】CSP-S 2024 ZJ 批量测试
- 语言
- C++ 14(O2)
- 代码长度
- 525 Bytes
- 递交时间
- 2024-11-4 20:34:32
- 评测时间
- 2024-11-4 23:41:01
- 分数
- 0
- 总耗时
- 708ms
- 峰值时间
- 187ms
- 峰值内存
- 412 KiB