Borderou de evaluare (job #3284212)

Utilizator Nasa1004Ema Nicole Gheorghe Nasa1004 Data 11 martie 2025 11:34:21
Problema Free Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'Nrmari Nrmari::operator+(const Nrmari&) const': main.cpp:19:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 19 | for(int i = 0; i < ans.v.size(); i++) { | ~~^~~~~~~~~~~~~~ main.cpp:20:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | if(i < v.size()) | ~~^~~~~~~~~~ main.cpp:22:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 22 | if(i < x.v.size()) | ~~^~~~~~~~~~~~ main.cpp: In member function 'Nrmari Nrmari::operator-(const Nrmari&) const': main.cpp:37:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | for(int i = 0; i < ans.v.size(); i++) { | ~~^~~~~~~~~~~~~~ main.cpp:39:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | if(i < x.v.size()) | ~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:111:29: error: no match for 'operator/' (operand types are 'Nrmari' and 'int') 111 | int mid = (st + dr) / 2; | ~~~~~~~~~ ^ ~ | | | | Nrmari int main.cpp:112:22: error: no match for 'operator>' (operand types are 'int' and 'Nrmari') 112 | if(mid * mid > n) | ~~~~~~~~~ ^ ~ | | | | int Nrmari In file included from /usr/include/c++/12.2.1/string:47, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)' (reversed) 579 | operator<=>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: template argument deduction/substitution failed: main.cpp:112:24: note: 'Nrmari' is not derived from 'const std::reverse_iterator<_IteratorL>' 112 | if(mid * mid > n) | ^ /usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' (reversed) 1668 | operator<=>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: template argument deduction/substitution failed: main.cpp:112:24: note: 'Nrmari' is not derived from 'const std::move_iterator<_IteratorL>' 112 | if(mid * mid > n) | ^ In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47, Non zero exit status: 1

Ceva nu functioneaza?