/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'bool A(int)':
foo.cc:22: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;
  ^~~
foo.cc:22:44: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                            ^~~
foo.cc:23: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;
  ^~~
foo.cc:23:44: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                            ^~~
foo.cc: In function 'bool B(int)':
foo.cc:37: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;
  ^~~
foo.cc:37:45: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                             ^~~
foo.cc:38: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;
  ^~~
foo.cc:38:45: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                             ^~~
foo.cc: In function 'bool C(int)':
foo.cc:52: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;
  ^~~
foo.cc:52:45: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                             ^~~
foo.cc:53: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;
  ^~~
foo.cc:53:45: note: ...this statement, but the latter is misleadingly indented as if it were 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;
                                             ^~~
foo.cc: In function 'int main()':
foo.cc:65:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=n-1;i>=0;--i) cout<<a[i];return 0;
    ^~~
foo.cc:65:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    for(int i=n-1;i>=0;--i) cout<<a[i];return 0;
                                       ^~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-06T08:00:06.807Z","handle":"2020-08-06T08:00:06.807Z","cache_start":"2020-08-06T08:00:06.813Z","read_cases":"2020-08-06T08:00:06.918Z","judge":"2020-08-06T08:00:06.919Z","done":"2020-08-06T08:00:07.359Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer 0a1 > azazazaz 1ms 256.0 KiB
#4 Wrong Answer 0a1 > gdrsccsrdg 0ms 256.0 KiB
#5 Runtime Error Segmentation fault 0ms 256.0 KiB
#6 Runtime Error Segmentation fault 0ms 256.0 KiB
#7 Runtime Error Segmentation fault 1ms 256.0 KiB
#8 Runtime Error Segmentation fault 1ms 256.0 KiB
#9 Runtime Error Segmentation fault 1ms 256.0 KiB
#10 Runtime Error Segmentation fault 1ms 256.0 KiB

信息

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