Borderou de evaluare (job #3180048)
Utilizator | Data | 4 decembrie 2023 16:11:38 | |
---|---|---|---|
Problema | Trilant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'std::pair<long long int, std::vector<std::vector<int> > > graph::problema_trilant(std::istream&)':
main.cpp:181:23: error: 'lnat_b' was not declared in this scope; did you mean 'lant_b'?
181 | l_a.push_back(lnat_b[i]);
| ^~~~~~
| lant_b
main.cpp:190:30: error: no matching function for call to 'make_pair(int&, std::vector<int>&, std::vector<int>&, std::vector<int>&)'
190 | return std::make_pair(suma, l_a, l_b, l_c);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64,
from /usr/include/c++/12.2.1/string:50,
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_pair.h:741:5: note: candidate: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
741 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:741:5: note: template argument deduction/substitution failed:
main.cpp:190:30: note: candidate expects 2 arguments, 4 provided
190 | return std::make_pair(suma, l_a, l_b, l_c);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !