Borderou de evaluare (job #3199300)

Utilizator not_anduAndu Scheusan not_andu Data 1 februarie 2024 12:54:22
Problema Permut 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:16:26: error: no matching function for call to 'std::vector<long long int>::resize()' 16 | a.resize(n), b.resize(); | ~~~~~~~~^~ 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:1008:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::resize(size_type) [with _Tp = long long int; _Alloc = std::allocator<long long int>; size_type = long unsigned int]' 1008 | resize(size_type __new_size) | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1008:7: note: candidate expects 1 argument, 0 provided /usr/include/c++/12.2.1/bits/stl_vector.h:1029:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::resize(size_type, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; size_type = long unsigned int; value_type = long long int]' 1029 | resize(size_type __new_size, const value_type& __x) | ^~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1029:7: note: candidate expects 2 arguments, 0 provided Non zero exit status: 1

Ceva nu functioneaza?