messy.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > adding(int)':
messy.cpp:16:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=0; i<p.size(); i++){ans.push_back(p[i]+s1); ans.push_back(s1+p[i]);}
| ~^~~~~~~~~
messy.cpp: In function 'void reading(int, int, std::vector<int>)':
messy.cpp:26:24: error: 'n' was not declared in this scope
26 | for(int i=0; i<n; i++)
| ^
messy.cpp:28:37: error: expected ';' before 'else'
28 | if(i==possible[1])s+='0'
| ^
| ;
29 | else s+='1';
| ~~~~
messy.cpp:32:43: error: 'permission' was not declared in this scope
32 | else {permutation[l]=possible[0]; permission[r]=possible[1];}
| ^~~~~~~~~~
messy.cpp:36:20: error: 'n' was not declared in this scope
36 | for(int i=0; i<n; i++)s+='1';
| ^
messy.cpp:37:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int i=0; i<possible.size(); i++)s[possible[i]]='0';
| ~^~~~~~~~~~~~~~~~
messy.cpp:38:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0; i<possible.size(); i++)
| ~^~~~~~~~~~~~~~~~
messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:55:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(int i=0; i<a.size(); i++)add_element(a[i]);
| ~^~~~~~~~~