foo.cc: In function 'int main()':
foo.cc:12:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
12 | if(y=12) t+=30;
| ~^~~
foo.cc:13:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
13 | if(y=11) t+=31;
| ~^~~
foo.cc:14:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
14 | if(y=10) t+=30;
| ~^~~
foo.cc:15:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
15 | if(y=9) t+=31;
| ~^~
foo.cc:16:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
16 | if(y=8) t+=31;
| ~^~
foo.cc:17:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
17 | if(y=7) t+=30;
| ~^~
foo.cc:18:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
18 | if(y=6) t+=31;
| ~^~
foo.cc:19:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
19 | if(y=5) t+=30;
| ~^~
foo.cc:20:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
20 | if(y=4) t+=31;
| ~^~
foo.cc:21:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | if(y=3) t+=28;
| ~^~
foo.cc:22:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
22 | if(y=2) t+=31;
| ~^~
foo.cc:23:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
23 | if(y=1);
| ~^~
[Hydro](https://hydro.ac)提供评测服务