jobs.cpp: In function 'int main()':
jobs.cpp:61:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
61 | sort(all(jobs));
| ^~~
| 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 jobs.cpp:1:
/usr/include/c++/9/bits/fs_fwd.h:147:7: note: 'std::filesystem::perms::all' declared here
147 | all = 0777,
| ^~~
jobs.cpp:62:22: error: 'pl' has not been declared
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^~
jobs.cpp:62:28: error: 'pl' has not been declared
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^~
jobs.cpp: In lambda function:
jobs.cpp:14:11: error: request for member 'first' in 'a', which is of non-class type 'int'
14 | #define f first
| ^~~~~
jobs.cpp:62:41: note: in expansion of macro 'f'
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^
jobs.cpp:14:11: error: request for member 'first' in 'b', which is of non-class type 'int'
14 | #define f first
| ^~~~~
jobs.cpp:62:48: note: in expansion of macro 'f'
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^
jobs.cpp:15:11: error: request for member 'second' in 'a', which is of non-class type 'int'
15 | #define s second
| ^~~~~~
jobs.cpp:62:61: note: in expansion of macro 's'
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^
jobs.cpp:15:11: error: request for member 'second' in 'b', which is of non-class type 'int'
15 | #define s second
| ^~~~~~
jobs.cpp:62:67: note: in expansion of macro 's'
62 | sort(all(jp), [](pl a, pl b) {if (a.f == b.f) {return a.s > b.s;}
| ^
jobs.cpp:14:11: error: request for member 'first' in 'a', which is of non-class type 'int'
14 | #define f first
| ^~~~~
jobs.cpp:63:14: note: in expansion of macro 'f'
63 | return a.f < b.f;});
| ^
jobs.cpp:14:11: error: request for member 'first' in 'b', which is of non-class type 'int'
14 | #define f first
| ^~~~~
jobs.cpp:63:20: note: in expansion of macro 'f'
63 | return a.f < b.f;});
| ^