Problem toxic2
User PrunJuice
Submission Time 2025-03-21 21:23:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic2.cpp: In function ‘void determine_type(int)’:
toxic2.cpp:9:14: error: no matching function for call to ‘std::vector<char>::resize()’
9 | A.resize();
| ^
In file included from /usr/include/c++/9/vector:67,
from toxic2.h:1,
from toxic2.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:934:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
934 | resize(size_type __new_size)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:934:7: note: candidate expects 1 argument, 0 provided
/usr/include/c++/9/bits/stl_vector.h:954:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = char; _Alloc = std::allocator<char>; std::