Borderou de evaluare (job #2959321)
Utilizator | Data | 30 decembrie 2022 17:36:11 | |
---|---|---|---|
Problema | Rubarba | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void convex_hull(std::vector<pt>&, bool)':
main.cpp:55:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<pt>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | if (i == a.size() - 1 || cw(p1, a[i], p2, include_collinear)) {
| ~~^~~~~~~~~~~~~~~
main.cpp:60:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<pt>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | if (i == a.size() - 1 || ccw(p1, a[i], p2, include_collinear)) {
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'std::pair<long double, long double> eq(pt, pt)':
main.cpp:97:67: error: no matching function for call to 'max(long double, double)'
97 | (p2.y-p1.y)/(sign(p2.x-p1.x)*max(abs(p2.x-p1.x), 1e-25)),
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
main.cpp:97:67: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'double')
97 | (p2.y-p1.y)/(sign(p2.x-p1.x)*max(abs(p2.x-p1.x), 1e-25)),
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
main.cpp:97:67: note: deduced conflicting types for parameter 'const _Tp' ('long double' and 'double')
97 | (p2.y-p1.y)/(sign(p2.x-p1.x)*max(abs(p2.x-p1.x), 1e-25)),
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
main.cpp:97:67: note: mismatched types 'std::initializer_list<_Tp>' and 'long double'
97 | (p2.y-p1.y)/(sign(p2.x-p1.x)*max(abs(p2.x-p1.x), 1e-25)),
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !