Problem permutationgrid
User xragon
Submission Time 2024-12-07 10:16:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
permutationgrid.cpp:9:2: note: in expansion of macro ‘int’
9 | int skibib[z];
| ^~~
permutationgrid.cpp:12:10: error: ‘w’ was not declared in this scope
12 | cin >> w;
| ^
permutationgrid.cpp:13:3: error: ‘arr’ was not declared in this scope
13 | arr[a] = {w};
| ^~~
permutationgrid.cpp:16:7: error: ‘arr’ was not declared in this scope
16 | if (arr[i] + 1 == arr[i+1]) {
| ^~~
permutationgrid.cpp:19:39: error: expected identifier before ‘(’ token
19 | else if (arr[i] + 1 == arr[i+y]) && (i+y <= z) {
| ^
permutationgrid.cpp:22:39: error: expected identifier before ‘(’ token
22 | else if (arr[i] + 1 == arr[i-y]) && (i-y >=0) {
|