/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'bool A(int)':
/in/foo.cc:25:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;i<n;++i) if(k1[i]!=b[i]) o1=0;for(int i=0;i<n;++i) if(k2[i]!=c[i]) o1=0;
  ^~~
/in/foo.cc:25:44: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=0;i<n;++i) if(k1[i]!=b[i]) o1=0;for(int i=0;i<n;++i) if(k2[i]!=c[i]) o1=0;
                                            ^~~
/in/foo.cc:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;i<n;++i) if(k2[i]!=b[i]) o2=0;for(int i=0;i<n;++i) if(k1[i]!=c[i]) o2=0;
  ^~~
/in/foo.cc:26:44: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=0;i<n;++i) if(k2[i]!=b[i]) o2=0;for(int i=0;i<n;++i) if(k1[i]!=c[i]) o2=0;
                                            ^~~
/in/foo.cc: In function 'bool B(int)':
/in/foo.cc:42:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i(0);i<n;++i) if(k1[i]!=a[i]) o1=0;for(int i(0);i<n;++i) if(k2[i]!=c[i]) o1=0;
  ^~~
/in/foo.cc:42:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i(0);i<n;++i) if(k1[i]!=a[i]) o1=0;for(int i(0);i<n;++i) if(k2[i]!=c[i]) o1=0;
                                             ^~~
/in/foo.cc:43:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i(0);i<n;++i) if(k2[i]!=a[i]) o2=0;for(int i(0);i<n;++i) if(k1[i]!=c[i]) o2=0;
  ^~~
/in/foo.cc:43:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i(0);i<n;++i) if(k2[i]!=a[i]) o2=0;for(int i(0);i<n;++i) if(k1[i]!=c[i]) o2=0;
                                             ^~~
/in/foo.cc: In function 'bool C(int)':
/in/foo.cc:59:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i(0);i<n;++i) if(k1[i]!=b[i]) o1=0;for(int i(0);i<n;++i) if(k2[i]!=a[i]) o1=0;
  ^~~
/in/foo.cc:59:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i(0);i<n;++i) if(k1[i]!=b[i]) o1=0;for(int i(0);i<n;++i) if(k2[i]!=a[i]) o1=0;
                                             ^~~
/in/foo.cc:60:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i(0);i<n;++i) if(k2[i]!=b[i]) o2=0;for(int i(0);i<n;++i) if(k1[i]!=a[i]) o2=0;
  ^~~
/in/foo.cc:60:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i(0);i<n;++i) if(k2[i]!=b[i]) o2=0;for(int i(0);i<n;++i) if(k1[i]!=a[i]) o2=0;
                                             ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:78:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=n-1;i>=0;--i) cout<<(char)(b[i]-1+'a');return 0;
    ^~~
/in/foo.cc:78:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(int i=n-1;i>=0;--i) cout<<(char)(b[i]-1+'a');return 0;
                                                     ^~~~~~
/in/foo.cc:81:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=n-1;i>=0;--i) cout<<(char)(b[i]-1+'a');return 0;
    ^~~
/in/foo.cc:81:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(int i=n-1;i>=0;--i) cout<<(char)(b[i]-1+'a');return 0;
                                                     ^~~~~~
/in/foo.cc:84:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=n-1;i>=0;--i) cout<<(char)(a[i]-1+'a');return 0;
    ^~~
/in/foo.cc:84:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(int i=n-1;i>=0;--i) cout<<(char)(a[i]-1+'a');return 0;
                                                     ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 340.0 KiB
#2 Accepted 1ms 232.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 348.0 KiB
#6 Wrong Answer 1ms 356.0 KiB
#7 Accepted 4ms 476.0 KiB
#8 Wrong Answer 4ms 484.0 KiB
#9 Wrong Answer 3ms 468.0 KiB
#10 Wrong Answer 3ms 476.0 KiB

信息

递交者
类型
递交
题目
P1449 字符串还原
语言
C++
递交时间
2020-08-06 16:32:07
评测时间
2020-08-06 16:32:07
评测机
分数
60
总耗时
26ms
峰值内存
484.0 KiB