Problem snake
User wrizz69
Submission Time 2024-12-16 19:25:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snake.cpp: In function ‘int main()’:
snake.cpp:25:43: error: expected ‘;’ before ‘vector’
25 | int n, q; n = readint(); q = readint()
| ^
| ;
26 | vector<ii> arr(n);
| ~~~~~~
snake.cpp:27:30: error: ‘arr’ was not declared in this scope
27 | for(int i = 0;i < n;i++) arr[i] = {i+1, 0};
| ^~~
snake.cpp:42:17: error: ‘arr’ was not declared in this scope
42 | arr[i] = arr[i-1];
| ^~~
snake.cpp:44:13: error: ‘arr’ was not declared in this scope
44 | arr[0].fi += move.fi;
| ^~~
snake.cpp:49:21: error: ‘arr’ was not declared in this scope
49 | cout << arr[c - 1].fi << " " << arr[c-1].se << "\n";
| ^~~