Problem milkweed
User asbx
Submission Time 2023-11-10 15:54:18
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 ‘int main()’:
milkweed.cpp:21:19: error: expected ‘;’ before ‘b’
21 | arr[i][j] = -1
| ^
| ;
22 | b+=1;
| ~
milkweed.cpp: In function ‘void milkweed(int, int)’:
milkweed.cpp:32:17: error: invalid types ‘int[int]’ for array subscript
32 | milkweed(x+x[i],y+y[i]);
| ^
milkwee