0_0_5991253_9040.cpp: In function `int main()': 0_0_5991253_9040.cpp:148: error: `ans' undeclared (first use this function) 0_0_5991253_9040.cpp:148: error: (Each undeclared identifier is reported only once for each function it appears in.)