Problem | factories |
---|---|
User | haydendoo |
Submission Time | 2023-01-16 17:43:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
factories.cpp: In function ‘long long int dfs1(long long int, long long int)’:
factories.cpp:265:9: error: no match for ‘operator[]’ (operand types are ‘long long int [500001]’ and ‘std::pair<long long int, long long int>’)
265 | if(lvl[v]!=-1 || v==p) continue;
| ^
factories.cpp:265:21: error: no match for ‘operator==’ (operand types are ‘std::pair<long long int, long long int>’ and ‘long long int’)
265 | if(lvl[v]!=-1 || v==p) continue;
| ~^~~
| | |
| | long long int
| std::pair<long long int, long long int>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from factories.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator==(const std::__cxx11