/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void Plus(int*, int*, int*)':
/in/foo.cc:29:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i=e;i>=e+1-ans[0];i--) ans[i]=0; ans[0]=0;
  ^~~
/in/foo.cc:29:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (i=e;i>=e+1-ans[0];i--) ans[i]=0; ans[0]=0;
                                        ^~~
/in/foo.cc: In function 'void multiply(int*, int*, int*)':
/in/foo.cc:53:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i=e;i>=e+1-ans[0];i--) ans[i]=0; ans[0]=0;
  ^~~
/in/foo.cc:53:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (i=e;i>=e+1-ans[0];i--) ans[i]=0; ans[0]=0;
                                        ^~~
/in/foo.cc:54:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (a[0]==1&&a[e]==0 || b[0]==1&&b[e]==0) 
      ~~~~~~~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 3.375 MiB
#2 Accepted 6ms 3.531 MiB
#3 Accepted 9ms 3.375 MiB
#4 Accepted 13ms 3.375 MiB
#5 Accepted 13ms 3.445 MiB
#6 Accepted 20ms 3.375 MiB
#7 Accepted 38ms 3.375 MiB
#8 Accepted 130ms 3.375 MiB
#9 Accepted 164ms 3.473 MiB
#10 Accepted 3ms 3.449 MiB

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2017-07-14 20:47:22
评测时间
2017-07-14 20:47:22
评测机
分数
100
总耗时
405ms
峰值内存
3.531 MiB