记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
P1022 数组处理
语言
C
递交时间
2021-11-23 16:36:00
评测时间
2021-11-23 16:36:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes