Problem milkweed
User asbx
Submission Time 2023-11-10 15:54:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp:4:9: error: expected ‘]’ before ‘,’ token
4 | int X[0,1,1,1,0,-1,-1,-1];
| ^
| ]
milkweed.cpp:4:10: error: expected unqualified-id before numeric constant
4 | int X[0,1,1,1,0,-1,-1,-1];
| ^
milkweed.cpp:5:9: error: expected ‘]’ before ‘,’ token
5 | int Y[1,1,0,-1,-1,-1,0,1];
| ^
| ]
milkweed.cpp:5:10: error: expected unqualified-id before numeric constant
5 | int Y[1,1,0,-1,-1,-1,0,1];
| ^
milkweed.cpp: In function ‘void milkweed(int, int)’:
milkweed.cpp:32:14: error: ‘X’ was not declared in this scope
32 | milkweed(x+X[i],y+Y[i]);
| ^
milkweed.cpp:32:21: error: ‘Y’ was not declared in this scope
32 | milkweed(x+X[i],y+Y[i]);
| ^