Problem | permutationgrid |
---|---|
User | xragon |
Submission Time | 2024-12-07 10:19:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:12:10: error: ‘w’ was not declared in this scope
12 | cin >> w;
| ^
permutationgrid.cpp:13:14: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘long long int’ in assignment
13 | arr[a] = {w};
| ^
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) {
| ^
permutationgrid.cpp:34:3: error: expected ‘}’ at end of input
34 | }
| ^
permutationgrid.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^