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_29048713_17754.cpp:18:16: error: 'vec' has not been declared
 bool BFS(int x,vec<int> g[maxN],char cha){
                ^
0_0_29048713_17754.cpp:18:19: error: expected ',' or '...' before '<' token
 bool BFS(int x,vec<int> g[maxN],char cha){
                   ^
0_0_29048713_17754.cpp: In function 'bool BFS(int, int)':
0_0_29048713_17754.cpp:24:24: error: 'g' was not declared in this scope
         for(int i=0;i<=g[u].size()-1>;i++){
                        ^
0_0_29048713_17754.cpp:24:38: error: expected primary-expression before ';' token
         for(int i=0;i<=g[u].size()-1>;i++){
                                      ^
0_0_29048713_17754.cpp:29:42: error: 'cha' was not declared in this scope
                 if(depth[v]>=2&&c[x][v]!=cha)
                                          ^
0_0_29048713_17754.cpp: In function 'int main()':
0_0_29048713_17754.cpp:51:25: error: 'temp' was not declared in this scope
                 else if(temp=='Q'){
                         ^
0_0_29048713_17754.cpp:58:29: error: invalid conversion from 'std::vector<int>*' to 'int' [-fpermissive]
             if(!BFS(i,gp,'P')){
                             ^
0_0_29048713_17754.cpp:58:29: error: too many arguments to function 'bool BFS(int, int)'
0_0_29048713_17754.cpp:18:6: note: declared here
 bool BFS(int x,vec<int> g[maxN],char cha){
      ^
0_0_29048713_17754.cpp:65:13: error: 'cnt' was not declared in this scope
             cnt=0;
             ^
0_0_29048713_17754.cpp:67:29: error: invalid conversion from 'std::vector<int>*' to 'int' [-fpermissive]
             if(!BFS(i,gq,'Q')){
                             ^
0_0_29048713_17754.cpp:67:29: error: too many arguments to function 'bool BFS(int, int)'
0_0_29048713_17754.cpp:18:6: note: declared here
 bool BFS(int x,vec<int> g[maxN],char cha){
      ^
0_0_29048713_17754.cpp:81:1: error: expected '}' at end of input
 }
 ^


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 15:07:47, Gzip enabled