citymapping.cpp: In function 'void find_roads(int, int, int*, int*, int*)':
citymapping.cpp:44:14: error: conflicting declaration 'std::vector<int> c'
44 | vector<int> c(N);
| ^
citymapping.cpp:31:6: note: previous declaration as 'int c'
31 | int c = 0;
| ^
citymapping.cpp:46:87: error: invalid types 'int[int]' for array subscript
46 | if(s.same_set(edges[i].first.first, edges[i].first.second) || c[edges[i].first.first] >= 3 || c[edges[i].second.second] >= 3) continue;
| ^
citymapping.cpp:46:115: error: request for member 'second' in 'edges.std::vector<std::pair<std::pair<int, int>, long long int> >::operator[](((std::vector<std::pair<std::pair<int, int>, long long int> >::size_type)i)).std::pair<std::pair<int, int>, long long int>::second', which is of non-class type 'long long int'
46 | if(s.same_set(edges[i].first.first, edges[i].first.second) || c[edges[i].first.first] >= 3 || c[edges[i].second.second] >= 3) continue;
| ^~~~~~
citymapping.cpp:49:9: error: invalid types 'int[int]' for array subscript
49 | c[A[m]]++, c[B[m]]++;
| ^
citymapping.cpp:49:20: error: invalid types 'int[int]' for array subscript
49 | c[A[m]]++, c[B[m]]++;
| ^