messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:10:29: error: 'bitset' was not declared in this scope
10 | string binary_str = bitset<32>(i).to_string().substr(32 - n);
| ^~~~~~
messy.cpp:3:1: note: 'std::bitset' is defined in header '<bitset>'; did you forget to '#include <bitset>'?
2 | #include <vector>
+++ |+#include <bitset>
3 | #include <string>
messy.cpp:10:43: error: request for member 'to_string' in 'i', which is of non-class type 'int'
10 | string binary_str = bitset<32>(i).to_string().substr(32 - n);
| ^~~~~~~~~
messy.cpp:15:9: error: 'add_element' was not declared in this scope; did you mean 'element'?
15 | add_element(element);
| ^~~~~~~~~~~
| element
messy.cpp:18:5: error: 'compile_set' was not declared in this scope
18 | compile_set();
| ^~~~~~~~~~~
messy.cpp:25:13: error: 'check_element' was not declared in this scope; did you mean 'test_element'?
25 | if (check_element(test_element)) {
| ^~~~~~~~~~~~~
| test_element