Borderou de evaluare (job #3270235)

Utilizator IleaIlea Bogdan Ilea Data 22 ianuarie 2025 17:02:08
Problema Ninjago Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:8: error: 'elem' was not declared in this scope 12 | vector<elem> solo, duos; | ^~~~ main.cpp:12:12: error: template argument 1 is invalid 12 | vector<elem> solo, duos; | ^ main.cpp:12:12: error: template argument 2 is invalid main.cpp: In function 'int main()': main.cpp:103:22: error: request for member 'push_back' in 'duos', which is of non-class type 'int' 103 | duos.push_back({Enum, truesum, x, y}); | ^~~~~~~~~ main.cpp:105:22: error: request for member 'push_back' in 'solo', which is of non-class type 'int' 105 | solo.push_back({Enum, truesum, x, y}); | ^~~~~~~~~ main.cpp:108:19: error: request for member 'begin' in 'solo', which is of non-class type 'int' 108 | sort(solo.begin(), solo.end(), [](elem a, elem b){ | ^~~~~ main.cpp:108:33: error: request for member 'end' in 'solo', which is of non-class type 'int' 108 | sort(solo.begin(), solo.end(), [](elem a, elem b){ | ^~~ main.cpp:112:19: error: request for member 'begin' in 'duos', which is of non-class type 'int' 112 | sort(duos.begin(), duos.end(), [](elem a, elem b){ | ^~~~~ main.cpp:112:33: error: request for member 'end' in 'duos', which is of non-class type 'int' 112 | sort(duos.begin(), duos.end(), [](elem a, elem b){ | ^~~ main.cpp:117:22: error: 'begin' was not declared in this scope 117 | for (auto it:solo){ | ^~~~ main.cpp:117:22: note: suggested alternatives: In file included from /usr/include/c++/12.2.1/string:52, 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:2: /usr/include/c++/12.2.1/bits/range_access.h:114:37: note: 'std::begin' 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ In file included 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: /usr/include/c++/12.2.1/bits/ranges_base.h:566:44: note: 'std::ranges::__cust::begin' 566 | inline constexpr __cust_access::_Begin begin{}; | ^~~~~ In file included from /usr/include/c++/12.2.1/bits/stl_iterator_base_types.h:71, from /usr/include/c++/12.2.1/bits/stl_construct.h:61, from /usr/include/c++/12.2.1/bits/char_traits.h:46, from /usr/include/c++/12.2.1/ios:40: Non zero exit status: 1

Ceva nu functioneaza?