Borderou de evaluare (job #3306168)

Utilizator InformaticianInDevenire1Munteanu Mihnea Gabriel InformaticianInDevenire1 Data 8 august 2025 10:49:40
Problema Easygraph Status done
Runda Arhiva ICPC 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:32:30: 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:32:30: 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; | ^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:32:35: error: call of overloaded 'vector(int, int)' is ambiguous 32 | vector <int,int> val(n+2,0); | ^ /usr/include/c++/12.2.1/bits/stl_vector.h:564:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = int; size_type = long unsigned int; value_type = int; allocator_type = int]' 564 | vector(size_type __n, const value_type& __value, | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:551:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = int; _Alloc = int; size_type = long unsigned int; allocator_type = int]' 551 | vector(size_type __n, const allocator_type& __a = allocator_type()) | ^~~~~~ main.cpp:33:34: error: call of overloaded 'vector(int, int)' is ambiguous 33 | vector <int,int> dp(n+2,0); | ^ /usr/include/c++/12.2.1/bits/stl_vector.h:564:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = int; size_type = long unsigned int; value_type = int; allocator_type = int]' 564 | vector(size_type __n, const value_type& __value, | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:551:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = int; _Alloc = int; size_type = long unsigned int; allocator_type = int]' 551 | vector(size_type __n, const allocator_type& __a = allocator_type()) | ^~~~~~ main.cpp:35:23: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'int') 35 | fin >> val[i]; | ^ main.cpp:48:31: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<int, int>' Non zero exit status: 1

Ceva nu functioneaza?