Main.cc: In function 'int main()': Main.cc:6:10: error: 'X2' was not declared in this scope cin>>x1>>X2>>y1>>y2; ^