Borderou de evaluare (job #2814576)

Utilizator cezar_titianuTitianu Cezar cezar_titianu Data 8 decembrie 2021 12:12:38
Problema Eq4 Status done
Runda oji_simulare_2018_cl10 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | while (pos < str.size()) { | ~~~~^~~~~~~~~~~~ main.cpp:34:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | while (pos < str.size() && '0' <= str[pos] && str[pos] <= '9') { | ~~~~^~~~~~~~~~~~ main.cpp:42:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 42 | if (pos >= str.size()) { | ~~~~^~~~~~~~~~~~~ main.cpp:81:21: error: no match for 'operator=' (operand types are 'std::map<long long int, int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, int>, std::_Select1st<std::pair<const long long int, int> >, std::less<long long int>, std::allocator<std::pair<const long long int, int> > >::iterator'} and 'std::map<long long int, short int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, short int>, std::_Select1st<std::pair<const long long int, short int> >, std::less<long long int>, std::allocator<std::pair<const long long int, short int> > >::iterator'}) 81 | pos1 = num1.begin(); | ^ In file included from /usr/include/c++/10/map:60, from main.cpp:3: /usr/include/c++/10/bits/stl_tree.h:256:12: note: candidate: 'constexpr std::_Rb_tree_iterator<std::pair<const long long int, int> >& std::_Rb_tree_iterator<std::pair<const long long int, int> >::operator=(const std::_Rb_tree_iterator<std::pair<const long long int, int> >&)' 256 | struct _Rb_tree_iterator | ^~~~~~~~~~~~~~~~~ /usr/include/c++/10/bits/stl_tree.h:256:12: note: no known conversion for argument 1 from 'std::map<long long int, short int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, short int>, std::_Select1st<std::pair<const long long int, short int> >, std::less<long long int>, std::allocator<std::pair<const long long int, short int> > >::iterator'} to 'const std::_Rb_tree_iterator<std::pair<const long long int, int> >&' /usr/include/c++/10/bits/stl_tree.h:256:12: note: candidate: 'constexpr std::_Rb_tree_iterator<std::pair<const long long int, int> >& std::_Rb_tree_iterator<std::pair<const long long int, int> >::operator=(std::_Rb_tree_iterator<std::pair<const long long int, int> >&&)' /usr/include/c++/10/bits/stl_tree.h:256:12: note: no known conversion for argument 1 from 'std::map<long long int, short int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, short int>, std::_Select1st<std::pair<const long long int, short int> >, std::less<long long int>, std::allocator<std::pair<const long long int, short int> > >::iterator'} to 'std::_Rb_tree_iterator<std::pair<const long long int, int> >&&' main.cpp:84:15: error: no match for 'operator!=' (operand types are 'std::map<long long int, int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, int>, std::_Select1st<std::pair<const long long int, int> >, std::less<long long int>, std::allocator<std::pair<const long long int, int> > >::iterator'} and 'std::map<long long int, short int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, short int>, std::_Select1st<std::pair<const long long int, short int> >, std::less<long long int>, std::allocator<std::pair<const long long int, short int> > >::iterator'}) 84 | while (pos1 != num1.end() && pos2 != num2.rend()) { | ~~~~ ^~ ~~~~~~~~~~ | | | | | _Rb_tree_iterator<pair<[...],short int>> | _Rb_tree_iterator<pair<[...],int>> In file included from /usr/include/c++/10/iosfwd:40, from /usr/include/c++/10/ios:38, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/bits/postypes.h:227:5: note: candidate: 'template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)' 227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/10/bits/postypes.h:227:5: note: template argument deduction/substitution failed: main.cpp:84:27: note: 'std::map<long long int, int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, int>, std::_Select1st<std::pair<const long long int, int> >, std::less<long long int>, std::allocator<std::pair<const long long int, int> > >::iterator'} is not derived from 'const std::fpos<_StateT>' 84 | while (pos1 != num1.end() && pos2 != num2.rend()) { | ^ 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/fstream:38, from main.cpp:1: /usr/include/c++/10/bits/stl_pair.h:496:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)' 496 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/10/bits/stl_pair.h:496:5: note: template argument deduction/substitution failed: main.cpp:84:27: note: 'std::map<long long int, int>::iterator' {aka 'std::_Rb_tree<long long int, std::pair<const long long int, int>, std::_Select1st<std::pair<const long long int, int> >, std::less<long long int>, std::allocator<std::pair<const long long int, int> > >::iterator'} is not derived from 'const std::pair<_T1, _T2>' Non zero exit status: 1

Ceva nu functioneaza?