记录详情

Runtime Error

/in/foo.cc: In function 'void kruskal()':
/in/foo.cc:25:13: warning: array subscript is above array bounds [-Warray-bounds]
   q=find(a[i].from);
          ~~~^
/in/foo.cc:26:13: warning: array subscript is above array bounds [-Warray-bounds]
   p=find(a[i].to);
          ~~~^
/in/foo.cc:28:11: warning: array subscript is above array bounds [-Warray-bounds]
   sum+=a[i].wi;
        ~~~^
/in/foo.cc: In function 'int main()':
/in/foo.cc:44:33: warning: array subscript is above array bounds [-Warray-bounds]
   cin>>a[i].from>>a[i].to>>a[i].wi;
                                 ^~
/in/foo.cc:44:24: warning: array subscript is above array bounds [-Warray-bounds]
   cin>>a[i].from>>a[i].to>>a[i].wi;
                        ^~
/in/foo.cc:44:13: warning: array subscript is above array bounds [-Warray-bounds]
   cin>>a[i].from>>a[i].to>>a[i].wi;
             ^~~~
/in/foo.cc:45:11: warning: array subscript is above array bounds [-Warray-bounds]
   ans+=a[i].wi;
        ~~~^
# 状态 耗时 内存占用
#1 Time Exceeded ≥1001ms ≥324.0 KiB
#2 Runtime Error 2ms 324.0 KiB
#3 Time Exceeded ≥1001ms ≥328.0 KiB
#4 Time Exceeded ≥1001ms ≥320.0 KiB
#5 Time Exceeded ≥1004ms ≥324.0 KiB
#6 Runtime Error 1ms 324.0 KiB
#7 Runtime Error 1ms 324.0 KiB
#8 Runtime Error 1ms 328.0 KiB
#9 Time Exceeded ≥1001ms ≥328.0 KiB
#10 Time Exceeded ≥1003ms ≥328.0 KiB

信息

递交者
类型
递交
题目
局域网
语言
C++
递交时间
2019-04-18 21:41:14
评测时间
2019-04-18 21:41:14
评测机
分数
0
总耗时
6022ms
峰值内存
328.0 KiB