记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:8: error: expected ')' before '>=' token
 int n(n>=1&&n<=50);
        ^~
/in/foo.c:9:1: error: expected '(' before '{' token
 {
 ^
/in/foo.c:10:4: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 i=1,i<=n,i++;
    ^
/in/foo.c:17:10: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
 printf("%d",sum);
          ^

信息

递交者
类型
自测
语言
C
递交时间
2024-12-24 10:15:03
评测时间
2024-12-24 10:15:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes