Problem bucketstacking
User justin271828
Submission Time 2025-03-07 09:50:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bucketstacking.cpp: In function ‘int main()’:
bucketstacking.cpp:61:3: error: ‘s’ was not declared in this scope
61 | s.insert(i);
| ^
bucketstacking.cpp:70:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
70 | cout << ans;
| ^~~
| abs
bucketstacking.cpp:71:11: error: expected ‘}’ at end of input
71 | return 0;}
| ^
bucketstacking.cpp:67:27: note: to match this ‘{’
67 | for (auto [key, val]: m) {
| ^
bucketstacking.cpp:71:11: error: expected ‘}’ at end of input
71 | return 0;}
| ^
bucketstacking.cpp:50:12: note: to match this ‘{’
50 | int main() {
| ^