salesman.cpp: In function 'void input()':
salesman.cpp:72:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
72 | scanf("%d %d %d %d",&n,&u,&d,&s);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:72:16: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
72 | scanf("%d %d %d %d",&n,&u,&d,&s);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:72:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll*' {aka 'long long int*'} [-Wformat=]
72 | scanf("%d %d %d %d",&n,&u,&d,&s);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:72:22: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'll*' {aka 'long long int*'} [-Wformat=]
72 | scanf("%d %d %d %d",&n,&u,&d,&s);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:75:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
75 | scanf("%d %d %d",&a,&b,&c);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:75:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
75 | scanf("%d %d %d",&a,&b,&c);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp:75:23: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll*' {aka 'long long int*'} [-Wformat=]
75 | scanf("%d %d %d",&a,&b,&c);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
salesman.cpp: In function 'void solve()':
salesman.cpp:87:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
87 | printf("%d",getDP(s));
| ~^ ~~~~~~~~
| | |
| int ll {aka long long int}
| %lld
salesman.cpp: In function 'void input()':
salesman.cpp:72:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
72 | scanf("%d %d %d %d",&n,&u,&d,&s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
salesman.cpp:75:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d %d %d",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~