F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 15:31:48, Gzip enabled