Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:52:35: warning: operation on 'jj' may be undefined [-Wsequence-point]
   52 |                     a[++jj][i]=(a[++jj][i]+j)%10;
      |                                   ^~~~
/in/foo.cc:52:35: warning: operation on 'jj' may be undefined [-Wsequence-point]
/in/foo.cc:75:31: warning: operation on 'jj' may be undefined [-Wsequence-point]
   75 |                 b[++jj][i]=(b[++jj][i]+j)%10;
      |                               ^~~~
/in/foo.cc:75:31: warning: operation on 'jj' may be undefined [-Wsequence-point]
/in/foo.cc:23:5: warning: label 'std' defined but not used [-Wunused-label]
   23 |     std:ios::sync_with_stdio(false);
      |     ^~~
/in/foo.cc:84:98: warning: array subscript 5 is above array bounds of 'int [5]' [-Warray-bounds]
   84 |                 if(a[i][1]==b[j][1]&&a[i][2]==b[j][2]&&a[i][3]==b[j][3]&&a[i][4]==b[j][4]&&a[i][5]==b[j][5])
      |                                                                                            ~~~~~~^
/in/foo.cc:3:17: note: while referencing 'a'
    3 | int n,ans,st[6],a[105][5],b[105][5],k,lo=81;
      |                 ^
/in/foo.cc:84:107: warning: array subscript 5 is above array bounds of 'int [5]' [-Warray-bounds]
   84 |                 if(a[i][1]==b[j][1]&&a[i][2]==b[j][2]&&a[i][3]==b[j][3]&&a[i][4]==b[j][4]&&a[i][5]==b[j][5])
      |                                                                                                     ~~~~~~^
/in/foo.cc:3:27: note: while referencing 'b'
    3 | int n,ans,st[6],a[105][5],b[105][5],k,lo=81;
      |                           ^
/in/foo.cc:63:19: warning: array subscript 5 is above array bounds of 'int [5]' [-Warray-bounds]
   63 |             b[i][5]=st[5];
      |             ~~~~~~^
/in/foo.cc:3:27: note: while referencing 'b'
    3 | int n,ans,st[6],a[105][5],b[105][5],k,lo=81;
      |                           ^
/in/foo.cc:40:23: warning: array subscript 5 is above array bounds of 'int [5]' [-Warray-bounds]
   40 |                 a[i][5]=st[5];
      |                 ~~~~~~^
/in/foo.cc:3:17: note: while referencing 'a'
    3 | int n,ans,st[6],a[105][5],b[105][5],k,lo=81;
      |                 ^
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 2ms 476.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Wrong Answer 2ms 536.0 KiB
#5 Accepted 2ms 504.0 KiB
#6 Wrong Answer 2ms 480.0 KiB
#7 Wrong Answer 2ms 476.0 KiB
#8 Wrong Answer 2ms 476.0 KiB
#9 Wrong Answer 1ms 560.0 KiB
#10 Wrong Answer 2ms 348.0 KiB

信息

递交者
类型
递交
题目
P2476 密码锁
比赛
2025CSP模拟赛1-2
语言
C++
递交时间
2025-10-05 20:59:29
评测时间
2025-10-05 20:59:32
评测机
分数
40
总耗时
20ms
峰值内存
560.0 KiB