/ Vijos /

记录详情

Accepted

foo.cc: In function 'bool A(int)':
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;
  ^~~
foo.cc:25: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: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;
  ^~~
foo.cc:26: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:45: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:45: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:46: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:46: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:63: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:63: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:64: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:64: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:83:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=n-1;i>=0;--i) cout<<(char)(c[i]-1+'a');return 0;
    ^~~
foo.cc:83:53: 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<<(char)(c[i]-1+'a');return 0;
                                                     ^~~~~~
foo.cc:87: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;
    ^~~
foo.cc:87:53: 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<<(char)(b[i]-1+'a');return 0;
                                                     ^~~~~~
foo.cc:91: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;
    ^~~
foo.cc:91:53: 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<<(char)(a[i]-1+'a');return 0;
                                                     ^~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-06T09:08:58.344Z","handle":"2020-08-06T09:08:58.360Z","cache_start":"2020-08-06T09:08:58.494Z","read_cases":"2020-08-06T09:08:58.807Z","judge":"2020-08-06T09:08:58.819Z","done":"2020-08-06T09:09:00.225Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 312.0 KiB
#2 Accepted 1ms 312.0 KiB
#3 Accepted 1ms 312.0 KiB
#4 Accepted 1ms 312.0 KiB
#5 Accepted 1ms 316.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 3ms 492.0 KiB
#8 Accepted 3ms 500.0 KiB
#9 Accepted 3ms 496.0 KiB
#10 Accepted 3ms 496.0 KiB

信息

递交者
类型
递交
题目
P1449 字符串还原
语言
C++
递交时间
2020-08-06 17:08:58
评测时间
2020-08-06 17:08:58
评测机
分数
100
总耗时
19ms
峰值内存
500.0 KiB