Borderou de evaluare (job #3261746)

Utilizator Robert2566_Lungu Robert Robert2566_ Data 7 decembrie 2024 11:44:51
Problema Oo 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:53:5: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'? 53 | e[1] = e[2] = 0; | ^ | std::numbers::e In file included from /usr/include/c++/12.2.1/bits/max_size_type.h:37, from /usr/include/c++/12.2.1/bits/ranges_base.h:38, from /usr/include/c++/12.2.1/string_view:50, from /usr/include/c++/12.2.1/bits/basic_string.h:47, from /usr/include/c++/12.2.1/string:53, 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/istream:38, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/12.2.1/numbers:122:27: note: 'std::numbers::e' declared here 122 | inline constexpr double e = e_v<double>; | ^ main.cpp:62:13: error: no matching function for call to 'max(<brace-enclosed initializer list>)' 62 | mx = max({b[n - 1], c[n-2], d[n-3], e[n]}); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41: /usr/include/c++/12.2.1/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++/12.2.1/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed: main.cpp:62:13: note: candidate expects 2 arguments, 1 provided 62 | mx = max({b[n - 1], c[n-2], d[n-3], e[n]}); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/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++/12.2.1/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed: main.cpp:62:13: note: candidate expects 3 arguments, 1 provided 62 | mx = max({b[n - 1], c[n-2], d[n-3], e[n]}); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/algorithm:61, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:65: /usr/include/c++/12.2.1/bits/stl_algo.h:5746:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)' 5746 | max(initializer_list<_Tp> __l) | ^~~ /usr/include/c++/12.2.1/bits/stl_algo.h:5746:5: note: template argument deduction/substitution failed: /usr/include/c++/12.2.1/bits/stl_algo.h:5756:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)' 5756 | max(initializer_list<_Tp> __l, _Compare __comp) Non zero exit status: 1

Ceva nu functioneaza?