记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:28:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
     scanf("%I64d%I64d", &n, &k); ans = 0;
                         ~~    ^
foo.cc:28:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'lint* {aka long long int*}' [-Wformat=]
foo.cc:30:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
         scanf("%I64d", &num);
                        ~~~~^
foo.cc:40:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'lint {aka long long int}' [-Wformat=]
     printf("%I64d\n", ans % 1234567);
                       ~~~~~~~~~~~~~^
foo.cc:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%I64d%I64d", &n, &k); ans = 0;
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%I64d", &num);
         ~~~~~^~~~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-18T09:07:05.453Z","handle":"2020-07-18T09:07:05.453Z","cache_start":"2020-07-18T09:07:05.461Z","read_cases":"2020-07-18T09:07:05.660Z","judge":"2020-07-18T09:07:05.663Z","done":"2020-07-18T09:07:06.918Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 0 ,应为 0 1ms 316.0 KiB
#2 Wrong Answer 读取到 5050 ,应为 5050 1ms 320.0 KiB
#3 Wrong Answer 读取到 599 ,应为 599 1ms 316.0 KiB
#4 Wrong Answer 读取到 25 ,应为 25 2ms 960.0 KiB
#5 Wrong Answer 读取到 943886 ,应为 943886 4ms 444.0 KiB
#6 Wrong Answer 读取到 703626 ,应为 703626 21ms 984.0 KiB
#7 Wrong Answer 读取到 1198774 ,应为 1198774 32ms 1.32 MiB
#8 Wrong Answer 读取到 111245 ,应为 111245 41ms 1.914 MiB
#9 Wrong Answer 读取到 850355 ,应为 850355 118ms 5.281 MiB
#10 Wrong Answer 读取到 1065365 ,应为 1065365 196ms 6.988 MiB

信息

递交者
类型
递交
题目
P1167 连续数之和
语言
C++
递交时间
2020-07-18 17:07:05
评测时间
2020-07-18 17:07:05
评测机
分数
0
总耗时
422ms
峰值内存
6.988 MiB