Problem collectmushrooms6
User trashcan08
Submission Time 2025-03-18 19:27:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int32_t main()’:
collectmushrooms6.cpp:32:32: error: a function-definition is not allowed here before ‘{’ token
32 | int clamp(int x, int a, int b) {
| ^
collectmushrooms6.cpp:36:16: error: a function-definition is not allowed here before ‘{’ token
36 | int32_t main() {
| ^
collectmushrooms6.cpp:131:1: error: expected ‘}’ at end of input
131 | }
| ^
collectmushrooms6.cpp:16:30: note: to match this ‘{’
16 | for(int j = 0; j < W; j++) {
| ^
collectmushrooms6.cpp:131:1: error: expected ‘}’ at end of input
131 | }
| ^
collectmushrooms6.cpp:15:29: note: to match this ‘{’
15 | for(int i = 0; i < H; i++) {
| ^
collectmushrooms6.cpp:131:1: error: expected ‘}’ at end of input
131 | }
| ^
collectmushrooms6.cpp:10:16: note: to