Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:15: warning: too many arguments for format [-Wformat-extra-args]
    6 |         scanf("&d,&d",a,b);
      |               ^~~~~~~
foo.cc:6:14: warning: 'a' is used uninitialized [-Wuninitialized]
    6 |         scanf("&d,&d",a,b);
      |         ~~~~~^~~~~~~~~~~~~
foo.cc:5:13: note: 'a' was declared here
    5 |         int a,b;
      |             ^
foo.cc:6:14: warning: 'b' is used uninitialized [-Wuninitialized]
    6 |         scanf("&d,&d",a,b);
      |         ~~~~~^~~~~~~~~~~~~
foo.cc:5:15: note: 'b' was declared here
    5 |         int a,b;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 332.0 KiB
#2 Wrong Answer Read 29, expect 28. 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Wrong Answer Read 29, expect 30. 4ms 412.0 KiB
#5 Wrong Answer Read 29, expect 31. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1023 某月的天数
语言
C++
递交时间
2023-11-23 20:38:10
评测时间
2023-11-23 20:38:10
评测机
分数
40
总耗时
22ms
峰值内存
412.0 KiB