Main.cpp: In function 'int main()':
Main.cpp:29:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
29 | scanf ("%d%d", &w, &h);
| ~^ ~~
| | |
| int* long long int*
| %lld
Main.cpp:29:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
29 | scanf ("%d%d", &w, &h);
| ~^ ~~
| | |
| int* long long int*
| %lld
Main.cpp:76:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wformat=]
76 | printf("%d\n", g.size());
| ~^ ~~~~~~~~
| | |
| int std::vector<long long int>::size_type {aka long unsigned int}
| %ld
Main.cpp:77:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for (i = 0; i < g.size(); i++)
| ~~^~~~~~~~~~
Main.cpp:78:18: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
78 | printf("%d\n", g[i]);
| ~^
| |
| int
| %lld
Main.cpp:26:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf ("%d", &N);
| ~~~~~~^~~~~~~~~~
Main.cpp:29:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf ("%d%d", &w, &h);
| ~~~~~~^~~~~~~~~~~~~~~~