foo.cc: In function 'int main()':
foo.cc:7:9: error: 'cin' was not declared in this scope
7 | cin>>a;
| ^~~
foo.cc:9:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
9 | if(b=2)
| ~^~
foo.cc:11:9: error: 'cout' was not declared in this scope
11 | cout<<"29"<<endl;
| ^~~~
foo.cc:11:21: error: 'endl' was not declared in this scope
11 | cout<<"29"<<endl;
| ^~~~
foo.cc:13:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
13 | else if(b=2||4||6||9||11)
| ~^~~~~~~~~~~~~~~
foo.cc:15:9: error: 'cout' was not declared in this scope
15 | cout<<"30"<<endl;
| ^~~~
foo.cc:15:21: error: 'endl' was not declared in this scope
15 | cout<<"30"<<endl;
| ^~~~
foo.cc:19:9: error: 'cout' was not declared in this scope
19 | cout<<"31"<<endl;
| ^~~~
foo.cc:19:21: error: 'endl' was not declared in this scope
19 | cout<<"31"<<endl;
| ^~~~
[Hydro](https://hydro.ac)提供评测服务