Borderou de evaluare (job #3164630)
Utilizator | Data | 3 noiembrie 2023 22:31:56 | |
---|---|---|---|
Problema | Sumtree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void decomp(int)':
main.cpp:57:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 0; i < factors[val[node]].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int64_t solve(int)':
main.cpp:114:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for (int i = 0; i < nodes.size(); i++) {
| ~~^~~~~~~~~~~~~~
main.cpp:119:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for (int i = 0; i < nodes.size()-1; i++) {
| ~~^~~~~~~~~~~~~~~~
main.cpp: In lambda function:
main.cpp:124:41: error: no matching function for call to 'get<0>(const std::tuple<int, int, int>&)'
124 | return depth[std::get<0>(a)] > depth[std::get<0>(b)];
| ~~~~~~~~~~~^~~
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:855:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(pair<_Tp1, _Tp2>&)'
855 | get(pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:855:5: note: template argument deduction/substitution failed:
main.cpp:124:41: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers
124 | return depth[std::get<0>(a)] > depth[std::get<0>(b)];
| ~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:860:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(pair<_Tp1, _Tp2>&&)'
860 | get(pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:860:5: note: template argument deduction/substitution failed:
main.cpp:124:41: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers
124 | return depth[std::get<0>(a)] > depth[std::get<0>(b)];
| ~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:865:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const pair<_Tp1, _Tp2>&)'
865 | get(const pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:865:5: note: template argument deduction/substitution failed:
main.cpp:124:41: note: 'const std::tuple<int, int, int>' is not derived from 'const std::pair<_Tp1, _Tp2>'
124 | return depth[std::get<0>(a)] > depth[std::get<0>(b)];
| ~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:870:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const pair<_Tp1, _Tp2>&&)'
870 | get(const pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:870:5: note: template argument deduction/substitution failed:
main.cpp:124:41: note: 'const std::tuple<int, int, int>' is not derived from 'const std::pair<_Tp1, _Tp2>'
124 | return depth[std::get<0>(a)] > depth[std::get<0>(b)];
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !