encoder.cpp: In function 'int encode(int, int, int)':
encoder.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int m = 0 ; cnt <= n ; m++)
^~~
encoder.cpp:16:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
preCalculate = true;
^~~~~~~~~~~~
encoder.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
decoder.cpp: In function 'int decode(int, int, int)':
decoder.cpp:9:7: error: 'preCalculate' was not declared in this scope
if( !preCalculate )
^~~~~~~~~~~~
decoder.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int m = 0 ; cnt <= n ; m++)
^~~
decoder.cpp:16:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
preCalculate = true;
^~~~~~~~~~~~