Main.cc: In function ‘void tui(int)’: Main.cc:16:57: error: ‘k’ was not declared in this scope cout << 2 * a - 1 << "," << 2 * a << "-->" << a << k + 1 << endl; ^