Borderou de evaluare (job #2896138)

Utilizator AntoniaPopoviciAntonia-Adelina Popovici AntoniaPopovici Data 29 aprilie 2022 20:21:56
Problema Pariuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/10/vector:67, from main.cpp:3: /usr/include/c++/10/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<int, int>': /usr/include/c++/10/bits/stl_vector.h:389:11: required from 'class std::vector<int, int>' main.cpp:11:18: required from here /usr/include/c++/10/bits/stl_vector.h:87:21: error: 'int' is not a class, struct, or union type 87 | rebind<_Tp>::other _Tp_alloc_type; | ^~~~~~~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:89:9: error: 'int' is not a class, struct, or union type 89 | pointer; | ^~~~~~~ /usr/include/c++/10/bits/stl_vector.h: In instantiation of 'class std::vector<int, int>': main.cpp:11:18: required from here /usr/include/c++/10/bits/stl_vector.h:404:64: error: 'int' is not a class, struct, or union type 404 | static_assert(is_same<typename _Alloc::value_type, _Tp>::value, | ^~~~~ /usr/include/c++/10/bits/stl_vector.h:474:20: error: '_M_allocate' has not been declared in 'std::_Base<int, int>' 474 | using _Base::_M_allocate; | ^~~~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:475:20: error: '_M_deallocate' has not been declared in 'std::_Base<int, int>' 475 | using _Base::_M_deallocate; | ^~~~~~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:477:20: error: '_M_get_Tp_allocator' has not been declared in 'std::_Base<int, int>' 477 | using _Base::_M_get_Tp_allocator; | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/10/iostream:38, from main.cpp:1: /usr/include/c++/10/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = int; _Alloc = int]': main.cpp:11:18: recursively required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = int]' main.cpp:11:18: required from here /usr/include/c++/10/bits/stl_vector.h:131:17: error: 'int' is not a class, struct, or union type 131 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF( | ^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:19:15: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'int') 19 | in[t] += s; | ^ main.cpp:24:10: error: 'it' was not declared in this scope; did you mean 'in'? 24 | for (it = in.begin(); it != in.end(); it++) { | ^~ | in main.cpp:24:18: error: 'class std::vector<int, int>' has no member named 'begin' 24 | for (it = in.begin(); it != in.end(); it++) { | ^~~~~ main.cpp:24:36: error: 'class std::vector<int, int>' has no member named 'end' 24 | for (it = in.begin(); it != in.end(); it++) { | ^~~ In file included from /usr/include/c++/10/vector:67, from main.cpp:3: /usr/include/c++/10/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = int; _Alloc = int]': Non zero exit status: 1

Ceva nu functioneaza?