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

Compile Error

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