记录详情

Compile Error

/in/foo.c: In function 'calculateStats':
/in/foo.c:13:3: error: 'sun' undeclared (first use in this function)
   sun=scores[i]+sum;
   ^~~
/in/foo.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'main':
/in/foo.c:20:16: error: 'scores' undeclared (first use in this function)
   scanf("%lf",&scores[i]);
                ^~~~~~
/in/foo.c:23:23: error: stray '\357' in program
  calculateStats(scores,&max,&min,&avg);
                       ^
/in/foo.c:23:24: error: stray '\274' in program
  calculateStats(scores,&max,&min,&avg);
                        ^
/in/foo.c:23:25: error: stray '\214' in program
  calculateStats(scores,&max,&min,&avg);
                         ^
/in/foo.c:23:2: error: too few arguments to function 'calculateStats'
  calculateStats(scores,&max,&min,&avg);
  ^~~~~~~~~~~~~~
/in/foo.c:2:6: note: declared here
 void calculateStats(double scores[],double*max,double*min,double*avg){
      ^~~~~~~~~~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2024-12-06 17:20:48
评测时间
2024-12-06 17:20:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes