1004641_0_0_9859.cpp: In function `int main()': 1004641_0_0_9859.cpp:26: error: `weigh' undeclared (first use this function) 1004641_0_0_9859.cpp:26: error: (Each undeclared identifier is reported only once for each function it appears in.)