izlet.cpp: In function 'int dfs1(int)':
izlet.cpp:39:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i=0;i<adj[v].size();i++) {
| ~^~~~~~~~~~~~~~
izlet.cpp: In function 'int main()':
izlet.cpp:87:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for(int i=0;i<edge.size();i++) {
| ~^~~~~~~~~~~~
izlet.cpp:106:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | for(int i=0;i<adj[now].size();i++) {
| ~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from izlet.cpp:1:
izlet.cpp:115:35: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
115 | assert(edge.size()+save.size()==n-1);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
izlet.cpp:118:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
118 | for(int i=0;i<edge.size();i++) printf("%d %d\n",edge[i].first,edge[i].second);
| ~^~~~~~~~~~~~
izlet.cpp:119:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for(int i=0;i<save.size();i++) printf("%d %d\n",save[i].first,save[i].second);
| ~^~~~~~~~~~~~
izlet.cpp:61:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
61 | scanf("%d",&s);
| ~~~~~^~~~~~~~~
izlet.cpp:62:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
62 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
izlet.cpp:66:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf("%d",&arr[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~