Problem permutationgrid
User CKCodeBreaker55
Submission Time 2024-12-07 10:17:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:35:5: error: expected ‘}’ before ‘else’
35 | else if (a[b][c] == count + 1)
| ^~~~
permutationgrid.cpp:27:4: note: to match this ‘{’
27 | {
| ^
permutationgrid.cpp:40:5: error: ‘else’ without a previous ‘if’
40 | else
| ^~~~
permutationgrid.cpp:46:4: error: ‘else’ without a previous ‘if’
46 | else if (b == 0 and c > 0)
| ^~~~
permutationgrid.cpp:55:5: error: expected ‘}’ before ‘else’
55 | else if (a[b][c] == count + 1)
| ^~~~
permutationgrid.cpp:47:4: note: to match this ‘{’
47 | {
| ^
permutationgrid.cpp:60:5: error: ‘else’ without a previous ‘if’
60 | else
| ^~~~
permutationgrid.cpp:66:4: error: ‘else’ without a previous ‘if’
66 | else if (b > 0 and c == 0)
| ^~~~
permutationgrid.cpp:75:5: error: expected ‘}’ be