记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<num;i++)
  ^~~
/in/foo.c:11:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   printf("\n");
   ^~~~~~
/in/foo.c: In function 'find':
/in/foo.c:21:7: error: expected expression before ')' token
    if()
       ^
/in/foo.c:23:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:16:12: warning: variable 'x' set but not used [-Wunused-but-set-variable]
  int i,j,k,x,num=0;
            ^
/in/foo.c:16:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k,x,num=0;
          ^
/in/foo.c:16:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,k,x,num=0;
        ^
/in/foo.c:23:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
2-2 编程题
语言
C
递交时间
2019-10-18 23:16:27
评测时间
2019-10-18 23:16:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes