encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:45:12: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int i, p, j;
^
encoder.cpp: At global scope:
encoder.cpp:7:12: warning: 'sending' defined but not used [-Wunused-variable]
static int sending;
^~~~~~~
decoder.cpp: In function 'void check()':
decoder.cpp:41:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
decoder.cpp: In function 'void check1()':
decoder.cpp:65:10: warning: statement has no effect [-Wunused-value]
p;
^
decoder.cpp:56:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
decoder.cpp: In function 'void check2()':
decoder.cpp:78:10: warning: statement has no effect [-Wunused-value]
p;
^
decoder.cpp:69:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
decoder.cpp: In function 'void check3()':
decoder.cpp:91:10: warning: statement has no effect [-Wunused-value]
p;
^
decoder.cpp:82:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:96:15: warning: unused variable 'j' [-Wunused-variable]
int i, b, j;
^
decoder.cpp: In function 'void hc()':
decoder.cpp:31:24: warning: iteration 24 invokes undefined behavior [-Waggressive-loop-optimizations]
C[i][0]=C[i][i]=1;
~~~~~~~^~
decoder.cpp:24:16: note: within this loop
for(i=1 ; i<=40 ; i++){
~^~~~