messy.cpp: In constructor 'Data::Data(int, int, std::vector<int>)':
messy.cpp:14:61: error: expected '{' at end of input
14 | Data(int l, int r, vector<int> idx) : l(l), r(r), idx(idx);
| ^
messy.cpp: In function 'int* restore_permutation(int, int, int)':
messy.cpp:29:7: error: 'add_element' was not declared in this scope
29 | add_element(t);
| ^~~~~~~~~~~
messy.cpp:36:3: error: 'compile_set' was not declared in this scope
36 | compile_set();
| ^~~~~~~~~~~
messy.cpp:56:11: error: 'check_element' was not declared in this scope
56 | if (check_element(t)) left.push_back(i);
| ^~~~~~~~~~~~~
messy.cpp:65:10: warning: address of local variable 'ans' returned [-Wreturn-local-addr]
65 | return ans;
| ^~~
messy.cpp:40:7: note: declared here
40 | int ans[n];
| ^~~
messy.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
messy_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~