perm.cpp:9:1: error: '::main' must return 'int'
9 | vector<int> main(int n){
| ^~~~~~~~~~~
perm.cpp:9:13: warning: first argument of 'int main(long long int)' should be 'int' [-Wmain]
9 | vector<int> main(int n){
| ^~~~
perm.cpp:9:13: warning: 'int main(long long int)' takes only zero or two arguments [-Wmain]
perm.cpp: In function 'int main(long long int)':
perm.cpp:22:45: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | while(i!=0 and v[id]!=i and id+1<=v.size())id++;
| ~~~~^~~~~~~~~~
perm.cpp:29:16: error: cannot convert 'std::vector<long long int>' to 'int' in return
29 | return v;
| ^