记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:9: warning: right-hand operand of comma expression has no effect [-Wunused-value]
  for(i=n,i>=0,i--)
         ^
/in/foo.c:7:18: error: expected ';' before ')' token
  for(i=n,i>=0,i--)
                  ^
/in/foo.c:7:18: error: expected expression before ')' token
/in/foo.c:8:7: error: called object 'pow' is not a function or function pointer
   sum=pow(10,i)*a;
       ^~~
/in/foo.c:5:24: note: declared here
     int a,n,sn=a,i,sum,pow;
                        ^~~
/in/foo.c:10:2: error: 'renturn' undeclared (first use in this function)
  renturn 0;
  ^~~~~~~
/in/foo.c:10:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:10: error: expected ';' before numeric constant
  renturn 0;
          ^
/in/foo.c:5:13: warning: variable 'sn' set but not used [-Wunused-but-set-variable]
     int a,n,sn=a,i,sum,pow;
             ^~

信息

递交者
类型
自测
语言
C
递交时间
2024-11-22 16:20:43
评测时间
2024-11-22 16:20:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes