/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:31:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
     scanf("%d%d",&n,&k);
                  ~~   ^
foo.cc:31:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:42:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
             scanf("%d",&x);
                        ~~^
foo.cc:44:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
             printf("%d\n",getsum(x));
                           ~~~~~~~~~^
foo.cc:48:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
             scanf("%d%d",&x,&y);
                          ~~   ^
foo.cc:48:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:54:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
             scanf("%d%d",&x,&y);
                          ~~   ^
foo.cc:54:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&k);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:38:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%c",&c);
         ~~~~~^~~~~~~~~
foo.cc:42:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d",&x);
             ~~~~~^~~~~~~~~
foo.cc:48:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d%d",&x,&y);
             ~~~~~^~~~~~~~~~~~~~
foo.cc:54:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
             scanf("%d%d",&x,&y);
             ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,5024 > 20945 > 20945 > 7 8ms 4.234 MiB
#2 Wrong Answer 0a1,5021 > 26923 > 26923 > 9 6ms 4.129 MiB
#3 Wrong Answer 0a1,5009 > 0 > 0 > 18291 > 6ms 4.125 MiB
#4 Wrong Answer 0a1,50001 > 0 > 5553 > 54961 20ms 4.109 MiB
#5 Wrong Answer 0a1,50034 > 0 > 69026 > 6911 23ms 4.152 MiB
#6 Wrong Answer 0a1,50329 > 0 > 0 > 0 > 687 25ms 4.16 MiB
#7 Wrong Answer 0a1,49913 > 0 > 0 > 0 > 0 29ms 4.191 MiB
#8 Wrong Answer 0a1,49894 > 0 > 86281 > 8335 20ms 4.172 MiB
#9 Wrong Answer 0a1,49946 > 0 > 0 > 0 > 0 21ms 4.164 MiB
#10 Wrong Answer 0a1,50252 > 0 > 0 > 4505 > 21ms 4.164 MiB

信息

递交者
类型
递交
题目
P1320 清点人数
语言
C++
递交时间
2021-07-29 11:16:34
评测时间
2021-07-29 11:16:34
评测机
分数
0
总耗时
183ms
峰值内存
4.234 MiB