0_0_31948471_5234.cpp: In function 'int main()':
0_0_31948471_5234.cpp:9:18: error: the value of 't' is not usable in a constant expression
case t>=90&&t<=100:printf("A\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:9:18: error: the value of 't' is not usable in a constant expression
case t>=90&&t<=100:printf("A\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:10:18: error: the value of 't' is not usable in a constant expression
case t>=80&&t<=89:printf("B\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:10:18: error: the value of 't' is not usable in a constant expression
case t>=80&&t<=89:printf("B\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:11:18: error: the value of 't' is not usable in a constant expression
case t>=70&&t<=79:printf("C\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:11:18: error: the value of 't' is not usable in a constant expression
case t>=70&&t<=79:printf("C\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:12:18: error: the value of 't' is not usable in a constant expression
case t>=60&&t<=69:printf("D\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:12:18: error: the value of 't' is not usable in a constant expression
case t>=60&&t<=69:printf("D\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:13:17: error: the value of 't' is not usable in a constant expression
case t>=0&&t<=59:printf("E\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:13:17: error: the value of 't' is not usable in a constant expression
case t>=0&&t<=59:printf("E\n");break;
^
0_0_31948471_5234.cpp:4:6: note: 'int t' is not const
int t;
^
0_0_31948471_5234.cpp:14:11: error: expected ':' before 't'
default t>100:printf("Score is error!");break;
^
0_0_31948471_5234.cpp:14:16: error: expected ';' before ':' token
default t>100:printf("Score is error!");break;
^
|