Borderou de evaluare (job #3182785)
Utilizator | Data | 9 decembrie 2023 16:16:20 | |
---|---|---|---|
Problema | Segmente | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Seg::readTest()':
main.cpp:42:26: warning: narrowing conversion of 'x1' from 'double' to 'float' [-Wnarrowing]
42 | lines[i] = {{x1, y1}, {x2, y2}};
| ^~
main.cpp:42:30: warning: narrowing conversion of 'y1' from 'double' to 'float' [-Wnarrowing]
42 | lines[i] = {{x1, y1}, {x2, y2}};
| ^~
main.cpp:42:36: warning: narrowing conversion of 'x2' from 'double' to 'float' [-Wnarrowing]
42 | lines[i] = {{x1, y1}, {x2, y2}};
| ^~
main.cpp:42:40: warning: narrowing conversion of 'y2' from 'double' to 'float' [-Wnarrowing]
42 | lines[i] = {{x1, y1}, {x2, y2}};
| ^~
main.cpp: In member function 'void Seg::solveTest()':
main.cpp:91:27: error: no matching function for call to 'min(double&, __gnu_cxx::__alloc_traits<std::allocator<float>, float>::value_type)'
91 | sol = std::min(sol, dp[0][i][(1<<n) - 1] + dist[0][1][i][0]);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included 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_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
main.cpp:91:27: note: deduced conflicting types for parameter 'const _Tp' ('double' and '__gnu_cxx::__alloc_traits<std::allocator<float>, float>::value_type' {aka 'float'})
91 | sol = std::min(sol, dp[0][i][(1<<n) - 1] + dist[0][1][i][0]);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
main.cpp:91:27: note: deduced conflicting types for parameter 'const _Tp' ('double' and '__gnu_cxx::__alloc_traits<std::allocator<float>, float>::value_type' {aka 'float'})
91 | sol = std::min(sol, dp[0][i][(1<<n) - 1] + dist[0][1][i][0]);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:93:27: error: no matching function for call to 'min(double&, __gnu_cxx::__alloc_traits<std::allocator<float>, float>::value_type)'
93 | sol = std::min(sol, dp[1][i][(1<<n) - 1] + dist[1][1][i][0]);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
main.cpp:93:27: note: deduced conflicting types for parameter 'const _Tp' ('double' and '__gnu_cxx::__alloc_traits<std::allocator<float>, float>::value_type' {aka 'float'})
93 | sol = std::min(sol, dp[1][i][(1<<n) - 1] + dist[1][1][i][0]);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !