Borderou de evaluare (job #3181017)

Utilizator FMI_Mahalu_CiprianMahalu Ciprian FMI_Mahalu_Ciprian Data 6 decembrie 2023 12:12:32
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33, from /usr/include/c++/12.2.1/bits/allocator.h:46, from /usr/include/c++/12.2.1/string:41, 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/new_allocator.h: In instantiation of 'class std::__new_allocator<int&>': /usr/include/c++/12.2.1/bits/allocator.h:124:11: required from 'class std::allocator<int&>' /usr/include/c++/12.2.1/bits/stl_vector.h:88:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >' /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<int&>' main.cpp:38:44: required from here /usr/include/c++/12.2.1/bits/new_allocator.h:112:7: error: forming pointer to reference type 'int&' 112 | allocate(size_type __n, const void* = static_cast<const void*>(0)) | ^~~~~~~~ /usr/include/c++/12.2.1/bits/new_allocator.h:142:7: error: forming pointer to reference type 'int&' 142 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) | ^~~~~~~~~~ /usr/include/c++/12.2.1/bits/allocator.h: In instantiation of 'class std::allocator<int&>': /usr/include/c++/12.2.1/bits/stl_vector.h:88:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >' /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<int&>' main.cpp:38:44: required from here /usr/include/c++/12.2.1/bits/allocator.h:179:7: error: forming pointer to reference type 'int&' 179 | allocate(size_t __n) | ^~~~~~~~ /usr/include/c++/12.2.1/bits/allocator.h:193:7: error: forming pointer to reference type 'int&' 193 | deallocate(_Tp* __p, size_t __n) | ^~~~~~~~~~ In file included from /usr/include/c++/12.2.1/ext/alloc_traits.h:34, from /usr/include/c++/12.2.1/bits/basic_string.h:39, from /usr/include/c++/12.2.1/string:53: /usr/include/c++/12.2.1/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<std::allocator<int&> >': /usr/include/c++/12.2.1/ext/alloc_traits.h:48:10: required from 'struct __gnu_cxx::__alloc_traits<std::allocator<int&>, int&>' /usr/include/c++/12.2.1/bits/stl_vector.h:88:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >' /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<int&>' main.cpp:38:44: required from here /usr/include/c++/12.2.1/bits/alloc_traits.h:420:13: error: forming pointer to reference type 'int&' 420 | using pointer = _Tp*; | ^~~~~~~ /usr/include/c++/12.2.1/bits/alloc_traits.h:423:13: error: forming pointer to reference type 'int&' 423 | using const_pointer = const _Tp*; | ^~~~~~~~~~~~~ /usr/include/c++/12.2.1/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<int&>, int&>': /usr/include/c++/12.2.1/bits/stl_vector.h:88:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >' /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<int&>' main.cpp:38:44: required from here /usr/include/c++/12.2.1/ext/alloc_traits.h:64:23: error: 'allocate' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<int&>, int&>::_Base_type' 64 | using _Base_type::allocate; Non zero exit status: 1

Ceva nu functioneaza?