foo.c: In function 'main':
foo.c:6:9: error: expected expression before '%' token
6 | scanf(%d , &x);
| ^
foo.c:8:19: warning: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
8 | if(x % 2 == 1) print("Odd");
| ^~~~~
| printf
foo.c:9:9: error: 'print\U0000ff08' undeclared (first use in this function); did you mean 'printf'?
9 | else print("Even");
| ^~~~~~~
| printf
foo.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:16: error: expected ';' before string constant
9 | else print("Even");
| ^~~~~~
| ;
foo.c:9:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
9 | else print("Even");
| ^~~~
foo.c:9:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
9 | else print("Even");
| ^
foo.c:9:22: error: expected statement before ')' token
[Hydro](https://hydro.ac)提供评测服务