Borderou de evaluare (job #3184034)
Utilizator | Data | 14 decembrie 2023 00:00:32 | |
---|---|---|---|
Problema | Apm2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:85:28: error: 'INT_MAX' was not declared in this scope
85 | AdouaMuchie.cost = INT_MAX;
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <cstring> // Pentru memset
+++ |+#include <climits>
6 |
main.cpp:90:40: error: no match for 'operator=' (operand types are 'std::vector<Muchie>' and 'void')
90 | updateApm = Kruskal ( n, Muchii);
| ^
In file included from /usr/include/c++/12.2.1/vector:70,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/vector.tcc:204:5: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = Muchie; _Alloc = std::allocator<Muchie>]'
204 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/vector.tcc:205:42: note: no known conversion for argument 1 from 'void' to 'const std::vector<Muchie>&'
205 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/12.2.1/vector:64:
/usr/include/c++/12.2.1/bits/stl_vector.h:761:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = Muchie; _Alloc = std::allocator<Muchie>]'
761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:761:26: note: no known conversion for argument 1 from 'void' to 'std::vector<Muchie>&&'
761 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_vector.h:783:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = Muchie; _Alloc = std::allocator<Muchie>]'
783 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:783:46: note: no known conversion for argument 1 from 'void' to 'std::initializer_list<Muchie>'
783 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
main.cpp:74:9: warning: unused variable 'maxCost' [-Wunused-variable]
74 | int maxCost = 0;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !