Problem | competition |
---|---|
User | StormyGood |
Submission Time | 2024-01-28 09:36:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:19:5: error: ‘vector’ was not declared in this scope
19 | vector<Student> students(n);
| ^~~~~~
competition.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
competition.cpp:19:19: error: expected primary-expression before ‘>’ token
19 | vector<Student> students(n);
| ^
competition.cpp:19:21: error: ‘students’ was not declared in this scope; did you mean ‘Student’?
19 | vector<Student> students(n);
| ^~~~~~~~
| Student
competition.cpp:30:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
30 | sort(students.begin(), students.end(), compareStudents);
| ^~~~
| qsort