encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:32:24: error: 'n' was not declared in this scope
for (int i = 0; i < n; i++)
^
encoder.cpp:33:12: error: too few arguments to function 'void binary(int)'
binary();
^
encoder.cpp:8:6: note: declared here
void binary (int n) {
^~~~~~
decoder.cpp: In function 'void decode(int, int)':
decoder.cpp:10:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int x = 0; x < 10; x++)
^~~
decoder.cpp:13:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
hops(s,f,ans);
^~~~
decoder.cpp:7:7: warning: unused variable 'ans' [-Wunused-variable]
int ans = 0;
^~~