0_0_37592731_28358.cpp: In member function 'void KD_tree::queery(int, int, node)':
0_0_37592731_28358.cpp:43:14: error: expected primary-expression before 'long'
ans += sq(long long(p.x[i] - kd[root].x[i]));
^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
#define sq(x) (x)*(x);
^
0_0_37592731_28358.cpp:43:14: error: expected ')' before 'long'
ans += sq(long long(p.x[i] - kd[root].x[i]));
^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
#define sq(x) (x)*(x);
^
0_0_37592731_28358.cpp:49:16: error: expected primary-expression before 'long'
int len = sq(long long(p.x[dim] - kd[root].x[dim]));
^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
#define sq(x) (x)*(x);
^
0_0_37592731_28358.cpp:49:16: error: expected ')' before 'long'
int len = sq(long long(p.x[dim] - kd[root].x[dim]));
^
0_0_37592731_28358.cpp:5:16: note: in definition of macro 'sq'
#define sq(x) (x)*(x);
^
|