foo.c: In function 'main':
foo.c:5:21: warning: format '%lo' expects argument of type 'long unsigned int *', but argument 2 has type 'long long int *' [-Wformat=]
5 | while (scanf("%long longd%long longd", &x1, &x2)) {
| ~~^ ~~~
| | |
| long unsigned int * long long int *
| %llo
foo.c:5:32: warning: format '%lo' expects argument of type 'long unsigned int *', but argument 3 has type 'long long int *' [-Wformat=]
5 | while (scanf("%long longd%long longd", &x1, &x2)) {
| ~~^ ~~~
| | |
| | long long int *
| long unsigned int *
| %llo
foo.c:6:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
6 | printf("%long longd\n", x1 + x2);
| ~~^ ~~~~~~~
| | |
| | long long int
| long unsigned int
| %llo
foo.c:7:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
7 | printf("%long longd\n", x1 * x2);
| ~~^ ~~~~~~~
| | |
| | long long int
| long unsigned int
| %llo
foo.c:8:19: warning: format '%lo' expects argument of type 'long unsigned int', but argument 2 has type 'long long int' [-Wformat=]
8 | printf("%long longd\n", x1 % x2);
| ~~^ ~~~~~~~
| | |
| | long long int
| long unsigned int
| %llo
foo.c:8:41: error: expected ';' before '\U0000ff1b'
8 | printf("%long longd\n", x1 % x2);
| ^~
| ;
foo.c:11:12: error: invalid suffix ";" on integer constant
11 | return 0;
| ^~~
foo.c:11:15: error: expected ';' before '}' token
11 | return 0;
| ^
| ;
12 | }
| ~
[Hydro](https://hydro.ac)提供评测服务