0_0_34904109_10984.cpp: In function 'll solve(ll)': 0_0_34904109_10984.cpp:36:17: error: 'i' was not declared in this scope for(int j = a[i]-1;j>=0;--j){ ^