Problem | gotoschool |
---|---|
User | LYM2025 |
Submission Time | 2025-08-22 17:15:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:15:7: error: ‘students’ was not declared in this scope
15 | sort(students.begin(), students.end(), [](const Student &a, const Student &b) {
| ^~~~~~~~
gotoschool.cpp:15:50: error: ‘Student’ does not name a type
15 | sort(students.begin(), students.end(), [](const Student &a, const Student &b) {
| ^~~~~~~
gotoschool.cpp: In lambda function:
gotoschool.cpp:17:3: error: expected ‘{’ before ‘;’ token
17 | });
| ^
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:17:3: error: expected ‘)’ before ‘;’ token
17 | });
| ^
| )
gotoschool.cpp:15:6: note: to match this ‘(’
15 | sort(students.begin(), students.end(), [](const Student &a, const Student &b) {
| ^
gotoschool.cpp:19:11: error: ‘i’ was not declared in this scope
19 | cout<<S[i].r;