745122_0_0_5227.cpp: In function `int main()': 745122_0_0_5227.cpp:61: error: `total' undeclared (first use this function) 745122_0_0_5227.cpp:61: error: (Each undeclared identifier is reported only once for each function it appears in.)