| Problem | subgraphs |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-09-07 17:24:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘void bfs(long long int)’:
subgraphs.cpp:10:19: error: no match for ‘operator=’ (operand types are ‘std::vector<bool>’ and ‘bool’)
10 | visited[start] = true;
| ^~~~
In file included from /usr/include/c++/9/vector:68,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from subgraphs.cpp:1:
/usr/include/c++/9/bits/stl_bvector.h:717:7: note: candidate: ‘std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]’
717 | operator=(const vector& __x)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_bvector.h:717:31: note: no known conversion for argument 1 from ‘