Problem snake
User StormyGood
Submission Time 2024-12-14 09:52:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snake.cpp: In function ‘int32_t main()’:
snake.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
snake.cpp:7:5: note: in expansion of macro ‘int’
7 | int N, Q;
| ^~~
snake.cpp:7:9: error: ‘N’ was not declared in this scope
7 | int N, Q;
| ^
snake.cpp:7:12: error: ‘Q’ was not declared in this scope
7 | int N, Q;
| ^
snake.cpp:3:18: error: wrong number of template arguments (1, should be 2)
3 | #define int long long;
| ^~~~
snake.cpp:9:17: note: in expansion of macro ‘int’
9 | vector<pair<int, int>> snake(N);
| ^~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from