记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:9: warning: missing terminating " character
  scanf ("%f,&f);
         ^
/in/foo.c:5:9: error: missing terminating " character
  scanf ("%f,&f);
         ^~~~~~~~
/in/foo.c:6:21: error: expected ')' before ';' token
     c=5*1.0/9*(f-32);
                     ^
/in/foo.c:6:5: error: incompatible type for argument 1 of 'scanf'
     c=5*1.0/9*(f-32);
     ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdio.h:27,
                 from /in/foo.c:1:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'float'
 extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
            ^
/in/foo.c:9:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
自测
语言
C
递交时间
2024-10-22 17:28:58
评测时间
2024-10-22 17:28:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes