记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:10:14: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
  else if(0<=x<10)
              ^
/in/foo.c:10:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(0<=x<10)
          ~^~~
/in/foo.c:12:15: warning: comparison of constant '25' with boolean expression is always true [-Wbool-compare]
  else if(10<=x<25)
               ^
/in/foo.c:12:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(10<=x<25)
          ~~^~~
/in/foo.c:14:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.c:16:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   printf("%.3f\n",y);
   ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 228.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-12-21 16:57:47
评测时间
2024-12-21 16:57:47
评测机
分数
10
总耗时
1ms
峰值内存
228.0 KiB