Accepted

foo.cc: In function 'int main()':
foo.cc:7:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    7 |         if(a>b&a>c)
      |            ~^~
foo.cc:21:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   21 |         else if(b>a&b>c)
      |                 ~^~
foo.cc:35:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   35 |         else if(c>a&c>b)
      |                 ~^~
foo.cc:49:35: warning: 'a03' may be used uninitialized [-Wmaybe-uninitialized]
   49 |         cout<<a01<<" "<<a02<<" "<<a03;
      |                                   ^~~
foo.cc:5:27: note: 'a03' was declared here
    5 |         int a,b,c,a01,a02,a03;
      |                           ^~~
foo.cc:49:30: warning: 'a02' may be used uninitialized [-Wmaybe-uninitialized]
   49 |         cout<<a01<<" "<<a02<<" "<<a03;
      |                              ^~~
foo.cc:5:23: note: 'a02' was declared here
    5 |         int a,b,c,a01,a02,a03;
      |                       ^~~
foo.cc:49:20: warning: 'a01' may be used uninitialized [-Wmaybe-uninitialized]
   49 |         cout<<a01<<" "<<a02<<" "<<a03;
      |                    ^~~
foo.cc:5:19: note: 'a01' was declared here
    5 |         int a,b,c,a01,a02,a03;
      |                   ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 328.0 KiB
#2 Accepted 3ms 284.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1020 3个数排序
语言
C++
递交时间
2023-11-30 22:03:41
评测时间
2023-11-30 22:03:41
评测机
分数
100
总耗时
19ms
峰值内存
412.0 KiB