Problem gotoschool
User blob
Submission Time 2023-11-14 13:19:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp: In function ‘int main()’:
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:31: error: ‘students’ is not captured
13 | for (const auto& students : students){
| ^~~~~~~~
gotoschool.cpp:11:41: note: the lambda has no capture-default
11 | sort(students.begin[], students.end[],[](const auto& a, const auto&b){
| ^
gotoschool.cpp:5:24: note: ‘std::vector<std::pair<int, int> > students’ declared here
5 | vector<pair<int,int>> studen