foo.c: In function 'hhh':
foo.c:7:5: error: expected declaration specifiers before 'hhh'
hhh(a,n,t);
^~~
foo.c:8:5: error: expected declaration specifiers before 'return'
return 0;
^~~~~~
foo.c:9:1: error: expected declaration specifiers before '}' token
}
^
foo.c:11:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:22:1: error: expected '{' at end of input
}
^
foo.c: In function 'main':
foo.c:22:1: error: expected declaration or statement at end of input
foo.c:5:13: warning: unused variable 'a' [-Wunused-variable]
int n,t,a[800]={0};
^
foo.c:5:11: warning: unused variable 't' [-Wunused-variable]
int n,t,a[800]={0};
^
foo.c:5:9: warning: unused variable 'n' [-Wunused-variable]
int n,t,a[800]={0};
^
At top level:
foo.c:6:10: warning: 'hhh' defined but not used [-Wunused-function]
void hhh(int a[],int n,int t)
^~~
[Hydro](https://hydro.ac)提供评测服务