incursion.cpp: In function 'void locate(std::vector<std::pair<int, int> >, int, int)':
incursion.cpp:59:3: error: expected initializer before 'if'
59 | if(c1 == 0 and c == 1 and c2 == 2){
| ^~
incursion.cpp:65:3: error: 'else' without a previous 'if'
65 | else if(c1 == 1 and c == 2 and c2 == 0){
| ^~~~
incursion.cpp:66:9: error: 'cr' was not declared in this scope; did you mean 'c2'?
66 | cr = visit(c2);
| ^~
| c2
incursion.cpp:72:9: error: 'cr' was not declared in this scope; did you mean 'c2'?
72 | cr = visit(c2);
| ^~
| c2
incursion.cpp:79:9: error: 'cr' was not declared in this scope; did you mean 'c2'?
79 | cr = visit(c1);
| ^~
| c2
incursion.cpp:85:9: error: 'cr' was not declared in this scope; did you mean 'c2'?
85 | cr = visit(c1);
| ^~
| c2
incursion.cpp:91:9: error: 'cr' was not declared in this scope; did you mean 'c2'?
91 | cr = visit(c1);
| ^~
| c2
incursion.cpp:105:40: error: 'cr' was not declared in this scope; did you mean 'c2'?
105 | if(nt == 2 and cr == 2 and pv == 2){
| ^~
| c2
incursion.cpp:105:52: error: 'pv' was not declared in this scope; did you mean 'p'?
105 | if(nt == 2 and cr == 2 and pv == 2){
| ^~
| p
incursion.cpp:109:25: error: 'pv' was not declared in this scope; did you mean 'p'?
109 | pv = cr;
| ^~
| p
incursion.cpp:109:30: error: 'cr' was not declared in this scope; did you mean 'c2'?
109 | pv = cr;
| ^~
| c2