Problem competition
User cobnet
Submission Time 2023-01-29 19:27:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:19:16: error: request for member ‘emplace_back’ in ‘studentscore’, which is of non-class type ‘std::vector<std::pair<int, int> > [n]’
19 | studentscore.emplace_back(ak, bk);
| ^~~~~~~~~~~~
competition.cpp:21:28: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
21 | lagoon = studentscore[i].first - studentscore[i].second;
| ^~~~~
competition.cpp:21:52: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
21 | lagoon = studentscore[i].first - studentscore[i].second;
| ^~~~~~
competition.cpp:22:22: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
22 | if(studentscore[i].first > studentscore[i].second){ scoredifferential[i].second = students