/in/foo.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
/in/foo.c: In function 'main':
/in/foo.c:8:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
8 | if(m<8&&m%2!=0||m>=8&&m%2==0)
| ~~~^~~~~~~~
/in/foo.c:9:17: error: 'cout' undeclared (first use in this function)
9 | cout<<"31";
| ^~~~
/in/foo.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:22:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
22 | if(m<8&&m%2!=0||m>=8&&m%2==0)
| ~~~^~~~~~~~
/in/foo.c:34:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
34 | if(m<8&&m%2!=0||m>=8&&m%2==0)
| ~~~^~~~~~~~