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