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