1. Draugai

Taškai: 0

Compile: FAIL

friend_the_third.cpp: In function ‘int main()’: friend_the_third.cpp:50:38: error: cannot convert ‘long int*’ to ‘int*’ for argument ‘1’ to ‘void Union(int*, int, int, int)’ Union(skai,kiek,ska1,ska2); ^ friend_the_third.cpp:52:36: error: no matching function for call to ‘find(long int [kiek], long int&, long int&)’ if (find(skai,ska1,ska2)){ ^ friend_the_third.cpp:7:6: note: candidate: bool find(int*, int, int) bool find( int Arr[ ], int A, int B) ^ friend_the_third.cpp:7:6: note: no known conversion for argument 1 from ‘long int [kiek]’ to ‘int*’ In file included from /usr/include/c++/5/bits/locale_facets.h:48:0, from /usr/include/c++/5/bits/basic_ios.h:37, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from friend_the_third.cpp:1: /usr/include/c++/5/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&) find(istreambuf_iterator<_CharT> __first, ^ /usr/include/c++/5/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed: friend_the_third.cpp:52:36: note: mismatched types ‘std::istreambuf_iterator<_CharT>’ and ‘long int*’ if (find(skai,ska1,ska2)){ ^

nr.resulttimemessage