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_18715387_16558.cpp:23:28: error: 'Point' does not name a type
     bool operator > (const Point& rhs)const
                            ^
0_0_18715387_16558.cpp: In member function 'bool point::operator>(const int&) const':
0_0_18715387_16558.cpp:25:27: error: request for member 'step' in 'rhs', which is of non-class type 'const int'
         return step > rhs.step;
                           ^
0_0_18715387_16558.cpp: In function 'int bfs()':
0_0_18715387_16558.cpp:36:22: error: 'Point' was not declared in this scope
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                      ^
0_0_18715387_16558.cpp:36:35: error: the value of 'Point' is not usable in a constant expression
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                   ^
0_0_18715387_16558.cpp:36:22: note: 'Point' was not declared 'constexpr'
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                      ^
0_0_18715387_16558.cpp:36:40: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                        ^
0_0_18715387_16558.cpp:36:40: error:   expected a type, got 'Point'
0_0_18715387_16558.cpp:36:40: error: template argument 2 is invalid
0_0_18715387_16558.cpp:36:50: error: the value of 'Point' is not usable in a constant expression
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                                  ^
0_0_18715387_16558.cpp:36:22: note: 'Point' was not declared 'constexpr'
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                      ^
0_0_18715387_16558.cpp:36:55: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp> struct std::greater'
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                                       ^
0_0_18715387_16558.cpp:36:55: error:   expected a type, got 'Point'
0_0_18715387_16558.cpp:36:57: error: template argument 1 is invalid
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                                         ^
0_0_18715387_16558.cpp:36:57: error: template argument 2 is invalid
0_0_18715387_16558.cpp:36:57: error: template argument 3 is invalid
0_0_18715387_16558.cpp:36:60: error: invalid type in declaration before ';' token
     priority_queue < Point,vector<Point>,greater<Point> > Q;
                                                            ^
0_0_18715387_16558.cpp:37:11: error: expected ';' before 'pre'
     Point pre,now;
           ^
0_0_18715387_16558.cpp:40:9: error: 'pre' was not declared in this scope
         pre.x = 1;
         ^
0_0_18715387_16558.cpp:43:11: error: request for member 'push' in 'Q', which is of non-class type 'int'
         Q.push(pre);
           ^
0_0_18715387_16558.cpp:45:14: error: request for member 'empty' in 'Q', which is of non-class type 'int'
     while(!Q.empty())
              ^
0_0_18715387_16558.cpp:47:9: error: 'pre' was not declared in this scope
         pre = Q.top();
         ^
0_0_18715387_16558.cpp:47:17: error: request for member 'top' in 'Q', which is of non-class type 'int'
         pre = Q.top();
                 ^
0_0_18715387_16558.cpp:48:11: error: request for member 'pop' in 'Q', which is of non-class type 'int'
         Q.pop();
           ^
0_0_18715387_16558.cpp:52:13: error: 'now' was not declared in this scope
             now.x = pre.x + dir[i][0];
             ^
0_0_18715387_16558.cpp:62:19: error: request for member 'push' in 'Q', which is of non-class type 'int'
                 Q.push(now);
                   ^


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-09-30 12:00:33, Gzip enabled