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_33447854_21736.cpp: In function 'void bfs()':
0_0_33447854_21736.cpp:9:5: error: 'queue' was not declared in this scope
     queue < pp > Q;
     ^
0_0_33447854_21736.cpp:9:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_33447854_21736.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_33447854_21736.cpp:4:12: error: 'pair' was not declared in this scope
 #define pp pair<int ,int>
            ^
0_0_33447854_21736.cpp:9:13: note: in expansion of macro 'pp'
     queue < pp > Q;
             ^
0_0_33447854_21736.cpp:4:12: note: suggested alternative:
 #define pp pair<int ,int>
            ^
0_0_33447854_21736.cpp:9:13: note: in expansion of macro 'pp'
     queue < pp > Q;
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_33447854_21736.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:96:12: note:   'std::pair'
     struct pair
            ^
0_0_33447854_21736.cpp:4:17: error: expected primary-expression before 'int'
 #define pp pair<int ,int>
                 ^
0_0_33447854_21736.cpp:9:13: note: in expansion of macro 'pp'
     queue < pp > Q;
             ^
0_0_33447854_21736.cpp:11:5: error: 'Q' was not declared in this scope
     Q.push(make_pair(n,n));
     ^
0_0_33447854_21736.cpp:11:25: error: 'make_pair' was not declared in this scope
     Q.push(make_pair(n,n));
                         ^
0_0_33447854_21736.cpp:11:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_33447854_21736.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:276:5: note:   'std::make_pair'
     make_pair(_T1&& __x, _T2&& __y)
     ^
0_0_33447854_21736.cpp:4:17: error: expected primary-expression before 'int'
 #define pp pair<int ,int>
                 ^
0_0_33447854_21736.cpp:14:9: note: in expansion of macro 'pp'
         pp t=Q.front();
         ^
0_0_33447854_21736.cpp:18:20: error: 't' was not declared in this scope
             int tx=t.first+dir[i][0];
                    ^


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-20 14:58:23, Gzip enabled