Borderou de evaluare (job #2984831)

Utilizator oskar01oskar the boss oskar01 Data 24 februarie 2023 23:23:42
Problema P-sir Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:35:43: error: no matching function for call to 'std::vector<std::vector<unsigned int> >::resize(int, std::vector<short int>)' 35 | dp.resize(MAX+3,vector<uint32_>(MAX+3)); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:2: /usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::vector<unsigned int>; _Alloc = std::allocator<std::vector<unsigned int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' 937 | resize(size_type __new_size) | ^~~~~~ /usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate expects 1 argument, 2 provided /usr/include/c++/10/bits/stl_vector.h:957:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<unsigned int>; _Alloc = std::allocator<std::vector<unsigned int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<unsigned int>]' 957 | resize(size_type __new_size, const value_type& __x) | ^~~~~~ /usr/include/c++/10/bits/stl_vector.h:957:54: note: no known conversion for argument 2 from 'std::vector<short int>' to 'const value_type&' {aka 'const std::vector<unsigned int>&'} 957 | resize(size_type __new_size, const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?