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_24358485_4140.cpp:5:18: error: 'aka' was not declared in this scope
 void clear(queue<aka>& q) {
                  ^
0_0_24358485_4140.cpp:5:21: error: template argument 1 is invalid
 void clear(queue<aka>& q) {
                     ^
0_0_24358485_4140.cpp:5:21: error: template argument 2 is invalid
0_0_24358485_4140.cpp: In function 'void clear(int&)':
0_0_24358485_4140.cpp:6:8: error: 'aka' was not declared in this scope
  queue<aka> empty;
        ^
0_0_24358485_4140.cpp:6:11: error: template argument 1 is invalid
  queue<aka> empty;
           ^
0_0_24358485_4140.cpp:6:11: error: template argument 2 is invalid
0_0_24358485_4140.cpp:6:18: error: invalid type in declaration before ';' token
  queue<aka> empty;
                  ^
0_0_24358485_4140.cpp: In function 'int bfs(int)':
0_0_24358485_4140.cpp:24:11: error: invalid initialization of reference of type 'int&' from expression of type 'std::queue<aka>'
    clear(q);
           ^
0_0_24358485_4140.cpp:5:6: note: in passing argument 1 of 'void clear(int&)'
 void clear(queue<aka>& q) {
      ^
0_0_24358485_4140.cpp:53:9: error: invalid initialization of reference of type 'int&' from expression of type 'std::queue<aka>'
  clear(q);
         ^
0_0_24358485_4140.cpp:5:6: note: in passing argument 1 of 'void clear(int&)'
 void clear(queue<aka>& q) {
      ^


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-03 17:43:32, Gzip enabled