/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:29:26: 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:29:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'lint* {aka long long int*}' [-Wformat=]
foo.cc:32:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
   scanf("%I64d",&num);
                 ~~~~^
foo.cc:42:32: 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:29:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%I64d%I64d",&n,&k);
  ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:32:8: 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 384.0 KiB
#2 Wrong Answer Read 5050, expect 5050. 1ms 384.0 KiB
#3 Wrong Answer Read 599, expect 599. 3ms 412.0 KiB
#4 Wrong Answer Read 25, expect 25. 4ms 1.055 MiB
#5 Wrong Answer Read 943886, expect 943886. 5ms 548.0 KiB
#6 Wrong Answer Read 703626, expect 703626. 20ms 1.059 MiB
#7 Wrong Answer Read 1198774, expect 1198774. 36ms 1.453 MiB
#8 Wrong Answer Read 111245, expect 111245. 61ms 2.078 MiB
#9 Wrong Answer Read 850355, expect 850355. 120ms 4.43 MiB
#10 Wrong Answer Read 1065365, expect 1065365. 193ms 7.105 MiB

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2021-08-12 20:47:20
评测时间
2021-08-12 20:47:41
评测机
分数
0
总耗时
450ms
峰值内存
7.105 MiB