Problem sum
User mofumofu
Submission Time 2025-07-29 23:42:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum.cpp: In function ‘int main()’:
sum.cpp:25:20: error: ‘all’ was not declared in this scope; did you mean ‘std::filesystem::perms::all’?
25 | ll x = accumulate(all(X), 0LL);
| ^~~
| std::filesystem::perms::all
In file included from /usr/include/c++/9/filesystem:36,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from sum.cpp:1:
/usr/include/c++/9/bits/fs_fwd.h:147:7: note: ‘std::filesystem::perms::all’ declared here
147 | all = 0777,
| ^~~