Problem snake
User KL
Submission Time 2024-12-14 09:46:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snake.cpp: In function ‘int main()’:
snake.cpp:18:83: error: expected ‘;’ before ‘}’ token
18 | posi.push_back({posi[posi.size()-1][0], posi[posi.size()-1][1]+1})
| ^
| ;
19 | }
| ~
snake.cpp:21:83: error: expected ‘;’ before ‘}’ token
21 | posi.push_back({posi[posi.size()-1][0], posi[posi.size()-1][1]-1})
| ^
| ;
22 | }
| ~
snake.cpp:24:83: error: expected ‘;’ b