Main.cc: In function 'int main()': Main.cc:7:22: error: 'x' was not declared in this scope for(int i=0;i*6<=x;i++) ^