Problem charges
User wilson9304
Submission Time 2025-12-25 17:31:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp: In function ‘void refill(int)’:
charges.cpp:48:12: error: a function-definition is not allowed here before ‘{’ token
48 | int main() {
| ^
charges.cpp:109:1: error: expected ‘}’ at end of input
109 | }
| ^
charges.cpp:31:20: note: to match this ‘{’
31 | void refill(int v) {
| ^