Problem permutationgrid
User CKCodeBreaker55
Submission Time 2024-12-08 13:04:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:57:5: error: expected ‘}’ before ‘else’
57 | else if (a[b][c] == count + 1)
| ^~~~
permutationgrid.cpp:49:4: note: to match this ‘{’
49 | {
| ^
permutationgrid.cpp:62:5: error: ‘else’ without a previous ‘if’
62 | else
| ^~~~
permutationgrid.cpp:68:4: error: ‘else’ without a previous ‘if’
68 | else if (b > 0 and c == 0)
| ^~~~
permutationgrid.cpp:77:5: error: expected ‘}’ before ‘else’
77 | else if (a[b][c] == count + 1)
| ^~~~
permutationgrid.cpp:69:4: note: to match this ‘{’
69 | {
| ^
permutationgrid.cpp:83:5: error: ‘else’ without a previous ‘if’
83 | else if (a[b][c] == count + 1)
| ^~~~
permutationgrid.cpp:88:5: error: ‘else’ without a previous ‘if’
88 | else
| ^~~~
permutationgrid.cpp:94:4: error: ‘else’ witho