记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: error: expected ';' before 'scanf'
  scanf("%f", &f);
  ^~~~~
/in/foo.c:8:20: error: stray '\357' in program
  c = (5.0 / 9.0) * (f - 32);
                    ^
/in/foo.c:8:21: error: stray '\274' in program
  c = (5.0 / 9.0) * (f - 32);
                     ^
/in/foo.c:8:22: error: stray '\210' in program
  c = (5.0 / 9.0) * (f - 32);
                      ^
/in/foo.c:8:29: error: expected ';' before ')' token
  c = (5.0 / 9.0) * (f - 32);
                             ^
/in/foo.c:8:29: error: expected statement before ')' token
/in/foo.c:11:21: error: 'C' undeclared (first use in this function)
     printf("%.2f\n",C);
                     ^
/in/foo.c:11:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:4:11: warning: variable 'c' set but not used [-Wunused-but-set-variable]
  float f, c;
           ^

信息

递交者
类型
自测
语言
C
递交时间
2024-10-26 01:15:50
评测时间
2024-10-26 01:15:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes