Problem bucketstacking
User justin271828
Submission Time 2025-03-05 18:59:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bucketstacking.cpp: In function ‘int main()’:
bucketstacking.cpp:46:24: error: ‘M’ was not declared in this scope
46 | for (auto [key, val]: M) {
| ^
bucketstacking.cpp:61:28: error: expected ‘}’ at end of input
61 | temp = tree->q(0, mid);}
| ^
bucketstacking.cpp:50:43: note: to match this ‘{’
50 | for (int i = 0; i < val/2 + val/2; i++) {
| ^
bucketstacking.cpp:61:28: error: expected ‘}’ at end of input
61 | temp = tree->q(0, mid);}
| ^
bucketstacking.cpp:46:27: note: to match this ‘{’
46 | for (auto [key, val]: M) {
| ^
bucketstacking.cpp:61:28: error: expected ‘}’ at end of input
61 | temp = tree->q(0, mid);}
| ^
bucketstacking.cpp:34:12: note: to match this ‘{’
34 | int