prog.cpp: In function ‘void solve(int, int, int)’:
prog.cpp:5:8: error: ‘vis’ was not declared in this scope
if(vis[l][r])return;
^
prog.cpp:7:5: error: ‘ret’ was not declared in this scope
ret++;
^
prog.cpp:8:5: error: ‘vis’ was not declared in this scope
vis[l][r]=1;
^
prog.cpp:10:11: error: ‘k’ was not declared in this scope
if(t==k || l>n || r>n) return;
^
prog.cpp:10:18: error: ‘n’ was not declared in this scope
if(t==k || l>n || r>n) return;
^
prog.cpp:13:15: error: ‘acc’ was not declared in this scope
int kill1=acc[r];
^
prog.cpp:16:8: error: ‘p’ was not declared in this scope
if(p[l]>0) kill2=1;
^
prog.cpp:17:8: error: ‘p’ was not declared in this scope
if(p[l]==100) kill2=2;
^
prog.cpp: In function ‘void bfs()’:
prog.cpp:77:3: error: ‘queue’ was not declared in this scope
queue<node> q;
^
prog.cpp:77:13: error: expected primary-expression before ‘>’ token
queue<node> q;
^
prog.cpp:77:15: error: ‘q’ was not declared in this scope
queue<node> q;
^
prog.cpp:88:8: error: ‘vis’ was not declared in this scope
if(vis[l][r])continue;
^
prog.cpp:90:5: error: ‘ret’ was not declared in this scope
ret++;
^
prog.cpp:91:5: error: ‘vis’ was not declared in this scope
vis[l][r]=1;
^
prog.cpp:93:11: error: ‘k’ was not declared in this scope
if(t==k || l>n || r>n) continue;
^
prog.cpp:93:18: error: ‘n’ was not declared in this scope
if(t==k || l>n || r>n) continue;
^
prog.cpp:96:15: error: ‘acc’ was not declared in this scope
int kill1=acc[r];
^
prog.cpp:99:8: error: ‘p’ was not declared in this scope
if(p[l]>0) kill2=1;
^
prog.cpp:100:8: error: ‘p’ was not declared in this scope
if(p[l]==100) kill2=2;
^