Problem | citymapping |
---|---|
User | Sandarach151 |
Submission Time | 2022-12-24 21:54:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
citymapping.cpp:7:27: error: two or more data types in declaration of ‘find’
7 | int find(int x, int link[]){
| ^
citymapping.cpp: In function ‘bool same(int, int, int*)’:
citymapping.cpp:15:21: error: no matching function for call to ‘find(int&, int*&)’
15 | return find(a, link)==find(b, link);
| ^
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++/9/bits/stdc++.h:54,
from citymapping.cpp:1:
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: ‘template