/ Vijos /

记录详情

Accepted

foo.cc: In function 'void init()':
foo.cc:32:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
         scanf("%s", &ch);
                     ~~~^
foo.cc:44:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=]
         scanf("%s", &ch);
                     ~~~^
foo.cc:63:31: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
                 addedge(i, (i & (~resf[j]) | rest[j]), tim[j]);
                             ~~^~~~~~~~~~~~
foo.cc:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &N, &M);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &tim[i]);
         ~~~~~^~~~~~~~~~~~~~~
foo.cc:32:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%s", &ch);
         ~~~~~^~~~~~~~~~~
foo.cc:44:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%s", &ch);
         ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 1.0 MiB
#2 Accepted 2ms 1.0 MiB
#3 Accepted 2ms 1.125 MiB
#4 Accepted 2ms 1.0 MiB
#5 Accepted 2ms 1.004 MiB
#6 Accepted 2ms 1.0 MiB
#7 Accepted 2ms 1.0 MiB
#8 Accepted 2ms 1.164 MiB
#9 Accepted 23ms 9.09 MiB
#10 Accepted 21ms 8.523 MiB

信息

递交者
类型
递交
题目
P1019 补丁VS错误
语言
C++
递交时间
2021-08-07 19:00:14
评测时间
2021-08-07 19:01:07
评测机
分数
100
总耗时
65ms
峰值内存
9.09 MiB