921841_0_0_2904.cpp: In function `int main()': 921841_0_0_2904.cpp:7: error: `sum' undeclared (first use this function) 921841_0_0_2904.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)