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