Problem | clearingleaves |
---|---|
User | notthatcp |
Submission Time | 2025-08-06 19:56:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
clearingleaves.cpp:65:34: error: macro "all" passed 2 arguments, but takes just 1
65 | sort(all(b(n), greater<int>());
| ^
clearingleaves.cpp:18: note: macro "all" defined here
18 | #define all(a) (a).begin(), (a).end()
|
clearingleaves.cpp: In function ‘int main()’:
clearingleaves.cpp:65:10: error: ‘all’ was not declared in this scope; did you mean ‘std::filesystem::perms::all’?
65 | sort(all(b(n), greater<int>());
| ^~~
| 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 clearingleaves.cpp:5:
/usr/include/c++/9/bits/fs_fwd.h:147:7: note: ‘std::filesystem::perms::all’ declared here
147 | all = 0777,
| ^~~