Graph.cpp: In function 'void dfs(int, int, int)':
Graph.cpp:38: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]
38 | for(int i=0;i<adj[v].size();i++) {
| ~^~~~~~~~~~~~~~
Graph.cpp: In function 'int main()':
Graph.cpp:60:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=0;i<save.size();i++) {
| ~^~~~~~~~~~~~
Graph.cpp:72:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for(int i=0;i<save.size();i++) {
| ~^~~~~~~~~~~~
Graph.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%d %d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~
Graph.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%d %d %d",&u,&v,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~