foo.c: In function 'main':
foo.c:7:9: warning: implicit declaration of function 's' [-Wimplicit-function-declaration]
7 | scanf-s("%d",&x);
| ^
foo.c:7:8: warning: value computed is not used [-Wunused-value]
7 | scanf-s("%d",&x);
| ~~~~~^~~~~~~~~~~
foo.c:9:3: warning: statement with no effect [-Wunused-value]
9 | for(mask;mask>>=1)
| ^~~
foo.c:9:20: error: expected ';' before ')' token
9 | for(mask;mask>>=1)
| ^
| ;
foo.c:13:3: error: 'printf\U0000ff08' undeclared (first use in this function); did you mean 'printf'?
13 | printf("\n");
| ^~~~~~~~
| printf
foo.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
foo.c:13:11: error: expected ';' before string constant
13 | printf("\n");
| ^~~~
| ;
foo.c:13:15: error: expected statement before ')' token
13 | printf("\n");
| ^
[Hydro](https://hydro.ac)提供评测服务