Main.cc: In function 'int main()': Main.cc:6:5: error: 'j' was not declared in this scope j=n-(y%x); ^