cmp.cpp:6:1: error: 'vector' does not name a type
6 | vector<int> offset;
| ^~~~~~
cmp.cpp: In function 'void remember(int)':
cmp.cpp:9:5: error: 'offset' was not declared in this scope; did you mean 'off_t'?
9 | offset[0] = 0;
| ^~~~~~
| off_t
cmp.cpp: In function 'int compare(int)':
cmp.cpp:22:21: error: 'offset' was not declared in this scope; did you mean 'off_t'?
22 | if (bit_get(offset[m] + 1 + b >> (2 * m))) {
| ^~~~~~
| off_t
cmp.cpp:33:13: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
33 | if (bit_get(offset[l] + 4 * (b >> (2 * r))) return 1;
| ^~~~~~~
cmp.cpp:33:21: error: 'offset' was not declared in this scope; did you mean 'off_t'?
33 | if (bit_get(offset[l] + 4 * (b >> (2 * r))) return 1;
| ^~~~~~
| off_t
cmp.cpp:34:9: error: expected primary-expression before 'else'
34 | else return -1;
| ^~~~
cmp.cpp:33:62: error: expected ')' before 'else'
33 | if (bit_get(offset[l] + 4 * (b >> (2 * r))) return 1;
| ~ ^
| )
34 | else return -1;
| ~~~~
cmp.cpp:37:21: error: 'offset' was not declared in this scope; did you mean 'off_t'?
37 | if (bit_get(offset[l] + 4 * (b >> (2 * r)) + 3)) return -1;
| ^~~~~~
| off_t