Borderou de evaluare (job #2778148)

Utilizator bubblegumixUdrea Robert bubblegumix Data 29 septembrie 2021 11:01:55
Problema Rays Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:56:22: error: 'atan2' was not declared in this scope 56 | l_seg.push_back({ atan2(y1,-x),atan2(y2,-x) }); | ^~~~~ main.cpp:56:49: error: no matching function for call to 'std::vector<std::pair<double, double> >::push_back(<brace-enclosed initializer list>)' 56 | l_seg.push_back({ atan2(y1,-x),atan2(y2,-x) }); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:11: /usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, double>]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<double, double>&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, double>]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1203: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>&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:59:22: error: 'atan2' was not declared in this scope 59 | r_seg.push_back({ atan2(y1,x),atan2(y2,x) }); | ^~~~~ main.cpp:59:47: error: no matching function for call to 'std::vector<std::pair<double, double> >::push_back(<brace-enclosed initializer list>)' 59 | r_seg.push_back({ atan2(y1,x),atan2(y2,x) }); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:11: /usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, double>]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<double, double>&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<double, double>; _Alloc = std::allocator<std::pair<double, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, double>]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1203: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>&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?