messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:8:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<p.size()-1;i++){
| ~^~~~~~~~~~~
messy.cpp:10:5: error: 'add_element' was not declared in this scope
10 | add_element(p);
| ^~~~~~~~~~~
messy.cpp:13:3: error: 'compile_set' was not declared in this scope
13 | compile_set();
| ^~~~~~~~~~~
messy.cpp:21:12: error: 'check_element' was not declared in this scope
21 | bool f=check_element(l);
| ^~~~~~~~~~~~~
messy.cpp:15:8: warning: unused variable 'm' [-Wunused-variable]
15 | bool m=0;
| ^