记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   13 |     else if (n>=1500&n<2000)
      |              ~^~~~~~
/in/foo.cc:17:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   17 |     else if (n>=1000&n<1500)
      |              ~^~~~~~
/in/foo.cc:20:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   20 |     else if (n>=500&n<1000)
      |              ~^~~~~
/in/foo.cc:25:11: warning: 'm' may be used uninitialized [-Wmaybe-uninitialized]
   25 |     printf("%.2f",m);
      |     ~~~~~~^~~~~~~~~~
/in/foo.cc:8:13: note: 'm' was declared here
    8 |     float n,m;
      |             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Accepted 1ms 368.0 KiB
#5 Accepted 1ms 360.0 KiB

信息

递交者
类型
递交
题目
P1019 contest1-4 超市促销活动
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-19 10:01:37
评测时间
2026-11-19 10:01:37
评测机
分数
100
总耗时
9ms
峰值内存
536.0 KiB