/ Vijos /

记录详情

Accepted

foo.cc:6: warning: ignoring '#pragma comment ' [-Wunknown-pragmas]
    6 | #pragma comment(linker, "/STACK:36777216")
      | 
foo.cc: In function 'std::ostream& operator<<(std::ostream&, std::array<_Tp, _Nm>&)':
foo.cc:34:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   34 | #define REP(i, n) for (int i=0;i<n;++i)
      |                   ^~~
foo.cc:224:5: note: in expansion of macro 'REP'
  224 |     REP(i, N-1) out << a[i] << " "; if (N) out << a.back();
      |     ^~~
foo.cc:224:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  224 |     REP(i, N-1) out << a[i] << " "; if (N) out << a.back();
      |                                     ^~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, std::vector<_Tp>&)':
foo.cc:34:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   34 | #define REP(i, n) for (int i=0;i<n;++i)
      |                   ^~~
foo.cc:228:5: note: in expansion of macro 'REP'
  228 |     REP(i, SZ(a)-1) out << a[i] << " "; if (SZ(a)) out << a.back();
      |     ^~~
foo.cc:228:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  228 |     REP(i, SZ(a)-1) out << a[i] << " "; if (SZ(a)) out << a.back();
      |                                         ^~
foo.cc: In function 'int main()':
foo.cc:39:24: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   39 | #define DWN_1(i, b, a) for (int i=b;i>=a;--i)
      |                        ^~~
foo.cc:294:9: note: in expansion of macro 'DWN_1'
  294 |         DWN_1(j, i, 1) checkMin(f[i][j], f[i][j+1] + v[j]); checkMin(f[i][i], f[i][1] + v[i]);
      |         ^~~~~
foo.cc:294:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  294 |         DWN_1(j, i, 1) checkMin(f[i][j], f[i][j+1] + v[j]); checkMin(f[i][i], f[i][1] + v[i]);
      |                                                             ^~~~~~~~
foo.cc:39:24: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   39 | #define DWN_1(i, b, a) for (int i=b;i>=a;--i)
      |                        ^~~
foo.cc:296:9: note: in expansion of macro 'DWN_1'
  296 |         DWN_1(j, i, 1) checkMin(f[i][j], f[i][j+1] + v[j]); checkMin(f[i][i], f[i][1] + v[i]);
      |         ^~~~~
foo.cc:296:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  296 |         DWN_1(j, i, 1) checkMin(f[i][j], f[i][j+1] + v[j]); checkMin(f[i][i], f[i][1] + v[i]);
      |                                                             ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 1.57 MiB
#2 Accepted 5ms 1.027 MiB
#3 Accepted 4ms 668.0 KiB
#4 Accepted 4ms 712.0 KiB
#5 Accepted 5ms 1.152 MiB
#6 Accepted 7ms 1.695 MiB
#7 Accepted 5ms 924.0 KiB
#8 Accepted 7ms 1.527 MiB
#9 Accepted 7ms 1.602 MiB
#10 Accepted 12ms 2.277 MiB

信息

递交者
类型
递交
题目
P1006 晴天小猪历险记之Hill
语言
C++
递交时间
2023-07-14 22:52:18
评测时间
2023-07-14 22:52:18
评测机
分数
100
总耗时
68ms
峰值内存
2.277 MiB