encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:20:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for(int i = 0; i < bruh.size(); i++) {
| ~~^~~~~~~~~~~~~
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:7:5: error: 'vector' was not declared in this scope
7 | vector<int> br(256);
| ^~~~~~
decoder.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include "decoderlib.h"
+++ |+#include <vector>
3 | using namespace std;
decoder.cpp:7:12: error: expected primary-expression before 'int'
7 | vector<int> br(256);
| ^~~
decoder.cpp:9:9: error: 'br' was not declared in this scope
9 | br[x[i]]++;
| ^~
decoder.cpp:11:12: error: expected primary-expression before 'int'
11 | vector<int> bruh(0);
| ^~~
decoder.cpp:13:28: error: 'br' was not declared in this scope
13 | for(int j = 0; j < br[i]; j++) {
| ^~
decoder.cpp:14:13: error: 'bruh' was not declared in this scope
14 | bruh.push_back(0);
| ^~~~
decoder.cpp:16:9: error: 'bruh' was not declared in this scope
16 | bruh.push_back(1);
| ^~~~
decoder.cpp:19:9: error: 'bruh' was not declared in this scope
19 | bruh.push_back(0);
| ^~~~
decoder.cpp:26:17: error: 'bruh' was not declared in this scope
26 | sb+=bruh[j];
| ^~~~