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_22334639_1427.cpp: In function 'void KDT::query(KDT::Node*, KDT::Point&, int)':
0_0_22334639_1427.cpp:120:18: error: 'struct KDT::Node' has no member named 'key'
   ll cur=dist(o->key,p),dis[2]={INF,INF};
                  ^
0_0_22334639_1427.cpp:120:23: error: 'dist' was not declared in this scope
   ll cur=dist(o->key,p),dis[2]={INF,INF};
                       ^
0_0_22334639_1427.cpp:122:21: error: 'struct KDT::Node' has no member named 'key'
    que.push({cur,o->key});
                     ^
0_0_22334639_1427.cpp:122:25: error: no matching function for call to 'std::priority_queue<KDT::qnode>::push(<brace-enclosed initializer list>)'
    que.push({cur,o->key});
                         ^
0_0_22334639_1427.cpp:122:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_22334639_1427.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = KDT::qnode; _Sequence = std::vector<KDT::qnode, std::allocator<KDT::qnode> >; _Compare = std::less<KDT::qnode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = KDT::qnode]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const KDT::qnode&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = KDT::qnode; _Sequence = std::vector<KDT::qnode, std::allocator<KDT::qnode> >; _Compare = std::less<KDT::qnode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = KDT::qnode]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<KDT::qnode>::value_type&& {aka KDT::qnode&&}'
0_0_22334639_1427.cpp:124:32: error: 'struct KDT::Node' has no member named 'key'
    que.pop(); que.push({cur,o->key});
                                ^
0_0_22334639_1427.cpp:124:36: error: no matching function for call to 'std::priority_queue<KDT::qnode>::push(<brace-enclosed initializer list>)'
    que.pop(); que.push({cur,o->key});
                                    ^
0_0_22334639_1427.cpp:124:36: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_22334639_1427.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = KDT::qnode; _Sequence = std::vector<KDT::qnode, std::allocator<KDT::qnode> >; _Compare = std::less<KDT::qnode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = KDT::qnode]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const KDT::qnode&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = KDT::qnode; _Sequence = std::vector<KDT::qnode, std::allocator<KDT::qnode> >; _Compare = std::less<KDT::qnode>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = KDT::qnode]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<KDT::qnode>::value_type&& {aka KDT::qnode&&}'
0_0_22334639_1427.cpp:128:11: error: assignment of read-only location '*(KDT::dis + ((sizetype)i))'
     dis[i]=h(o->ch[i],p);
           ^
0_0_22334639_1427.cpp:128:11: error: cannot convert 'll {aka long long int}' to 'll(KDT::Point&, KDT::Point&) {aka long long int(KDT::Point&, KDT::Point&)}' in assignment
0_0_22334639_1427.cpp:131:65: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
             if(o->ch[t]!=null&&(que.size()<k)||dis[t]<que.top().dis)
                                                                 ^


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-11-25 18:19:40, Gzip enabled