Problem elephants
User Ok
Submission Time 2023-07-02 23:32:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

elephants.cpp: In function ‘int update(int, int)’:
elephants.cpp:132:9: error: redeclaration of ‘int e’
132 | int e = bucket[k].size() - 1;
| ^
elephants.cpp:106:9: note: ‘int e’ previously declared here
106 | int e = bucket[k].size() - 1;
| ^