foo.c: In function 'solve':
foo.c:5:24: warning: 'return' with a value, in function returning void [-Wreturn-type]
5 | return 0;
| ^
foo.c:2:6: note: declared here
2 | void solve(long long int x)
| ^~~~~
foo.c:7:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
7 | printf("%d", x%2);
| ~^ ~~~
| | |
| int long long int
| %lld
foo.c: In function 'main':
foo.c:11:25: warning: unused variable 'j' [-Wunused-variable]
11 | long long int x,j;
| ^
[Hydro](https://hydro.ac)提供评测服务