foo.c: In function 'hhh':
foo.c:8:5: error: expected declaration specifiers before 'hhh'
hhh(a,n,t);
^~~
foo.c:9:5: error: expected declaration specifiers before 'return'
return 0;
^~~~~~
foo.c:10:1: error: expected declaration specifiers before '}' token
}
^
foo.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:23:1: error: expected '{' at end of input
}
^
foo.c: In function 'main':
foo.c:23: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:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&t);
^~~~~~~~~~~~~~~~~~~~
At top level:
foo.c:7:10: warning: 'hhh' defined but not used [-Wunused-function]
void hhh(int a[],int n,int t)
^~~
[Hydro](https://hydro.ac)提供评测服务