0_0_30141334_912.cpp: In function 'int main(int, const char**)': 0_0_30141334_912.cpp:24:3: error: 'ans' was not declared in this scope ans = d + mon[m-1]; ^