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 Wrong Answer Read 31, expect 29. 4ms 284.0 KiB
#2 Wrong Answer Read 31, expect 28. 4ms 412.0 KiB
#3 Wrong Answer Read 31, expect 29. 3ms 416.0 KiB
#4 Wrong Answer Read 31, expect 30. 4ms 516.0 KiB
#5 Accepted 3ms 284.0 KiB

信息

递交者
类型
递交
题目
P1023 某月的天数
语言
C++
递交时间
2023-12-08 15:29:51
评测时间
2023-12-08 15:29:51
评测机
分数
20
总耗时
20ms
峰值内存
516.0 KiB