Problem | milkweed |
---|---|
User | GreenBlob123 |
Submission Time | 2024-12-23 17:05:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
milkweed.cpp: In function ‘bool valid(long long int, long long int)’:
milkweed.cpp:15:28: error: ‘X’ was not declared in this scope
15 | return x>0 && y >0 && x < X && y<Y;
| ^
milkweed.cpp:15:35: error: ‘Y’ was not declared in this scope
15 | return x>0 && y >0 && x < X && y<Y;
| ^
milkweed.cpp: In function ‘void bfs(long long int, long long int)’:
milkweed.cpp:22:5: error: reference to ‘distance’ is ambiguous
22 | distance[sx][sy] =0;
| ^~~~~~~~
In file included from /usr/include/c++/9/filesystem:37,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from milkweed.cpp:1:
/usr/include/c++/9/bits/fs_path.h:1274:1: note: candidates are: ‘std::ptrdiff_t std::distance(std::filesystem::__cxx11::path::iterator, std::filesystem::__cxx11::path::iterator)’
1274 | distance(filesystem::pa