Problem | findingpavement |
---|---|
User | om2024 |
Submission Time | 2024-06-20 13:34:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:8:6: error: conflicting declaration ‘int arr [p]’
8 | int arr[p];
| ^~~
findingpavement.cpp:6:6: note: previous declaration as ‘int arr [h][w]’
6 | int arr[h][w];
| ^~~
findingpavement.cpp:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(arr[i][j] == "pavement") {
| ^~~~~~~~~~
findingpavement.cpp:13:5: error: ‘pavement_row’ was not declared in this scope
13 | pavement_row = i + 1;
| ^~~~~~~~~~~~
findingpavement.cpp:14:5: error: ‘pavement_column’ was not declared in this scope
14 | pavement_column = j + 1;
| ^~~~~~~~~~~~~~~
findingpavement.cpp:18:10: error: ‘pavement_row’ was not declared in this scope
18 | cout << pavement_row << " " << pavement_column;
| ^~~~~~~~~~~~
findingpavement.cpp:18