/in/foo.cc: In function 'int main()':
/in/foo.cc:9:11: error: the value of 'a' is not usable in a constant expression
case a==0 : cout<<"Sunday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:9:11: error: the value of 'a' is not usable in a constant expression
case a==0 : cout<<"Sunday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:10:11: error: the value of 'a' is not usable in a constant expression
case a==1 : cout<<"Monday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:10:11: error: the value of 'a' is not usable in a constant expression
case a==1 : cout<<"Monday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:11:11: error: the value of 'a' is not usable in a constant expression
case a==2 : cout<<"Tuesday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:11:11: error: the value of 'a' is not usable in a constant expression
case a==2 : cout<<"Tuesday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:12:11: error: the value of 'a' is not usable in a constant expression
case a==3 : cout<<"Wednesday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:12:11: error: the value of 'a' is not usable in a constant expression
case a==3 : cout<<"Wednesday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:13:11: error: the value of 'a' is not usable in a constant expression
case a==4 : cout<<"Thursday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:13:11: error: the value of 'a' is not usable in a constant expression
case a==4 : cout<<"Thursday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:14:11: error: the value of 'a' is not usable in a constant expression
case a==5 : cout<<"Friday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:14:11: error: the value of 'a' is not usable in a constant expression
case a==5 : cout<<"Friday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:15:11: error: the value of 'a' is not usable in a constant expression
case a==6 : cout<<"Sunday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:15:11: error: the value of 'a' is not usable in a constant expression
case a==6 : cout<<"Sunday";
^
/in/foo.cc:5:6: note: 'int a' is not const
int a;
^
/in/foo.cc:18:1: error: expected '}' at end of input
}
^