Problem | findingpavement |
---|---|
User | Rollsroyce26 |
Submission Time | 2024-06-18 13:46:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
findingpavement.cpp:2:14: error: expected ‘{’ before ‘;’ token
2 | namespace std;
| ^
findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> h >> w
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from findingpavement.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
findingpavement.cpp:6:21: error: ‘i’ was not declared in this scope
6 | for (int i = 0; i < h; i++) {
| ^
findingpavement.cpp:14:13: error: ‘arr’ was not declared in this scope
14 | if (arr[i][j] == "pavement") {
| ^~~
findingpavement.cpp:15:13: error: ‘cout’ was not declared in this