/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
     scanf("%I64d%I64d",&n,&k);
                        ~~   ^
foo.cc:17:29: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'lint* {aka long long int*}' [-Wformat=]
foo.cc:20:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
         scanf("%I64d",&num);
                       ~~~~^
foo.cc:28:33: warning: format '%d' expects argument of type 'int', but argument 2 has type 'lint {aka long long int}' [-Wformat=]
     printf("%I64d",ans % 1234567);
                    ~~~~~~~~~~~~~^
foo.cc:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%I64d%I64d",&n,&k);
     ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:20:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%I64d",&num);
         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 0. 1ms 404.0 KiB
#2 Wrong Answer Read 5050, expect 5050. 2ms 404.0 KiB
#3 Wrong Answer Read 599, expect 599. 2ms 416.0 KiB
#4 Wrong Answer Read 25, expect 25. 3ms 1.062 MiB
#5 Wrong Answer Read 943886, expect 943886. 5ms 484.0 KiB
#6 Wrong Answer Read 703626, expect 703626. 25ms 1.035 MiB
#7 Wrong Answer Read 1198774, expect 1198774. 39ms 1.484 MiB
#8 Wrong Answer Read 111245, expect 111245. 43ms 2.094 MiB
#9 Wrong Answer Read 850355, expect 850355. 118ms 4.441 MiB
#10 Wrong Answer Read 1065365, expect 1065365. 194ms 7.023 MiB

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2021-08-31 18:47:46
评测时间
2021-08-31 18:47:46
评测机
分数
0
总耗时
435ms
峰值内存
7.023 MiB