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
}
^
|