记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:10: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
  scanf("%f", &x);
          ^
/in/foo.c:9:33: error: stray '\357' in program
  if(x < -100 || x > 100){ printf("Error!")}
                                 ^
/in/foo.c:9:34: error: stray '\274' in program
  if(x < -100 || x > 100){ printf("Error!")}
                                  ^
/in/foo.c:9:35: error: stray '\210' in program
  if(x < -100 || x > 100){ printf("Error!")}
                                   ^
/in/foo.c:9:27: warning: statement with no effect [-Wunused-value]
  if(x < -100 || x > 100){ printf("Error!")}
                           ^~~~~~
/in/foo.c:9:36: error: expected ';' before string constant
  if(x < -100 || x > 100){ printf("Error!")}
                                    ^~~~~~~~
/in/foo.c:9:44: error: expected statement before ')' token
  if(x < -100 || x > 100){ printf("Error!")}
                                            ^
/in/foo.c:18:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
自测
语言
C
递交时间
2024-11-01 17:40:30
评测时间
2024-11-01 17:40:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes