/ new_bzoj /

记录详情

Accepted

foo.cc: In function 'void fdij()':
foo.cc:27:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   27 |     for (int i=1;i<=n;i++) dis[i] = INF, vi[i] = false, pre[i] = 0; dis[1] = 0;
      |     ^~~
foo.cc:27:69: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   27 |     for (int i=1;i<=n;i++) dis[i] = INF, vi[i] = false, pre[i] = 0; dis[1] = 0;
      |                                                                     ^~~
foo.cc: In function 'void dij()':
foo.cc:48:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   48 |     for (int i=1;i<=n;i++) dis[i] = INF, vi[i] = false; dis[1] = 0;
      |     ^~~
foo.cc:48:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   48 |     for (int i=1;i<=n;i++) dis[i] = INF, vi[i] = false; dis[1] = 0;
      |                                                         ^~~
foo.cc: In function 'int main()':
foo.cc:67:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   67 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:73:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   73 |         scanf("%d %d %d", &x, &y, &z);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 4ms 512.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 4ms 384.0 KiB
#9 Accepted 4ms 380.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
Roadblock
语言
C++
递交时间
2022-05-09 15:03:20
评测时间
2022-05-09 15:03:20
评测机
分数
100
总耗时
39ms
峰值内存
512.0 KiB