Unikalūs skaičiai

Taškai: 0

Compile: FAIL

unikalus_skaiciai.cpp: In function ‘int main()’: unikalus_skaiciai.cpp:21:15: error: no match for ‘operator>’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’) while (fin>0){ ^ unikalus_skaiciai.cpp:21:15: note: candidate: operator>(int, int) <built-in> unikalus_skaiciai.cpp:21:15: note: no known conversion for argument 1 from ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘int’ In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/stl_pair.h:233:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/5/bits/stl_pair.h:233:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::pair<_T1, _T2>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/stl_iterator.h:310:5: note: candidate: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator>(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/5/bits/stl_iterator.h:310:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/stl_iterator.h:360:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator>(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/5/bits/stl_iterator.h:360:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/stl_iterator.h:1113:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator>(const move_iterator<_IteratorL>& __x, ^ /usr/include/c++/5/bits/stl_iterator.h:1113:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::move_iterator<_Iterator>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/stl_iterator.h:1119:5: note: candidate: template<class _Iterator> bool std::operator>(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&) operator>(const move_iterator<_Iterator>& __x, ^ /usr/include/c++/5/bits/stl_iterator.h:1119:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::move_iterator<_Iterator>’ while (fin>0){ ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/basic_string.h:5024:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/5/bits/basic_string.h:5024:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/basic_string.h:5036:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ /usr/include/c++/5/bits/basic_string.h:5036:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from unikalus_skaiciai.cpp:1: /usr/include/c++/5/bits/basic_string.h:5048:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator>(const _CharT* __lhs, ^ /usr/include/c++/5/bits/basic_string.h:5048:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: mismatched types ‘const _CharT*’ and ‘std::basic_ifstream<char>’ while (fin>0){ ^ In file included from /usr/include/c++/5/vector:64:0, from /usr/include/c++/5/bits/random.h:34, from /usr/include/c++/5/random:49, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from unikalus_skaiciai.cpp:3: /usr/include/c++/5/bits/stl_vector.h:1541:5: note: candidate: template<class _Tp, class _Alloc> bool std::operator>(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&) operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) ^ /usr/include/c++/5/bits/stl_vector.h:1541:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::vector<_Tp, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/tuple:39:0, from /usr/include/c++/5/bits/unique_ptr.h:37, from /usr/include/c++/5/bits/locale_conv.h:41, from /usr/include/c++/5/locale:43, from /usr/include/c++/5/iomanip:43, from unikalus_skaiciai.cpp:4: /usr/include/c++/5/array:258:5: note: candidate: template<class _Tp, long unsigned int _Nm> bool std::operator>(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) ^ /usr/include/c++/5/array:258:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::array<_Tp, _Nm>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/unique_ptr.h:37:0, from /usr/include/c++/5/bits/locale_conv.h:41, from /usr/include/c++/5/locale:43, from /usr/include/c++/5/iomanip:43, from unikalus_skaiciai.cpp:4: /usr/include/c++/5/tuple:947:5: note: candidate: template<class ... _TElements, class ... _UElements> constexpr bool std::operator>(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator>(const tuple<_TElements...>& __t, ^ /usr/include/c++/5/tuple:947:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::tuple<_Elements ...>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/locale_conv.h:41:0, from /usr/include/c++/5/locale:43, from /usr/include/c++/5/iomanip:43, from unikalus_skaiciai.cpp:4: /usr/include/c++/5/bits/unique_ptr.h:699:5: note: candidate: template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator>(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&) operator>(const unique_ptr<_Tp, _Dp>& __x, ^ /usr/include/c++/5/bits/unique_ptr.h:699:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::unique_ptr<_Tp, _Dp>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/locale_conv.h:41:0, from /usr/include/c++/5/locale:43, from /usr/include/c++/5/iomanip:43, from unikalus_skaiciai.cpp:4: /usr/include/c++/5/bits/unique_ptr.h:705:5: note: candidate: template<class _Tp, class _Dp> bool std::operator>(const std::unique_ptr<_Tp, _Dp>&, std::nullptr_t) operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) ^ /usr/include/c++/5/bits/unique_ptr.h:705:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::unique_ptr<_Tp, _Dp>’ while (fin>0){ ^ In file included from /usr/include/c++/5/bits/locale_conv.h:41:0, from /usr/include/c++/5/locale:43, from /usr/include/c++/5/iomanip:43, from unikalus_skaiciai.cpp:4: /usr/include/c++/5/bits/unique_ptr.h:711:5: note: candidate: template<class _Tp, class _Dp> bool std::operator>(std::nullptr_t, const std::unique_ptr<_Tp, _Dp>&) operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) ^ /usr/include/c++/5/bits/unique_ptr.h:711:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: cannot convert ‘fin’ (type ‘std::ifstream {aka std::basic_ifstream<char>}’) to type ‘std::nullptr_t’ while (fin>0){ ^ In file included from /usr/include/c++/5/set:60:0, from unikalus_skaiciai.cpp:8: /usr/include/c++/5/bits/stl_tree.h:1300:5: note: candidate: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator>(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) operator>(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, ^ /usr/include/c++/5/bits/stl_tree.h:1300:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/set:61:0, from unikalus_skaiciai.cpp:8: /usr/include/c++/5/bits/stl_set.h:873:5: note: candidate: template<class _Key, class _Compare, class _Alloc> bool std::operator>(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&) operator>(const set<_Key, _Compare, _Alloc>& __x, ^ /usr/include/c++/5/bits/stl_set.h:873:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::set<_Key, _Compare, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/set:62:0, from unikalus_skaiciai.cpp:8: /usr/include/c++/5/bits/stl_multiset.h:856:5: note: candidate: template<class _Key, class _Compare, class _Alloc> bool std::operator>(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&) operator>(const multiset<_Key,_Compare,_Alloc>& __x, ^ /usr/include/c++/5/bits/stl_multiset.h:856:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::multiset<_Key, _Compare, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/map:61:0, from unikalus_skaiciai.cpp:9: /usr/include/c++/5/bits/stl_map.h:1104:5: note: candidate: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator>(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&) operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, ^ /usr/include/c++/5/bits/stl_map.h:1104:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’ while (fin>0){ ^ In file included from /usr/include/c++/5/map:62:0, from unikalus_skaiciai.cpp:9: /usr/include/c++/5/bits/stl_multimap.h:1005:5: note: candidate: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator>(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&) operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, ^ /usr/include/c++/5/bits/stl_multimap.h:1005:5: note: template argument deduction/substitution failed: unikalus_skaiciai.cpp:21:16: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’ while (fin>0){ ^

nr.resulttimemessage