/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)
^~~~