Problem permutationgrid
User yhmixeI
Submission Time 2024-12-07 11:57:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:35:1: error: expected ‘}’ before ‘else’
35 | else {
| ^~~~
permutationgrid.cpp:27:16: note: to match this ‘{’
27 | if (p[0][0]==1){
| ^
permutationgrid.cpp:45:2: error: expected ‘}’ before ‘else’
45 | else{
| ^~~~
permutationgrid.cpp:26:10: note: to match this ‘{’
26 | if (h==1){
| ^
permutationgrid.cpp: At global scope:
permutationgrid.cpp:121:1: error: expected unqualified-id before ‘if’
121 | if (d==true){
| ^~
permutationgrid.cpp:124:1: error: expected unqualified-id before ‘else’
124 | else{
| ^~~~
permutationgrid.cpp:127:1: error: expected declaration before ‘}’ token
127 | }
| ^