net.cpp: In function 'int main()':
net.cpp:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i = 0; i + 1 < v.size(); i += 2){
| ~~~~~~^~~~~~~~~~
net.cpp:20:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::queue<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
20 | printf("%d\n", q.size());
| ~^ ~~~~~~~~
| | |
| int std::queue<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
net.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
net.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~