encoder.cpp:5:1: error: 'vector' does not name a type
5 | vector<int> ps(923, 0);
| ^~~~~~
encoder.cpp: In function 'void init()':
encoder.cpp:13:7: error: 'k' was not declared in this scope
13 | k++;
| ^
encoder.cpp:14:7: error: 'ps' was not declared in this scope
14 | ps[k] = j;
| ^~
encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:23:10: error: 'ps' was not declared in this scope
23 | if ((ps[a]&(1<<h)) && ((ps[b]&(1<<h))==0)) return h+1;
| ^~
encoder.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
25 | }
| ^
decoder.cpp:5:1: error: 'vector' does not name a type
5 | vector<int> ps(923, 0);
| ^~~~~~
decoder.cpp: In function 'void init()':
decoder.cpp:13:7: error: 'k' was not declared in this scope
13 | k++;
| ^
decoder.cpp:14:7: error: 'ps' was not declared in this scope
14 | ps[k] = j;
| ^~
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:22:7: error: 'ps' was not declared in this scope
22 | if (ps[q]&(1<<h)) return true;
| ^~