encoder.cpp: In function 'void prep()':
encoder.cpp:13:11: error: 'n' was not declared in this scope; did you mean 'yn'?
13 | if(ts > n) break;
| ^
| yn
encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:17:19: error: too many arguments to function 'void prep()'
17 | if(!gen) prep(n);
| ^
encoder.cpp:7:6: note: declared here
7 | void prep(){
| ^~~~
decoder.cpp: In function 'void prep()':
decoder.cpp:13:11: error: 'n' was not declared in this scope; did you mean 'yn'?
13 | if(ts > n) break;
| ^
| yn
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:17:19: error: too many arguments to function 'void prep()'
17 | if(!gen) prep(n);
| ^
decoder.cpp:7:6: note: declared here
7 | void prep(){
| ^~~~