Problem | swords |
---|---|
User | wrizz69 |
Submission Time | 2024-12-18 11:40:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:10:39: error: request for member ‘first’ in ‘p’, which is of non-class type ‘std::pair<int, int> [n]’
10 | for(int i = 0;i < n;i++) cin >> p.first >> p.second;
| ^~~~~
swords.cpp:10:50: error: request for member ‘second’ in ‘p’, which is of non-class type ‘std::pair<int, int> [n]’
10 | for(int i = 0;i < n;i++) cin >> p.first >> p.second;
| ^~~~~~
swords.cpp:11:12: error: request for member ‘begin’ in ‘p’, which is of non-class type ‘std::pair<int, int> [n]’
11 | sort(p.begin(), p.end());
| ^~~~~
swords.cpp:11:23: error: request for member ‘end’ in ‘p’, which is of non-class type ‘std::pair<int, int> [n]’
11 | sort(p.begin(), p.end());
| ^~~
swords.cpp:14:12: error: ‘arr’ was no