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

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:18:18: 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:22: 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[int(vect[x].second)] = 1;
| ^~~~~~