0_0_2786667_18364.cpp: In function `double solve()': 0_0_2786667_18364.cpp:121: error: `N' undeclared (first use this function) 0_0_2786667_18364.cpp:121: error: (Each undeclared identifier is reported only once for each function it appears in.)