Problem | paint |
---|---|
User | itsLQ |
Submission Time | 2023-06-04 10:29:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘bool foo(std::pair<int, int>*, std::pair<int, int>*)’:
paint.cpp:6:12: error: request for member ‘first’ in ‘a’, which is of pointer type ‘std::pair<int, int>*’ (maybe you meant to use ‘->’ ?)
6 | return (a.first > b.first);
| ^~~~~
paint.cpp:6:22: error: request for member ‘first’ in ‘b’, which is of pointer type ‘std::pair<int, int>*’ (maybe you meant to use ‘->’ ?)
6 | return (a.first > b.first);
| ^~~~~
paint.cpp: In function ‘int main()’:
paint.cpp:30:11: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘std::pair<int, int> [N]’
30 | sort(arr.begin(), arr.end(), foo);
| ^~~~~
paint.cpp:30:24: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘std::pair<int, int> [N]’
30 | sort(arr.begin(), arr.end(), foo);
| ^~~