Problem adjmatrix
User PlayVoltz
Submission Time 2023-03-16 11:22:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:18:19: error: request for member ‘first’ in ‘vect.std::vector<int>::operator[](((std::vector<int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
18 | if (i==vect[x].first){
| ^~~~~
adjmatrix.cpp:19:18: error: request for member ‘second’ in ‘vect.std::vector<int>::operator[](((std::vector<int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
19 | vect[vect[x].second] = 1;
| ^~~~~~