/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void Dp(int, int)':
foo.cc:37:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!ch) f[u] = 1; return;
     ^~
foo.cc:37:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if (!ch) f[u] = 1; return;
                        ^~~~~~
foo.cc: In function 'void Dfs(int, int, int)':
foo.cc:64:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!ch) f[u] = 1; return;
     ^~
foo.cc:64:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if (!ch) f[u] = 1; return;
                        ^~~~~~
foo.cc: In function 'int main()':
foo.cc:85:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while (cnt && !cmd[cnt - 1].v) --cnt;    printf("%d\n%d", ans, cnt);
     ^~~~~
foo.cc:85:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
     while (cnt && !cmd[cnt - 1].v) --cnt;    printf("%d\n%d", ans, cnt);
                                              ^~~~~~
foo.cc:69:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
     freopen("catch.in", "r", stdin);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:70:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
     freopen("catch.out", "w", stdout);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:71:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
foo.cc:74:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         int u, v; scanf("%d%d", &u, &v);
                   ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,13 > 2 > 11 > L 2 > L 2 > 1ms 384.0 KiB
#2 Wrong Answer 0a1,91 > 3 > 89 > L 4 > L 27 > 2ms 344.0 KiB
#3 Wrong Answer 0a1,1076 > 3 > 1074 > L 186 > 2ms 384.0 KiB
#4 Wrong Answer 0a1,77 > 4 > 75 > L 11 > L 26 2ms 384.0 KiB
#5 Wrong Answer 0a1,265 > 4 > 263 > L 64 > L 8 2ms 384.0 KiB
#6 Wrong Answer 0a1,1949 > 7 > 1947 > L 647 > 1ms 384.0 KiB
#7 Wrong Answer 0a1,2461 > 5 > 2459 > L 1 > L 2ms 384.0 KiB
#8 Wrong Answer 0a1,2503 > 4 > 2501 > L 589 > 2ms 384.0 KiB
#9 Wrong Answer 0a1,2729 > 7 > 2727 > L 1 > L 2ms 256.0 KiB
#10 Wrong Answer 0a1,2461 > 5 > 2459 > L 664 > 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1830 追捕盗贼
语言
C++
递交时间
2021-07-19 19:21:57
评测时间
2021-07-19 19:21:57
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB