Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   printf("%3d %3d %3d\n",i[cnt],j[cnt],k[cnt]);
                          ~~~~~~              ^
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
foo.cc:7:17: warning: unused variable 'sum' [-Wunused-variable]
  long int a,b,c,sum,cnt=0;
                 ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0,,,0,,,4, expect 0,,,0,,,4. 1ms 384.0 KiB
#2 Wrong Answer Read 0,,,0,,10, expect 0,,,0,,10. 1ms 412.0 KiB

信息

递交者
类型
递交
题目
P1121 人民币兑换
语言
C++
递交时间
2021-10-31 22:30:33
评测时间
2021-10-31 22:30:33
评测机
分数
0
总耗时
3ms
峰值内存
412.0 KiB