Main.cc: In function 'int main()': Main.cc:9:18: error: 'd' was not declared in this scope cin>>a>>b>>c>>d; ^