0_0_19226702_5537.cpp: In function 'int main()': 0_0_19226702_5537.cpp:22:17: error: expected primary-expression before ']' token sum[]=sum[i-1]+ans[i]; ^