F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-05 14:25:00, Gzip enabled