Main.cpp: In function 'void dfs(int, int)':
Main.cpp:9:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i=0;i<adj[v].size();i++) {
| ~^~~~~~~~~~~~~~
Main.cpp: In function 'int main()':
Main.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
Main.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d %d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~~
Main.cpp:50:30: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized]
50 | if (p[now]!=-1) {
| ~~~~~^