Borderou de evaluare (job #2778019)

Utilizator marcumihaiMarcu Mihai marcumihai Data 27 septembrie 2021 16:27:44
Problema Nuke Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:123:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<element>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 123 | for(int i=0;i<v.size();++i) | ~^~~~~~~~~ main.cpp:118:9: warning: unused variable 'lung' [-Wunused-variable] 118 | int lung=v.size(); | ^~~~ In file included from /usr/include/c++/10/string:48, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/sstream:38, from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/bits/stl_function.h: In instantiation of 'constexpr bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = cercuri]': /usr/include/c++/10/bits/stl_tree.h:1967:28: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_upper_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, const _Key&) [with _Key = cercuri; _Val = cercuri; _KeyOfValue = std::_Identity<cercuri>; _Compare = std::less<cercuri>; _Alloc = std::allocator<cercuri>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<cercuri, cercuri, std::_Identity<cercuri>, std::less<cercuri>, std::allocator<cercuri> >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<cercuri>*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]' /usr/include/c++/10/bits/stl_tree.h:1285:30: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::upper_bound(const key_type&) [with _Key = cercuri; _Val = cercuri; _KeyOfValue = std::_Identity<cercuri>; _Compare = std::less<cercuri>; _Alloc = std::allocator<cercuri>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<cercuri, cercuri, std::_Identity<cercuri>, std::less<cercuri>, std::allocator<cercuri> >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = cercuri]' /usr/include/c++/10/bits/stl_set.h:860:32: required from 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::upper_bound(const key_type&) [with _Key = cercuri; _Compare = std::less<cercuri>; _Alloc = std::allocator<cercuri>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree<cercuri, cercuri, std::_Identity<cercuri>, std::less<cercuri>, std::allocator<cercuri> >::const_iterator; std::set<_Key, _Compare, _Alloc>::key_type = cercuri]' main.cpp:86:37: required from here /usr/include/c++/10/bits/stl_function.h:386:20: error: no match for 'operator<' (operand types are 'const cercuri' and 'const cercuri') 386 | { return __x < __y; } | ~~~~^~~~~ In file included from /usr/include/c++/10/bits/stl_algobase.h:64, from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/sstream:38, from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/bits/stl_pair.h:489:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)' 489 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/10/bits/stl_pair.h:489:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/10/string:48, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/sstream:38, from /usr/include/c++/10/complex:45, from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/bits/stl_function.h:386:20: note: 'const cercuri' is not derived from 'const std::pair<_T1, _T2>' 386 | { return __x < __y; } Non zero exit status: 1

Ceva nu functioneaza?