Problem subgraphs
User PerihelionfromAphelion
Submission Time 2026-06-21 12:31:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void bfs(int)’:
subgraphs.cpp:11:15: error: cannot resolve overloaded function ‘front’ based on conversion to type ‘int’
11 | int cur = q.front;
| ^~~~~
subgraphs.cpp:16:13: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
16 | q.push[e];
| ^
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:37:7: error: ‘i’ was not declared in this scope
37 | for (i = 0; i < n; i++) {
| ^