Problem classroom
User bribritt
Submission Time 2026-08-21 12:36:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

teachers.cpp: In function ‘std::vector<std::vector<int> > process_step(int, int, int, std::vector<int>, std::vector<std::vector<int> >)’:
teachers.cpp:17:16: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘std::vector<int>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
17 | B[i] = ans[i];
| ^
In file included from /usr/include/c++/9/vector:72,
from teachers.h:3,
from teachers.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/includ