| Problem | xmas |
|---|---|
| User | rasquait |
| Submission Time | 2025-12-22 16:17:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:12:17: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
12 | cin >> arr[i].first;
| ^~~~~
xmas.cpp:13:10: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
13 | arr[i].second;
| ^~~~~~
xmas.cpp:15:11: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘std::vector<std::pair<int, int> > [n]’
15 | sort(arr.begin(), arr.end(), [](const pair<int, int> &a, const pair<int, int> &b){
| ^~~~~
xmas.cpp:15:24: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘std::vector<std::pair<int, int> > [n]’
15 | sort(arr.begin(), arr.end(), [](const pair<int, int> &a, const pair<int, int> &b){
| ^~~
xmas.cpp:15:2: error: ‘sort’ was not declared in this s