encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:2:9: error: 'bitset' was not declared in this scope
2 | bitset<10> a=x,b=y;
| ^~~~~~
encoder.cpp:2:20: error: 'a' was not declared in this scope
2 | bitset<10> a=x,b=y;
| ^
encoder.cpp:2:24: error: 'b' was not declared in this scope
2 | bitset<10> a=x,b=y;
| ^
encoder.cpp:8:37: error: 'i' was not declared in this scope
8 | int pa=__builtin_popcount(i),pb=__builtin_popcount(j);
| ^
encoder.cpp:9:19: error: 'pb' was not declared in this scope; did you mean 'pa'?
9 | a=pa; b=pb;
| ^~
| pa
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:5:5: error: 'bitset' was not declared in this scope
5 | bitset<5> st=nm;
| ^~~~~~
decoder.cpp:5:15: error: 'st' was not declared in this scope; did you mean 'std'?
5 | bitset<5> st=nm;
| ^~
| std
decoder.cpp:10:5: error: 'bitset' was not declared in this scope
10 | bitset<10> k=q;
| ^~~~~~
decoder.cpp:10:16: error: 'k' was not declared in this scope
10 | bitset<10> k=q;
| ^
decoder.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
14 | }
| ^