prog.cpp: In function ‘int main()’:
prog.cpp:8:4: error: ‘s’ was not declared in this scope
s=(5*Y+M*M-D)%4;
^
prog.cpp:10:10: error: ‘Gryffindor’ was not declared in this scope
{cout<<Gryffindor<<endl;}
^~~~~~~~~~
prog.cpp:13:11: error: ‘Slytherin’ was not declared in this scope
cout<<Slytherin<<endl;
^~~~~~~~~
prog.cpp:17:10: error: ‘Ravenclaw’ was not declared in this scope
cout<<Ravenclaw<<endl;
^~~~~~~~~