1. Draugai
- [1] 2018-11-17 13:36 (63.3)
- [2] 2018-11-17 13:39 (0)
- [3] 2018-11-17 13:39 (20)
- [4] 2018-11-17 13:52 (53.3)
- [5] 2018-11-17 13:57 (53.3)
- [6] 2018-11-17 14:06 (53.3)
- [7] 2018-11-17 14:24 (96.7)
- [8] 2018-11-24 22:17 (6.7)
- [9] 2019-03-24 13:33 (100)
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. | result | time | message |
---|