Accepted

foo.cc: In function 'int main()':
foo.cc:11:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |  else if(a==1||a>1&&a<10)
      |                ~~~^~~~~~
foo.cc:13:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |  else if(a==10||a>10&&a<15)
      |                 ~~~~^~~~~~
foo.cc:15:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   15 |  else if(a==15||a>15&&a<30)
      |                 ~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1022 分段函数
语言
C++
递交时间
2022-07-20 00:45:03
评测时间
2022-07-20 00:45:03
评测机
分数
100
总耗时
9ms
峰值内存
384.0 KiB