Accepted

foo.cc: In function 'int main()':
foo.cc:6:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |         if(a<b&&a>c||a<c&&a>b)
      |            ~~~^~~~~
foo.cc:8:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    8 |         if(b<a&&b>c||b<c&&b>a)
      |            ~~~^~~~~
foo.cc:10:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   10 |         if(c<b&&c>a||c<a&&c>b)
      |            ~~~^~~~~
foo.cc:18:20: warning: 'zjz' may be used uninitialized [-Wmaybe-uninitialized]
   18 |         cout<<zjz<<' '<<maxz;
      |                    ^~~
foo.cc:5:19: note: 'zjz' was declared here
    5 |         int a,b,c,zjz,maxz;cin>>a>>b>>c;
      |                   ^~~
foo.cc:18:25: warning: 'maxz' may be used uninitialized [-Wmaybe-uninitialized]
   18 |         cout<<zjz<<' '<<maxz;
      |                         ^~~~
foo.cc:5:23: note: 'maxz' was declared here
    5 |         int a,b,c,zjz,maxz;cin>>a>>b>>c;
      |                       ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Accepted 1ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1058 A1-2 分支结构练习:三数的特征值
语言
C++
递交时间
2023-05-15 22:01:43
评测时间
2023-05-15 22:01:43
评测机
分数
100
总耗时
11ms
峰值内存
284.0 KiB