Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    8 |  if(a>b>c)
      |     ~^~
foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    8 |  if(a>b>c)
      |  ^~
foo.cc:9:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    9 |   z=b;d=a;
      |       ^
foo.cc:10:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   10 |  if(a>c>b)
      |     ~^~
foo.cc:10:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   10 |  if(a>c>b)
      |  ^~
foo.cc:11:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   11 |   z=c;d=a;
      |       ^
foo.cc:12:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   12 |  if(b>a>c)
      |     ~^~
foo.cc:12:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   12 |  if(b>a>c)
      |  ^~
foo.cc:13:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   13 |   z=a;d=b;
      |       ^
foo.cc:14:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   14 |  if(b>c>a)
      |     ~^~
foo.cc:14:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   14 |  if(b>c>a)
      |  ^~
foo.cc:15:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 |   z=c;d=b;
      |       ^
foo.cc:16:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   16 |  if(c>a>b)
      |     ~^~
foo.cc:16:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   16 |  if(c>a>b)
      |  ^~
foo.cc:17:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   17 |   z=a;d=c;
      |       ^
foo.cc:18:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   18 |  if(c>b>a)
      |     ~^~
foo.cc:18:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |  if(c>b>a)
      |  ^~
foo.cc:19:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   19 |   z=b;d=c;
      |       ^
foo.cc:20:8: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |  cout<<z<<d;
      |        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1058 A1-2 分支结构练习:三数的特征值
语言
C++
递交时间
2022-01-20 11:41:18
评测时间
2022-01-20 11:41:18
评测机
分数
0
总耗时
11ms
峰值内存
384.0 KiB