记录详情

Compile Error

/in/foo.c:2:17: error: missing terminating > character
    2 | #include <math.h
      |                 ^
/in/foo.c: In function 'main':
/in/foo.c:5:12: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
    5 |   scanf("%1f",&x);
      |          ~~^  ~~
      |            |  |
      |            |  double *
      |            float *
      |          %1lf
/in/foo.c:8:16: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
    8 |   }else if(0<=x<10){
      |                ^
/in/foo.c:8:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    8 |   }else if(0<=x<10){
      |            ~^~~
/in/foo.c:15:20: error: expected ';' before 'return'
   15 |  printf("%.3f\n",y)
      |                    ^
      |                    ;
   16 |          return 0;
      |          ~~~~~~     

信息

递交者
类型
递交
比赛
2025-python-1-2
语言
C
递交时间
2025-03-30 09:24:18
评测时间
2025-03-30 09:24:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes