messy.cpp:6:2: error: extended character is not valid in an identifier
6 | for(int i=0;i<x;i++)ans[i]=x-i-1;
| ^
messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:6:8: error: expected primary-expression before 'int'
6 | for(int i=0;i<x;i++)ans[i]=x-i-1;
| ^~~
messy.cpp:6:16: error: 'i' was not declared in this scope
6 | for(int i=0;i<x;i++)ans[i]=x-i-1;
| ^
messy.cpp:7:12: warning: control reaches end of non-void function [-Wreturn-type]
7 | string p="";
| ^~