encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:5:16: error: 'itoa' was not declared in this scope
itoa(n, str, 2);
^
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:6:16: error: 'itoa' was not declared in this scope
itoa(n, str, 2);
^
decoder.cpp:10:2: error: 'cout' was not declared in this scope
cout << (temp == 0) << endl;
^
decoder.cpp:10:25: error: 'endl' was not declared in this scope
cout << (temp == 0) << endl;
^
decoder.cpp:13:23: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
int mask = (1 << bit + 1) - 1;
^
decoder.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^