记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d%d",a,b);
          ^
/in/foo.c:4:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d%d",a,b);
            ^
/in/foo.c:5:7: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(a,b,s=0;a<=b;a++)
       ^
/in/foo.c:5:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(a,b,s=0;a<=b;a++)
         ^
/in/foo.c:9:2: error: expected ';' before '}' token
  }
  ^

信息

递交者
类型
自测
题目
A2-1 循环结构入门:数列求和
语言
C
递交时间
2023-09-26 14:33:05
评测时间
2023-09-26 14:33:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes