speedrun.cpp: In function 'void assignHints(int, int, int*, int*)':
speedrun.cpp:27:22: error: 'n' was not declared in this scope
27 | for(int i = 1; i <= n; i++){
| ^
speedrun.cpp:33:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int j = 0; j < ord.size(); j++){
| ~~^~~~~~~~~~~~
speedrun.cpp:35:16: error: 'v' was not declared in this scope
35 | int a = ((p[v] >> i) & 1);
| ^
speedrun.cpp:36:12: error: 'x' was not declared in this scope
36 | setHint(x,i+1,a);
| ^
speedrun.cpp:38:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(j+1 < ord.size()){
| ~~~~^~~~~~~~~~~~
speedrun.cpp:40:17: error: 'v' was not declared in this scope
40 | int a = ((p[v] >> i) & 1);
| ^
speedrun.cpp:41:13: error: 'x' was not declared in this scope
41 | setHint(x,i+11,a);
| ^
speedrun.cpp: In function 'void speedrun(int, int, int)':
speedrun.cpp:54:6: error: 'up' was not declared in this scope; did you mean 'p'?
54 | if(up == 0) break;
| ^~
| p
speedrun.cpp:57:8: error: expected primary-expression before ')' token
57 | while()
| ^
speedrun.cpp:58:1: error: expected primary-expression before '}' token
58 | }
| ^