Problem subgraphs
User SheepHeads
Submission Time 2024-01-10 19:18:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:63:29: error: no matching function for call to ‘find(long long int [node], long long int&)’
63 | int n = find(visited, node);
| ^
subgraphs.cpp:5:5: note: candidate: ‘long long int find(long long int (&)[], long long int)’
5 | int find(int (&visited)[], int size){
| ^~~~
subgraphs.cpp:5:16: note: no known conversion for argument 1 from ‘long long int [node]’ to ‘long long int (&)[]’
5 | 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