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_35114330_10138.cpp:8:9: error: 'Suo' does not name a type
 typedef Suo
         ^
0_0_35114330_10138.cpp:12:1: error: 'Suo' does not name a type
 Suo start,endx,next;
 ^
0_0_35114330_10138.cpp: In function 'int BFS()':
0_0_35114330_10138.cpp:15:5: error: 'start' was not declared in this scope
     start.dis=0;
     ^
0_0_35114330_10138.cpp:16:11: error: 'Suo' was not declared in this scope
     queue<Suo>q;
           ^
0_0_35114330_10138.cpp:16:14: error: template argument 1 is invalid
     queue<Suo>q;
              ^
0_0_35114330_10138.cpp:16:14: error: template argument 2 is invalid
0_0_35114330_10138.cpp:16:16: error: invalid type in declaration before ';' token
     queue<Suo>q;
                ^
0_0_35114330_10138.cpp:17:7: error: request for member 'push' in 'q', which is of non-class type 'int'
     q.push(start);
       ^
0_0_35114330_10138.cpp:19:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
     while(!q.empty())
              ^
0_0_35114330_10138.cpp:21:17: error: request for member 'front' in 'q', which is of non-class type 'int'
         start=q.front();
                 ^
0_0_35114330_10138.cpp:22:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
         q.pop();
           ^
0_0_35114330_10138.cpp:23:21: error: 'endx' was not declared in this scope
         if(start.x==endx.x&&start.y==endx.y)
                     ^
0_0_35114330_10138.cpp:29:13: error: 'std::next' does not have class type
             next.x=start.x+dir[i][0];
             ^
0_0_35114330_10138.cpp:30:13: error: 'std::next' does not have class type
             next.y=start.y+dir[i][1];
             ^
0_0_35114330_10138.cpp:31:19: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                   ^
0_0_35114330_10138.cpp:31:27: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                           ^
0_0_35114330_10138.cpp:31:39: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                                       ^
0_0_35114330_10138.cpp:31:50: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                                                  ^
0_0_35114330_10138.cpp:31:61: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                                                             ^
0_0_35114330_10138.cpp:31:72: error: 'std::next' does not have class type
             if(mp[next.x][next.y]==0&&next.x>=1&&next.x<=8&&next.y>=1&&next.y<=8)
                                                                        ^
0_0_35114330_10138.cpp:33:20: error: 'std::next' does not have class type
                 mp[next.x][next.y]=1;
                    ^
0_0_35114330_10138.cpp:33:28: error: 'std::next' does not have class type
                 mp[next.x][next.y]=1;
                            ^
0_0_35114330_10138.cpp:34:17: error: 'std::next' does not have class type
                 next.dis=start.dis+1;
                 ^
0_0_35114330_10138.cpp:35:19: error: request for member 'push' in 'q', which is of non-class type 'int'
                 q.push(next);
                   ^
0_0_35114330_10138.cpp: In function 'int main()':
0_0_35114330_10138.cpp:46:9: error: 'start' was not declared in this scope
         start.x=x1[0]-'a'+1;
         ^
0_0_35114330_10138.cpp:48:9: error: 'endx' was not declared in this scope
         endx.x=x2[0]-'a'+1;
         ^


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-10-07 00:20:25, Gzip enabled