Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:26: warning: too many arguments for format [-Wformat-extra-args]
   scanf("%d", &a,"%d",&b );
                          ^
foo.cc:7:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &a,"%d",&b );
   ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:5:15: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  for(int i=0;i<=n;i++){
              ~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 685. 0ms 256.0 KiB
#2 Wrong Answer Read 0, expect 2353. 0ms 276.0 KiB
#3 Wrong Answer Read 0, expect 5084. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1002 摘葡萄
语言
C++
递交时间
2021-09-30 13:04:19
评测时间
2021-09-30 13:04:19
评测机
分数
0
总耗时
2ms
峰值内存
276.0 KiB