Problem subgraphs
User Sarah5678
Submission Time 2026-03-09 23:38:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:2:2: error: ‘ios_base’ has not been declared
2 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~~~~~~
subgraphs.cpp:2:32: error: ‘cin’ was not declared in this scope
2 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~
subgraphs.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> v[n+1];
| ^~~~~~
subgraphs.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> v[n+1];
| ^~~
subgraphs.cpp:10:3: error: ‘v’ was not declared in this scope
10 | v[a].push_back(b);
| ^
subgraphs.cpp:20:2: error: ‘set’ was not declared in this scope
20 | set<int> visited;
| ^~~
subgraphs.cpp:20:6: error: expected primary-expression before ‘int’
20 | set<int> visited;
| ^~~
subgraphs.cpp:21:2: error: ‘queue’ wa