Problem findingpavement
User blob
Submission Time 2023-12-16 09:21:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:7:10: error: ‘i’ was not declared in this scope
7 | while (i != W and j != H){
| ^
findingpavement.cpp:7:21: error: ‘j’ was not declared in this scope
7 | while (i != W and j != H){
| ^
findingpavement.cpp:8:16: error: ‘begin’ was not declared in this scope
8 | for (int i : W){
| ^
findingpavement.cpp:8:16: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from findingpavement.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from findingpavement.cpp:1:
/usr/include/c++/9/bits/fs_dir.h