记录详情

Compile Error

foo.c: In function 'main':
foo.c:25:4: warning: statement with no effect [-Wunused-value]
   25 |   m/a[i];
      |   ~^~~~~
foo.c:30:24: error: 'ssum2' undeclared (first use in this function); did you mean 'sum2'?
   30 |  printf("%d %d\n",sum1/ssum2/s);
      |                        ^~~~~
      |                        sum2
foo.c:30:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:15:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   15 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:17:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   17 |   scanf("%d %d",&b[i],&a[i]);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-02-28 21:23:42
评测时间
2022-02-28 21:23:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes