Problem | subgraphs |
---|---|
User | angelahaha |
Submission Time | 2023-11-10 15:32:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:5:27: error: array bound is not an integer constant before ‘]’ token
5 | vector<int> adjlist [N-1];
| ^
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:9:19: error: a function-definition is not allowed here before ‘{’ token
9 | void dfs( int x){
| ^
subgraphs.cpp:18:14: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
18 | cout << count;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from subgraphs.cpp:1:
/usr/include/c++/9/ostream:1