记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:15: warning: missing terminating " character
    6 |         scanf("%f,&f);
      |               ^
/in/foo.c:6:15: error: missing terminating " character
    6 |         scanf("%f,&f);
      |               ^~~~~~~~
/in/foo.c:7:21: error: expected ')' before ';' token
    7 |     c=5.0/9.0*(f-32);
      |                     ^
      |                     )
/in/foo.c:6:14: note: to match this '('
    6 |         scanf("%f,&f);
      |              ^
/in/foo.c:7:6: error: incompatible type for argument 1 of 'scanf'
    7 |     c=5.0/9.0*(f-32);
      |     ~^~~~~~~~~~~~~~~
      |      |
      |      float
In file included from /in/foo.c:1:
/usr/include/stdio.h:421:42: note: expected 'const char * restrict' but argument is of type 'float'
  421 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.c:9:24: error: expected ';' before '}' token
    9 |         return 0 ;
      |                   ^     
      |                        ;
   10 | }
      | ~                  

信息

递交者
类型
自测
语言
C
递交时间
2025-11-08 16:15:17
评测时间
2025-11-08 16:15:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes