Main.cc: In function 'int main()':
Main.cc:6:2: error: expected initializer before 'cin'
cin>>a>>b>>c>>d;
^
Main.cc:8:8: error: 'x' was not declared in this scope
if(a%x==b%x&&b%x==c%x){
^
Main.cc:12:3: error: 'x' was not declared in this scope
x++;
^