记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:10:18: warning: array subscript is above array bounds [-Warray-bounds]
  a[1]=n/10%10;a[2]=n%10;
               ~~~^
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
  sort(a,a+3);
  ~~~~^~~~~~~
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
foo.cc:11:6: warning: array subscript is above array bounds [-Warray-bounds]
foo.cc:12:23: warning: array subscript is above array bounds [-Warray-bounds]
  cout<<a[0]<<a[1]<<a[2];
                       ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Aborted 2ms 384.0 KiB
#2 Runtime Error Aborted 2ms 388.0 KiB
#3 Runtime Error Aborted 2ms 384.0 KiB
#4 Runtime Error Aborted 2ms 384.0 KiB
#5 Runtime Error Aborted 2ms 384.0 KiB
#6 Runtime Error Aborted 2ms 384.0 KiB
#7 Runtime Error Aborted 2ms 384.0 KiB
#8 Runtime Error Aborted 2ms 384.0 KiB
#9 Runtime Error Aborted 2ms 384.0 KiB
#10 Runtime Error Aborted 2ms 384.0 KiB
#11 Runtime Error Aborted 2ms 384.0 KiB
#12 Runtime Error Aborted 2ms 384.0 KiB
#13 Runtime Error Aborted 2ms 384.0 KiB
#14 Runtime Error Aborted 2ms 384.0 KiB
#15 Runtime Error Aborted 2ms 384.0 KiB
#16 Runtime Error Aborted 2ms 384.0 KiB
#17 Runtime Error Aborted 2ms 384.0 KiB
#18 Runtime Error Aborted 2ms 384.0 KiB
#19 Runtime Error Aborted 2ms 384.0 KiB
#20 Runtime Error Aborted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1270 数字重排
比赛
2021苏青奥赛集训营(2021/7/17训练赛)
语言
C++
递交时间
2021-07-17 08:42:56
评测时间
2021-07-17 08:42:56
评测机
分数
0
总耗时
50ms
峰值内存
388.0 KiB