Compile Error

foo.cc: In function 'int main()':
foo.cc:7:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    7 |         if(a<=w<e)
      |            ~^~~
foo.cc:13:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   13 |                 if(w<=a<e)
      |                    ~^~~
foo.cc:19:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   19 |                         if(e<=a<w)
      |                            ~^~~
foo.cc:25:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   25 |                                 if(a<=e<w)
      |                                    ~^~~
foo.cc:30:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   30 |                                 if(w<=e<a)
      |                                    ~^~~
foo.cc:36:45: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   36 |                                         if(e<=w<a)
      |                                            ~^~~
foo.cc:42:53: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   42 |                                                 if(e=w<a)
      |                                                    ~^~~~
foo.cc:48:61: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   48 |                                                         if(a=w<e)
      |                                                            ~^~~~
foo.cc:54:69: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   54 |                                                                 if(a=e<w)
      |                                                                    ~^~~~
foo.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1015 最小数
语言
C++
递交时间
2023-11-19 21:33:50
评测时间
2023-11-19 21:33:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes