/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:17: warning: array subscript is above array bounds [-Warray-bounds]
           a[k][2]=1;
           ~~~~~~^
/in/foo.cc:31:20: warning: array subscript is above array bounds [-Warray-bounds]
              a[i][2]++;
              ~~~~~~^
/in/foo.cc:31:20: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:39:12: warning: array subscript is above array bounds [-Warray-bounds]
      a[k][2]++;
      ~~~~~~^
/in/foo.cc:39:12: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:51:22: warning: array subscript is above array bounds [-Warray-bounds]
          temp2=a[i][2];
                ~~~~~~^
/in/foo.cc:52:24: warning: array subscript is above array bounds [-Warray-bounds]
          a[i][2]=a[j][2];
                  ~~~~~~^
/in/foo.cc:52:16: warning: array subscript is above array bounds [-Warray-bounds]
          a[i][2]=a[j][2];
          ~~~~~~^
/in/foo.cc:53:16: warning: array subscript is above array bounds [-Warray-bounds]
          a[j][2]=temp2;
          ~~~~~~^
/in/foo.cc:57:30: warning: array subscript is above array bounds [-Warray-bounds]
    cout<<a[i][1]<<" "<<a[i][2]<<endl;
                              ^
# 状态 耗时 内存占用
#1 Accepted 4ms 348.0 KiB
#2 Accepted 4ms 368.0 KiB
#3 Accepted 5ms 368.0 KiB
#4 Accepted 98ms 384.0 KiB
#5 Accepted 368ms 364.0 KiB
#6 Accepted 488ms 344.0 KiB
#7 Accepted 383ms 372.0 KiB
#8 Accepted 836ms 336.0 KiB
#9 Accepted 978ms 488.0 KiB
#10 Accepted 1ms 360.0 KiB

信息

递交者
类型
递交
题目
P1816 统计数字
语言
C++
递交时间
2017-10-15 20:32:54
评测时间
2017-10-15 20:32:54
评测机
分数
100
总耗时
3170ms
峰值内存
488.0 KiB