Problem subgraphs
User Stefan
Submission Time 2025-03-08 09:58:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void dfs(int)’:
subgraphs.cpp:6:16: error: ‘V’ was not declared in this scope
6 | for (auto v : V[x]){
| ^
subgraphs.cpp:10:3: error: ‘dfa’ was not declared in this scope; did you mean ‘dfs’?
10 | dfa(v);
| ^~~
| dfs
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:15:10: error: expected unqualified-id before numeric constant
15 | for(int 1 = 1;i <= N;++1){
| ^
subgraphs.cpp:15:9: error: expected ‘;’ before numeric constant
15 | for(int 1 = 1;i <= N;++1){
| ^~
| ;
subgraphs.cpp:15:14: error: lvalue required as left operand of assignment
15 | for(int 1 = 1;i <= N;++1){
| ^
subgraphs.cpp:15:16: error: ‘i’ was not declared in this scope
15 | for(int 1 = 1;i <= N;++1){
| ^
subgraphs.cpp:15:21: error: ‘N’ was not declared in this scope