Borderou de evaluare (job #3363343)
| Utilizator | Data | 16 august 2026 16:56:16 | |
|---|---|---|---|
| Problema | Infasuratoare convexa | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:12:37: error: 'double y1' redeclared as different kind of entity
12 | double x, y, mn = 1e18, x1, x2, x3, y1, y2, y3;
| ^~
In file included from /usr/include/features.h:490,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655,
from /usr/include/c++/12.2.1/iosfwd:38,
from /usr/include/c++/12.2.1/ios:38,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/bits/mathcalls.h:224:1: note: previous declaration 'double y1(double)'
224 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:44:23: error: 'y_1' was not declared in this scope; did you mean 'y1'?
44 | x1 = v[0].first; y_1 = v[0].second;
| ^~~
| y1
main.cpp:46:17: error: no matching function for call to 'std::vector<std::pair<double, double> >::push_back(<brace-enclosed initializer list>)'
46 | v2.push_back({x1, y_1});
| ~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from main.cpp:2:
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; value_type = std::pair<double, double>]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::pair<double, double> >::value_type&' {aka 'const std::pair<double, double>&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; value_type = std::pair<double, double>]'
1293 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<double, double> >::value_type&&' {aka 'std::pair<double, double>&&'}
1293 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:48:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<double, double> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(i=2; i<v.size(); i++)
| ~^~~~~~~~~
main.cpp:52:56: error: cannot convert 'double (*)(double) noexcept' to 'double'
52 | while(v2.size() >= 2 && determinant(x1, x2, x3, y1, y2, y3) < 0 )
| ^~
| |
| double (*)(double) noexcept
main.cpp:13:60: note: initializing argument 4 of 'double determinant(double, double, double, double, double, double)'
13 | double determinant(double x1, double x2, double x3, double y1, double y2, double y3)
| ~~~~~~~^~
main.cpp:55:26: error: cannot convert 'double(double) noexcept' to 'double' in assignment
55 | x2 = x1; y2 = y1;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
