0_0_22594176_5770.cpp: In function 'int main()': 0_0_22594176_5770.cpp:22:17: error: 'j' was not declared in this scope pre[j-1]=ans; ^