记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:12: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
    6 |    scanf("%f", &a);
      |           ~^   ~~
      |            |   |
      |            |   double *
      |            float *
      |           %lf
/in/foo.c:13:14: error: 'x' undeclared (first use in this function)
   13 |     else if (x >= 500)
      |              ^
/in/foo.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   15 |     else
      |     ^~~~
/in/foo.c:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   17 |         return 0;
      |         ^~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2026-11-13 20:26:45
评测时间
2026-11-13 20:26:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes