Problem partition
User bribritt
Submission Time 2026-09-02 21:54:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ulugbek.cpp: In function ‘std::vector<int> find_partition(std::vector<int>, int)’:
ulugbek.cpp:77:19: error: ‘n’ was not declared in this scope
77 | int l = -1, h = n-1;
| ^
ulugbek.cpp:84:6: error: no match for ‘operator[]’ (operand types are ‘seg’ and ‘int’)
84 | rem[h] -= B[i];
| ^