net.cpp: In function 'int main()':
net.cpp:52:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
52 | printf("%d\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
net.cpp: In function 'pa merge(pa, pa)':
net.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^
net.cpp: In function 'int main()':
net.cpp:41:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
net.cpp:43:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | scanf("%d%d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~