Problem | permutationgrid |
---|---|
User | ervinthedamsel |
Submission Time | 2024-12-07 14:42:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:21:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if(grid[i][j] == grid[i][j + 1]-1) && j+1 < w) works = true;
| ^
permutationgrid.cpp:21:49: error: expected ‘;’ before ‘)’ token
21 | if(grid[i][j] == grid[i][j + 1]-1) && j+1 < w) works = true;
| ^
| ;
permutationgrid.cpp:21:42: error: label ‘j’ used but not defined
21 | if(grid[i][j] == grid[i][j + 1]-1) && j+1 < w) works = true;
| ^