foo.cc: In function 'int main()':
foo.cc:10:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int' [-Wformat=]
10 | scanf("%d",L);
| ~^ ~
| | |
| | long long int
| int*
foo.cc:14:12: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
14 | printf("%c","impossible");
| ~^ ~~~~~~~~~~~~
| | |
| | const char*
| int
| %s
foo.cc:17:8: warning: unused variable 'b' [-Wunused-variable]
17 | long b=a+L;
| ^
foo.cc:24:12: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
24 | printf("%c","impossible");
| ~^ ~~~~~~~~~~~~
| | |
| | const char*
| int
| %s
foo.cc:27:8: warning: unused variable 'b' [-Wunused-variable]
27 | long b=a+L;
| ^
foo.cc:7:13: warning: unused variable 'b' [-Wunused-variable]
7 | long a=d*m,b=d*n;
| ^
foo.cc:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",L);
| ~~~~~^~~~~~~~
foo.cc:7:9: warning: 'd' is used uninitialized in this function [-Wuninitialized]
7 | long a=d*m,b=d*n;
| ^
foo.cc:7:10: warning: 'm' is used uninitialized in this function [-Wuninitialized]
7 | long a=d*m,b=d*n;
| ~^~
foo.cc:7:16: warning: 'n' is used uninitialized in this function [-Wuninitialized]
7 | long a=d*m,b=d*n;
| ~^~
foo.cc:10:7: warning: 'L' is used uninitialized in this function [-Wuninitialized]
10 | scanf("%d",L);
| ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务