Problem | swords |
---|---|
User | wrizz69 |
Submission Time | 2024-12-18 11:39:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:4:12: error: request for member ‘first’ in ‘p’, which is of non-class type ‘ii [n]’ {aka ‘std::pair<int, int> [n]’}
4 | #define fi first
| ^~~~~
swords.cpp:12:39: note: in expansion of macro ‘fi’
12 | for(int i = 0;i < n;i++) cin >> p.fi >> p.se;
| ^~
swords.cpp:5:12: error: request for member ‘second’ in ‘p’, which is of non-class type ‘ii [n]’ {aka ‘std::pair<int, int> [n]’}
5 | #define se second
| ^~~~~~
swords.cpp:12:47: note: in expansion of macro ‘se’
12 | for(int i = 0;i < n;i++) cin >> p.fi >> p.se;
| ^~
swords.cpp:13:12: error: request for member ‘begin’ in ‘p’, which is of non-class type ‘ii [n]’ {aka ‘std::pair<int, int> [n]’}
13 | sort(p.begin(), p.end());
| ^~~