0_0_12394960_29966.cpp: In function `int work()': 0_0_12394960_29966.cpp:31: error: `n' undeclared (first use this function) 0_0_12394960_29966.cpp:31: error: (Each undeclared identifier is reported only once for each function it appears in.)