Main.cc: In function 'int main()': Main.cc:12:12: error: 'y' was not declared in this scope y=k*x/(x-k); ^