Problem treasures
User maximushartanto
Submission Time 2025-08-17 09:18:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treasures.cpp: In function ‘int main()’:
treasures.cpp:111:2: error: ‘path’ was not declared in this scope; did you mean ‘std::filesystem::__cxx11::path’?
111 | path.push_back(pb);
| ^~~~
| 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 treasures.cpp:1:
/usr/include/c++/9/bits/fs_path.h:68:9: note: ‘std::filesystem::__cxx11::path’ declared here
68 | class path
| ^~~~