Borderou de evaluare (job #3229662)

Utilizator donantonio1Carazeanu Antonio donantonio1 Data 16 mai 2024 23:04:56
Problema Graph Cycle 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++/12.2.1/vector:64, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<int, int>': /usr/include/c++/12.2.1/bits/stl_vector.h:423:11: required from 'class std::vector<int, int>' main.cpp:13:27: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:88:28: error: 'int' is not a class, struct, or union type 88 | rebind<_Tp>::other _Tp_alloc_type; | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:90:9: error: 'int' is not a class, struct, or union type 90 | pointer; | ^~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'class std::vector<int, int>': main.cpp:13:27: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:438:64: error: 'int' is not a class, struct, or union type 438 | static_assert(is_same<typename _Alloc::value_type, _Tp>::value, | ^~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:513:20: error: '_M_allocate' has not been declared in 'std::vector<int, int>::_Base' 513 | using _Base::_M_allocate; | ^~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:514:20: error: '_M_deallocate' has not been declared in 'std::vector<int, int>::_Base' 514 | using _Base::_M_deallocate; | ^~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:516:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<int, int>::_Base' 516 | using _Base::_M_get_Tp_allocator; | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/cassert:43, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33: /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = int; _Alloc = int]': main.cpp:13:27: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:137:24: error: 'int' is not a class, struct, or union type 137 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF( | ^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:37:35: error: no matching function for call to 'begin(std::vector<int, int>&)' 37 | for (int v : adj[u]) | ^ In file included from /usr/include/c++/12.2.1/bits/range_access.h:36, 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/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: /usr/include/c++/12.2.1/initializer_list:90:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)' 90 | begin(initializer_list<_Tp> __ils) noexcept Non zero exit status: 1

Ceva nu functioneaza?