Problem richzhe
User itsLQ
Submission Time 2024-12-16 11:59:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

richzhe.cpp: In function ‘void dfs(int, int, int)’:
richzhe.cpp:27:9: error: ‘add’ was not declared in this scope; did you mean ‘std::filesystem::perm_options::add’?
27 | add(1, 1);
| ^~~
| std::filesystem::perm_options::add
In file included from /usr/include/c++/9/filesystem:36,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from richzhe.cpp:1:
/usr/include/c++/9/bits/fs_fwd.h:201:7: note: ‘std::filesystem::perm_options::add’ declared here
201 | add = 0x2,
| ^~~
richzhe.cpp:33:23: error: too few arguments to function ‘void dfs(int, int, int)’
33 | dfs(adj, n);
| ^
richzhe.cpp:21:6: note: declared here
21 | void dfs(int n, int maxDist, int x) {
| ^~~
richzhe.cpp:36:13: error: ‘add’ was not declared in this scope; did you mean ‘std::filesystem::perm_options::add’?
36 |