lang.cpp: In function 'int pandan(int*)':
lang.cpp:30:6: warning: unused variable 'nE' [-Wunused-variable]
int nE[222] = { 0, }, n=0, i, j;
^~
lang.cpp:30:24: warning: unused variable 'n' [-Wunused-variable]
int nE[222] = { 0, }, n=0, i, j;
^
lang.cpp: In function 'int max(int, int)':
lang.cpp:71:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (a < b)return b; return a;
^~
lang.cpp:71:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (a < b)return b; return a;
^~~~~~
lang.cpp: In function 'void learn(int*, int)':
lang.cpp:74:12: warning: unused variable 'k' [-Wunused-variable]
int i, j, k;
^
lang.cpp: In function 'void excerpt(int*)':
lang.cpp:113:6: warning: unused variable 'i' [-Wunused-variable]
int i, j;
^
lang.cpp:113:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
lang.cpp: In function 'int pandan(int*)':
lang.cpp:22:2: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow]
if (s > e)return 0;
^~
lang.cpp: In function 'void learn(int*, int)':
lang.cpp:22:2: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow]
if (s > e)return 0;
^~
lang.cpp: In function 'int pandan(int*)':
lang.cpp:54:47: warning: 'cntw' may be used uninitialized in this function [-Wmaybe-uninitialized]
int k = hashX(E, befw + 1, i - 1), cnt=0, cntw;
^~~~