messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:12:23: error: could not convert '0' from 'int' to 'std::vector<int>'
12 | add_element(build(0));
| ^
| |
| int
messy.cpp:22:25: error: could not convert 'nah' from 'std::vector<int>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
22 | add_element(nah);
| ^~~
| |
| std::vector<int>
messy.cpp:27:29: error: could not convert 'nah2' from 'std::vector<int>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
27 | add_element(nah2);
| ^~~~
| |
| std::vector<int>
messy.cpp:30:25: error: could not convert 'nah2' from 'std::vector<int>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
30 | add_element(nah2);
| ^~~~
| |
| std::vector<int>
messy.cpp:37:32: error: could not convert 'i' from 'int' to 'std::vector<int>'
37 | if(check_element(build(i))){
| ^
| |
| int
messy.cpp:44:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(int i = 0;i<comps.size();i++){
| ~^~~~~~~~~~~~~
messy.cpp:45:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int j = i+1;j<comps.size();j++){
| ~^~~~~~~~~~~~~
messy.cpp:53:32: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
53 | if(comps.size()==n){
| ~~~~~~~~~~~~^~~
messy.cpp:61:53: error: too few arguments to function 'std::string build(std::vector<int>, int)'
61 | if(check_element(build(comb2))){
| ^
messy.cpp:5:8: note: declared here
5 | string build(vector<int> x,int n){
| ^~~~~
messy.cpp:66:49: error: too few arguments to function 'std::string build(std::vector<int>, int)'
66 | if(check_element(build(comb2))){
| ^
messy.cpp:5:8: note: declared here
5 | string build(vector<int> x,int n){
| ^~~~~