robot.cpp:14:1: error: expected ',' or ';' before 'int'
14 | int pos=0;
| ^~~
robot.cpp: In function 'std::pair<int, char> get(std::vector<int>)':
robot.cpp:29:10: error: 'pos' was not declared in this scope; did you mean 'pow'?
29 | if(S[pos]==blank){
| ^~~
| pow
robot.cpp:44:10: error: 'pos' was not declared in this scope; did you mean 'pow'?
44 | if(S[pos]<=path)
| ^~~
| pow
robot.cpp:46:10: error: 'pos' was not declared in this scope; did you mean 'pow'?
46 | if(S[pos]==prv(S[pos])){
| ^~~
| pow
robot.cpp:54:31: error: 'pos' was not declared in this scope; did you mean 'pow'?
54 | return {dir[nd],S[pos]};
| ^~~
| pow
robot.cpp:54:35: error: could not convert '{dir.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)nd)), <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, char>'
54 | return {dir[nd],S[pos]};
| ^
| |
| <brace-enclosed initializer list>
robot.cpp:59:27: error: 'pos' was not declared in this scope; did you mean 'pow'?
59 | return {dir[S[pos]],path};
| ^~~
| pow
robot.cpp:59:37: error: could not convert '{<expression error>, path}' from '<brace-enclosed initializer list>' to 'std::pair<int, char>'
59 | return {dir[S[pos]],path};
| ^
| |
| <brace-enclosed initializer list>
robot.cpp:61:19: error: 'pos' was not declared in this scope; did you mean 'pow'?
61 | return {dir[S[pos]],blank};
| ^~~
| pow
robot.cpp:61:30: error: could not convert '{<expression error>, blank}' from '<brace-enclosed initializer list>' to 'std::pair<int, char>'
61 | return {dir[S[pos]],blank};
| ^
| |
| <brace-enclosed initializer list>