0_0_21889297_30507.cpp: In function 'int solve(std::vector<std::pair<std::pair<int, int>, int> >&, int, int, int)':
0_0_21889297_30507.cpp:39:55: error: could not convert '(((void)__gnu_cxx::operator!=<std::pair<std::pair<int, int>, int>*, std::vector<std::pair<std::pair<int, int>, int> > >((*(const __gnu_cxx::__normal_iterator<std::pair<std::pair<int, int>, int>*, std::vector<std::pair<std::pair<int, int>, int> > >*)(& iter)), (*(const __gnu_cxx::__normal_iterator<std::pair<std::pair<int, int>, int>*, std::vector<std::pair<std::pair<int, int>, int> > >*)(&(& edges)->std::vector<_Tp, _Alloc>::end<std::pair<std::pair<int, int>, int>, std::allocator<std::pair<std::pair<int, int>, int> > >())))), iter.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++<std::pair<std::pair<int, int>, int>*, std::vector<std::pair<std::pair<int, int>, int> > >(0))' from '__gnu_cxx::__normal_iterator<std::pair<std::pair<int, int>, int>*, std::vector<std::pair<std::pair<int, int>, int> > >' to 'bool'
for(auto iter=edges.begin();iter!=edges.end(),iter++){
^
0_0_21889297_30507.cpp:39:57: error: expected ';' before ')' token
for(auto iter=edges.begin();iter!=edges.end(),iter++){
^
|