记录详情

Compile Error

/in/foo.c: In function 'Search':
/in/foo.c:16:5: warning: 'main' is normally a non-static function [-Wmain]
 int main(void)
     ^~~~
/in/foo.c: In function 'main':
/in/foo.c:22:9: warning: too many arguments for format [-Wformat-extra-args]
  printf("请输入一个数组:",n);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:27:2: warning: implicit declaration of function 'search' [-Wimplicit-function-declaration]
  search(a,n,x);
  ^~~~~~
/in/foo.c:32:2: error: expected '}' before 'else'
  else
  ^~~~
/in/foo.c: In function 'Search':
/in/foo.c:37:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
At top level:
/in/foo.c:16:5: warning: 'main' defined but not used [-Wunused-function]
 int main(void)
     ^~~~

信息

递交者
类型
自测
题目
A7-4 数组的查找函数
语言
C
递交时间
2019-03-02 10:04:15
评测时间
2019-03-02 10:04:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes