crocodile.cpp: In function 'void dfs(int)':
crocodile.cpp:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i=0; i<graff[v].size(); i++)
| ~^~~~~~~~~~~~~~~~
crocodile.cpp:20:24: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'} to 'int'
20 | dfs(graff[v][i]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type {aka std::pair<long long int, long long int>}
crocodile.cpp:12:14: note: initializing argument 1 of 'void dfs(int)'
12 | void dfs(int v)
| ~~~~^
crocodile.cpp:21:13: error: no match for 'operator[]' (operand types are 'int [100010]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'})
21 | if(T[graff[v][i]]<m1){m2=m1; m1=T[graff[v][i]];}
| ^
crocodile.cpp:21:42: error: no match for 'operator[]' (operand types are 'int [100010]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'})
21 | if(T[graff[v][i]]<m1){m2=m1; m1=T[graff[v][i]];}
| ^
crocodile.cpp:22:18: error: no match for 'operator[]' (operand types are 'int [100010]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'})
22 | else if(T[graff[v][i]]>=m1 and T[graff[v][i]]<=m2){m2=T[graff[v][i]];}
| ^
crocodile.cpp:22:41: error: no match for 'operator[]' (operand types are 'int [100010]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'})
22 | else if(T[graff[v][i]]>=m1 and T[graff[v][i]]<=m2){m2=T[graff[v][i]];}
| ^
crocodile.cpp:22:64: error: no match for 'operator[]' (operand types are 'int [100010]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'})
22 | else if(T[graff[v][i]]>=m1 and T[graff[v][i]]<=m2){m2=T[graff[v][i]];}
| ^