Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    7 |  if(a>b>c)
      |     ~^~
foo.cc:11:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   11 |   else if (a>c>b)
      |            ~^~
foo.cc:15:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   15 |  else if (b>a>c)
      |           ~^~
foo.cc:19:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   19 |  else if(b>c>a)
      |          ~^~
foo.cc:23:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   23 |  else if (c>b>a)
      |           ~^~
foo.cc:27:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   27 |  else if (c>a>b)
      |           ~^~
foo.cc:31:8: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   31 |  cout<<sum;
      |        ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer Read 3, expect 1. 1ms 384.0 KiB
#3 Wrong Answer Read 2, expect 1. 2ms 384.0 KiB
#4 Wrong Answer Read 2, expect 1. 1ms 384.0 KiB
#5 Wrong Answer Read 3, expect 1. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1015 最小数
语言
C++
递交时间
2021-12-08 20:25:27
评测时间
2021-12-08 20:25:27
评测机
分数
20
总耗时
11ms
峰值内存
384.0 KiB