记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:11: warning: right-hand operand of comma expression has no effect [-Wunused-value]
  for(i = 2,i <= 1000,i ++);{
           ^
/in/foo.c:6:26: error: expected ';' before ')' token
  for(i = 2,i <= 1000,i ++);{
                          ^
/in/foo.c:6:26: error: expected expression before ')' token
/in/foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i = 2,i <= 1000,i ++);{
  ^~~
/in/foo.c:6:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(i = 2,i <= 1000,i ++);{
                            ^
/in/foo.c:8:12: warning: right-hand operand of comma expression has no effect [-Wunused-value]
   for(j = 0,j < i,j ++);{
            ^
/in/foo.c:8:23: error: expected ';' before ')' token
   for(j = 0,j < i,j ++);{
                       ^
/in/foo.c:8:23: error: expected expression before ')' token
/in/foo.c:8:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(j = 0,j < i,j ++);{
   ^~~
/in/foo.c:8:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(j = 0,j < i,j ++);{
                         ^
/in/foo.c:13:5: error: expected '(' before '{' token
   if{sum == i}{
     ^
/in/foo.c:13:6: warning: statement with no effect [-Wunused-value]
   if{sum == i}{
      ^~~
/in/foo.c:14:17: error: expected ')' before 'd'
        printf(""d%"是完数\n");
                 ^
/in/foo.c:14:15: warning: zero-length gnu_printf format string [-Wformat-zero-length]
        printf(""d%"是完数\n");
               ^~
/in/foo.c:15:6: error: 'ruturn' undeclared (first use in this function)
      ruturn 0;
      ^~~~~~
/in/foo.c:15:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:13: error: expected ';' before numeric constant
      ruturn 0;
             ^
/in/foo.c:16:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:16:1: error: expected declaration or statement at end of input

信息

递交者
类型
递交
比赛
2024级11点
语言
C
递交时间
2024-12-24 11:16:03
评测时间
2024-12-24 11:16:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes