decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:2:3: error: 'vector' was not declared in this scope
2 | vector<vector<int> > v(n+5);
| ^~~~~~
decoder.cpp:2:17: error: expected primary-expression before 'int'
2 | vector<vector<int> > v(n+5);
| ^~~
decoder.cpp:8:13: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
8 | tmp+=(decode_bit()*(1<<p));
| ^~~~~~~~~~
| decode
decoder.cpp:11:5: error: 'v' was not declared in this scope
11 | v[i].push_back(tmp); v[tmp].push_back(i);
| ^
decoder.cpp:16:5: error: 'memset' was not declared in this scope
16 | memset(done,false,sizeof done);
| ^~~~~~
decoder.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | void decode(int n,int h) {
decoder.cpp:19:7: error: 'string' was not declared in this scope
19 | string ss;
| ^~~~~~
decoder.cpp:24:34: error: 'ss' was not declared in this scope
24 | for (int i5=0;i5<5;i5++) ss+=(decode_bit()+'0');
| ^~
decoder.cpp:24:39: error: 'decode_bit' was not declared in this scope; did you mean 'decode'?
24 | for (int i5=0;i5<5;i5++) ss+=(decode_bit()+'0');
| ^~~~~~~~~~
| decode
decoder.cpp:29:18: error: 'ss' was not declared in this scope
29 | int rn=ss[ii]-'0';
| ^~
decoder.cpp:44:20: error: 'min' was not declared in this scope
44 | for (int j=min(i,n-1);j>=i-2;j--) {
| ^~~
decoder.cpp:59:9: error: 'ss' was not declared in this scope
59 | ss="";
| ^~
decoder.cpp:70:5: error: 'queue' was not declared in this scope
70 | queue<int> q;
| ^~~~~
decoder.cpp:70:11: error: expected primary-expression before 'int'
70 | queue<int> q;
| ^~~
decoder.cpp:74:17: error: 'q' was not declared in this scope
74 | ans[hub]=0; q.push(hub); vis[hub]=true;
| ^
decoder.cpp:79:7: error: 'hops' was not declared in this scope
79 | hops(hub,i,ans[i]);
| ^~~~
decoder.cpp:81:18: error: 'v' was not declared in this scope
81 | for (int j:v[i]) {
| ^