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

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:15:26: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
15 | cin >> studentscore[i].first;
| ^~~~~
competition.cpp:18:26: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
18 | cin >> studentscore[i].second;
| ^~~~~~
competition.cpp:21:24: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
21 | scoredifferential[i].first = studentscore[i].first - studentscore[i].second;
| ^~~~~
competition.cpp:21:48: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
21 | scoredifferential[i].first = studentscore[i].first - studentscore[i].second;
| ^~~~~
competition.cpp:21:72: er