0_0_29845771_19801.cpp: In function 'int main()': 0_0_29845771_19801.cpp:41:10: error: 'ans' was not declared in this scope memset(ans, 0, sizeof(ans)); ^