记录详情

Compile Error

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

信息

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