0_0_19932567_29053.cpp:12:1: error: expected ',' or ';' before 'struct'
struct Point {
^
0_0_19932567_29053.cpp:14:3: error: 'p' does not name a type
} p[N], ori[N];
^
0_0_19932567_29053.cpp:17:10: error: 'Point' was not declared in this scope
bool cmp(Point a, Point b) {
^
0_0_19932567_29053.cpp:17:19: error: 'Point' was not declared in this scope
bool cmp(Point a, Point b) {
^
0_0_19932567_29053.cpp:17:26: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(Point a, Point b) {
^
0_0_19932567_29053.cpp:17:28: error: expected ',' or ';' before '{' token
bool cmp(Point a, Point b) {
^
0_0_19932567_29053.cpp: In function 'void build(int, int, int)':
0_0_19932567_29053.cpp:28:17: error: 'p' was not declared in this scope
nth_element(p + l, p + m, p + r + 1, cmp);
^
0_0_19932567_29053.cpp: At global scope:
0_0_19932567_29053.cpp:36:9: error: 'Point' was not declared in this scope
LL dist(Point x, Point y) {
^
0_0_19932567_29053.cpp:36:18: error: 'Point' was not declared in this scope
LL dist(Point x, Point y) {
^
0_0_19932567_29053.cpp:36:25: error: expression list treated as compound expression in initializer [-fpermissive]
LL dist(Point x, Point y) {
^
0_0_19932567_29053.cpp:36:27: error: expected ',' or ';' before '{' token
LL dist(Point x, Point y) {
^
|