Problem | permutationgrid |
---|---|
User | Shuhxin |
Submission Time | 2024-12-10 17:00:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:29:58: error: expected primary-expression before ‘)’ token
29 | else if (a[p1+1][p2] == a[p1][p2]+1 && p1+1 >= 0)) {
| ^
permutationgrid.cpp:33:58: error: expected primary-expression before ‘)’ token
33 | else if (a[p1][p2-1] == a[p1][p2]+1 && p2-1 >= 0)) {
| ^
permutationgrid.cpp:37:58: error: expected primary-expression before ‘)’ token
37 | else if (a[p1][p2+1] == a[p1][p2]+1 && p2+1 >= 0)) {
| ^