0_0_30853530_14735.cpp: In function 'double solve(int, int)': 0_0_30853530_14735.cpp:44:23: error: 'i' was not declared in this scope p[cnt++] = px[i]; ^