Problem reinforcement
User haroldpyh
Submission Time 2025-12-01 17:23:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:69:25: error: cannot convert ‘cell (*)[w]’ to ‘cell**’
69 | moveRobot(robotPos, grid, r, h, w);
| ^~~~
| |
| cell (*)[w]
reinforcement.cpp:15:39: note: initializing argument 2 of ‘void moveRobot(cell&, cell**, int&, int, int)’
15 | void moveRobot(cell& robotPos, cell **grid, int& currNetReward, int h, int w) {
| ~~~~~~~^~~~