Problem candymountain_ex
User Phoubia01
Submission Time 2025-08-02 21:56:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:44:13: error: ‘path’ was not declared in this scope; did you mean ‘std::filesystem::__cxx11::path’?
44 | if (path[i]){
| ^~~~
| std::filesystem::__cxx11::path
In file included from /usr/include/c++/9/filesystem:37,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from candymountain_ex.cpp:1:
/usr/include/c++/9/bits/fs_path.h:68:9: note: ‘std::filesystem::__cxx11::path’ declared here
68 | class path
| ^~~~