Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
7 | if (500 <= a & a < 1000)
| ~~~~^~~~
/in/foo.cc:11:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
11 | else if (1000 <= a & a < 1500)
| ~~~~~^~~~
/in/foo.cc:15:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
15 | else if (1500 <= a & a < 2000)
| ~~~~~^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1019 contest1-4 超市促销活动
- 比赛
- 2026-11-13 C++实测1
- 语言
- C++
- 递交时间
- 2026-11-16 20:56:08
- 评测时间
- 2026-11-16 20:56:08
- 评测机
- 分数
- 100
- 总耗时
- 9ms
- 峰值内存
- 528.0 KiB