coprobber.cpp:12:69: error: redefinition of 'int par [500]'
12 | int cnt = 0 , dis[500] , par[500] , st[500] , en[500] , cur = 0 , par[500] ;
| ^~~
coprobber.cpp:12:27: note: 'int par [500]' previously declared here
12 | int cnt = 0 , dis[500] , par[500] , st[500] , en[500] , cur = 0 , par[500] ;
| ^~~
coprobber.cpp: In function 'int nextMove(int)':
coprobber.cpp:40:8: error: 'p' was not declared in this scope
40 | if(p[r]==cur){
| ^
coprobber.cpp:43:11: error: 'p' was not declared in this scope
43 | while(p[r]!=cur){
| ^