plan.cpp: In function 'int main()':
plan.cpp:35:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
35 | scanf("%d%d%d", x, y, z),
| ~^ ~
| | |
| int* int
plan.cpp:35:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
35 | scanf("%d%d%d", x, y, z),
| ~^ ~
| | |
| int* int
plan.cpp:35:15: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
35 | scanf("%d%d%d", x, y, z),
| ~^ ~
| | |
| int* int
plan.cpp:42:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
42 | scanf("%d", x),
| ~^ ~
| | |
| | int
| int*
plan.cpp:55:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for (int i=0; i<v[x].size(); i++) {
| ~^~~~~~~~~~~~
plan.cpp:78:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
78 | md.pb({l[i]+r[i]>>1, i});
| ~~~~^~~~~
plan.cpp:92:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for (int j=0; j<v[dist[o].S].size(); j++)
| ~^~~~~~~~~~~~~~~~~~~~
plan.cpp:35:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%d%d%d", x, y, z),
| ~~~~~^~~~~~~~~~~~~~~~~~~
plan.cpp:42:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
42 | scanf("%d", x),
| ~~~~~^~~~~~~~~