0_0_34254609_21228.cpp: In function 'int bfs()':
0_0_34254609_21228.cpp:23:33: error: 'cnt' was not declared in this scope
if(in[i]==0) {q.push(i);cnt++;}
^
0_0_34254609_21228.cpp:36:17: error: 'cnt' was not declared in this scope
cnt++;
^
0_0_34254609_21228.cpp:41:8: error: 'cnt' was not declared in this scope
if(cnt!=0)return -1;
^
|