Problem | gotoschool |
---|---|
User | blob |
Submission Time | 2023-11-14 13:17:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:9:12: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘pushback’; did you mean ‘push_back’?
9 | students.pushback({i+1,count})
| ^~~~~~~~
| push_back
gotoschool.cpp:11:22: error: expected primary-expression before ‘]’ token
11 | sort(students.begin[], students.end[],[](const auto& a, const auto&b){
| ^
gotoschool.cpp:11:38: error: expected primary-expression before ‘]’ token
11 | sort(students.begin[], students.end[],[](const auto& a, const auto&b){
| ^
gotoschool.cpp: In lambda function:
gotoschool.cpp:13:30: error: ‘students’ is not captured
13 | for (const auto& student : students){
| ^~~~~~~~
gotoschool.cpp:11:41: note: the lambda has no capture-default
11 | sort(students.begin[], studen