Problem | subgraphs |
---|---|
User | YellowPurpleDragon |
Submission Time | 2024-05-19 20:49:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:9:12: error: request for member ‘push_back’ in ‘adj.std::map<long long int, bool>::operator[](fir)’, which is of non-class type ‘std::map<long long int, bool>::mapped_type’ {aka ‘bool’}
9 | adj[fir].push_back(sec);
| ^~~~~~~~~
subgraphs.cpp:10:12: error: request for member ‘push_back’ in ‘adj.std::map<long long int, bool>::operator[](sec)’, which is of non-class type ‘std::map<long long int, bool>::mapped_type’ {aka ‘bool’}
10 | adj[sec].push_back(fir);
| ^~~~~~~~~