Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:9: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
  if(1<=x<=100) cout<<pow(x,3);
     ~~~~^~~~~
/in/foo.cc:8:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(1<=x<=100) cout<<pow(x,3);
     ~^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 356.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
递交
题目
P1649 x的立方 lifang
语言
C++
递交时间
2024-11-01 22:32:39
评测时间
2024-11-01 22:32:39
评测机
分数
75
总耗时
7ms
峰值内存
376.0 KiB