/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:61:30: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
             p[cnt].x = x[i][j];
                        ~~~~~~^
/in/foo.cc:58:26: note: within this loop
         for(int j = 1; j <= 4; ++j)
                        ~~^~~~
/in/foo.cc:40:20: warning: array subscript is above array bounds [-Warray-bounds]
         dis2 = dist(x[i][1],y[i][1],x[i][3],y[i][3]),
                ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:40:20: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:41:20: warning: array subscript is above array bounds [-Warray-bounds]
         dis3 = dist(x[i][2],y[i][2],x[i][3],y[i][3]);
                ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:41:20: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:45:45: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][1]+x[i][2]-x[i][3];
                                       ~~~~~~^
/in/foo.cc:45:19: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][1]+x[i][2]-x[i][3];
             ~~~~~~^
/in/foo.cc:46:45: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][1]+y[i][2]-y[i][3];
                                       ~~~~~~^
/in/foo.cc:46:19: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][1]+y[i][2]-y[i][3];
             ~~~~~~^
/in/foo.cc:50:37: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][1]+x[i][3]-x[i][2];
                               ~~~~~~^
/in/foo.cc:50:19: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][1]+x[i][3]-x[i][2];
             ~~~~~~^
/in/foo.cc:51:37: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][1]+y[i][3]-y[i][2];
                               ~~~~~~^
/in/foo.cc:51:19: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][1]+y[i][3]-y[i][2];
             ~~~~~~^
/in/foo.cc:55:37: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][2]+x[i][3]-x[i][1];
                               ~~~~~~^
/in/foo.cc:55:19: warning: array subscript is above array bounds [-Warray-bounds]
             x[i][4] = x[i][2]+x[i][3]-x[i][1];
             ~~~~~~^
/in/foo.cc:56:37: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][2]+y[i][3]-y[i][1];
                               ~~~~~~^
/in/foo.cc:56:19: warning: array subscript is above array bounds [-Warray-bounds]
             y[i][4] = y[i][2]+y[i][3]-y[i][1];
             ~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 3ms 340.0 KiB
#2 Accepted 4ms 256.0 KiB
#3 Accepted 3ms 376.0 KiB
#4 Accepted 2ms 496.0 KiB
#5 Accepted 3ms 632.0 KiB

信息

递交者
类型
递交
题目
P1119 Car的旅行路线
语言
C++
递交时间
2017-11-22 20:26:08
评测时间
2017-11-22 20:26:08
评测机
分数
100
总耗时
17ms
峰值内存
632.0 KiB