Problem | subgraphs |
---|---|
User | SheepHeads |
Submission Time | 2024-01-10 19:18:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:62:29: error: no matching function for call to ‘find(int [node], int&)’
62 | int n = find(visited, node);
| ^
subgraphs.cpp:4:5: note: candidate: ‘int find(int (&)[], int)’
4 | int find(int (&visited)[], int size){
| ^~~~
subgraphs.cpp:4:16: note: no known conversion for argument 1 from ‘int [node]’ to ‘int (&)[]’
4 | int find(int (&visited)[], int size){
| ~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
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