0_0_18028566_12705.cpp: In function 'int main()': 0_0_18028566_12705.cpp:58:35: error: 'ans' was not declared in this scope printf("%d\n",sum[ans]); ^