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_24450994_22075.cpp:6:7: error: 'node' was not declared in this scope
 queue<node>q;
       ^
0_0_24450994_22075.cpp:6:11: error: template argument 1 is invalid
 queue<node>q;
           ^
0_0_24450994_22075.cpp:6:11: error: template argument 2 is invalid
0_0_24450994_22075.cpp:6:13: error: invalid type in declaration before ';' token
 queue<node>q;
             ^
0_0_24450994_22075.cpp: In function 'void bfs(int, int, int, int)':
0_0_24450994_22075.cpp:27:7: error: request for member 'push' in 'q', which is of non-class type 'int'
     q.push((node){x,y,dirt,ans});
       ^
0_0_24450994_22075.cpp:28:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
     while(!q.empty())
              ^
0_0_24450994_22075.cpp:30:19: error: request for member 'front' in 'q', which is of non-class type 'int'
         node sw=q.front();
                   ^
0_0_24450994_22075.cpp:36:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
         q.pop();
           ^
0_0_24450994_22075.cpp:73:23: error: request for member 'push' in 'q', which is of non-class type 'int'
                     q.push(ss);
                       ^
0_0_24450994_22075.cpp:78:23: error: request for member 'push' in 'q', which is of non-class type 'int'
                     q.push(ss);
                       ^


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-12-04 09:37:47, Gzip enabled