记录详情

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:18:13: error: 'n1' undeclared (first use in this function)
   for(j=0;j<n1;j++)
             ^~
/in/foo.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:20:7: error: 's1' undeclared (first use in this function)
    if(s1[i]==s2[0])
       ^~
/in/foo.c:20:14: error: 's2' undeclared (first use in this function)
    if(s1[i]==s2[0])
              ^~
/in/foo.c:22:15: error: 'n2' undeclared (first use in this function)
     for(j=0;j<n2;j++)
               ^~
/in/foo.c:31:0: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
 }
 
/in/foo.c:31:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:16:10: warning: unused variable 'x' [-Wunused-variable]
  int i,j,x,flag,num=0;
          ^
/in/foo.c:31:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

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