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

Compile Error

reinforcement.cpp:15:38: error: declaration of ‘grid’ as array of references
15 | void moveRobot(cell& robotPos, cell& grid[][], int& currNetReward){
| ^~~~
reinforcement.cpp:15:46: error: expected ‘)’ before ‘,’ token
15 | void moveRobot(cell& robotPos, cell& grid[][], int& currNetReward){
| ~ ^
| )
reinforcement.cpp:15:48: error: expected unqualified-id before ‘int’
15 | void moveRobot(cell& robotPos, cell& grid[][], int& currNetReward){
| ^~~
reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:44:13: error: expected ‘;’ before ‘for’
44 | cin >> row
| ^
| ;
45 | for (int col = 0; col < w; col++) {
| ~~~
reinforcement.cpp:45:21: error: ‘col’ was not dec