Problem | manyjobs |
---|---|
User | blob |
Submission Time | 2024-01-11 13:02:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
manyjobs.cpp: In lambda function:
manyjobs.cpp:12:37: error: expected ‘{’ before ‘const’
12 | sort (jobs.begin(), jobs.end(), [] const auto& a, const auto& b){
| ^~~~~
manyjobs.cpp: In function ‘int main()’:
manyjobs.cpp:12:36: error: expected ‘)’ before ‘const’
12 | sort (jobs.begin(), jobs.end(), [] const auto& a, const auto& b){
| ~ ^~~~~~
| )
manyjobs.cpp:12:52: error: expected primary-expression before ‘const’
12 | sort (jobs.begin(), jobs.end(), [] const auto& a, const auto& b){
| ^~~~~
manyjobs.cpp:14:3: error: expected primary-expression before ‘)’ token
14 | });
| ^
manyjobs.cpp:17:28: error: ‘job’ was not declared in this scope; did you mean ‘jobs’?
17 | if (current_time + job.first > job.second) {
|