0_0_35447904_5327.cpp:9:1: error: 'node' does not name a type
node a[maxn]; int son[maxn<<2],idx; P Q;
^
0_0_35447904_5327.cpp:5:20: error: 'node' was not declared in this scope
#define P pair<ll, node>
^
0_0_35447904_5327.cpp:9:37: note: in expansion of macro 'P'
node a[maxn]; int son[maxn<<2],idx; P Q;
^
0_0_35447904_5327.cpp:5:24: error: template argument 2 is invalid
#define P pair<ll, node>
^
0_0_35447904_5327.cpp:9:37: note: in expansion of macro 'P'
node a[maxn]; int son[maxn<<2],idx; P Q;
^
0_0_35447904_5327.cpp:9:40: error: invalid type in declaration before ';' token
node a[maxn]; int son[maxn<<2],idx; P Q;
^
0_0_35447904_5327.cpp: In function 'void build(int, int, int, int)':
0_0_35447904_5327.cpp:17:17: error: 'a' was not declared in this scope
nth_element(a+l,a+mid,a+r+1); tr[rt] = a[mid];
^
0_0_35447904_5327.cpp: In function 'void qry(node&, int, int)':
0_0_35447904_5327.cpp:27:21: error: request for member 'first' in 'Q', which is of non-class type 'int'
(cur.first<Q.first||(cur.first==Q.first&&cur.second.id < Q.second.id))) Q=cur;
^
0_0_35447904_5327.cpp:27:42: error: request for member 'first' in 'Q', which is of non-class type 'int'
(cur.first<Q.first||(cur.first==Q.first&&cur.second.id < Q.second.id))) Q=cur;
^
0_0_35447904_5327.cpp:27:67: error: request for member 'second' in 'Q', which is of non-class type 'int'
(cur.first<Q.first||(cur.first==Q.first&&cur.second.id < Q.second.id))) Q=cur;
^
0_0_35447904_5327.cpp:27:81: error: cannot convert 'std::pair<long long int, node>' to 'int' in assignment
(cur.first<Q.first||(cur.first==Q.first&&cur.second.id < Q.second.id))) Q=cur;
^
0_0_35447904_5327.cpp:30:43: error: request for member 'first' in 'Q', which is of non-class type 'int'
if(sqr(tr[rt].x[dep]-ask.x[dep]) <= Q.first) qry(ask,y,dep^1);
^
0_0_35447904_5327.cpp: In function 'int main()':
0_0_35447904_5327.cpp:39:40: error: 'a' was not declared in this scope
fors(j,0,2) scanf("%lld", &a[i].x[j]);
^
0_0_35447904_5327.cpp:40:26: error: 'a' was not declared in this scope
scanf("%d", &a[i].c); a[i].id = i;
^
0_0_35447904_5327.cpp:45:15: error: request for member 'first' in 'Q', which is of non-class type 'int'
Q.first = inf; qry(ask);
^
0_0_35447904_5327.cpp:46:39: error: request for member 'second' in 'Q', which is of non-class type 'int'
printf("%lld %lld %d\n",Q.second.x[0],Q.second.x[1],Q.second.c);
^
0_0_35447904_5327.cpp:46:53: error: request for member 'second' in 'Q', which is of non-class type 'int'
printf("%lld %lld %d\n",Q.second.x[0],Q.second.x[1],Q.second.c);
^
0_0_35447904_5327.cpp:46:67: error: request for member 'second' in 'Q', which is of non-class type 'int'
printf("%lld %lld %d\n",Q.second.x[0],Q.second.x[1],Q.second.c);
^
|