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_36938013_14718.cpp: In function 'int main()':
0_0_36938013_14718.cpp:15:7: error: 'a' was not declared in this scope
   if (a < 0 || a > 100) printf("Score is error!\n");
       ^
0_0_36938013_14718.cpp:19:30: error: the value of 't' is not usable in a constant expression
     case (t >= 90 && t <= 100):
                              ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:19:30: error: the value of 't' is not usable in a constant expression
     case (t >= 90 && t <= 100):
                              ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:24:29: error: the value of 't' is not usable in a constant expression
     case (t >= 80 && t <= 89):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:24:29: error: the value of 't' is not usable in a constant expression
     case (t >= 80 && t <= 89):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:29:29: error: the value of 't' is not usable in a constant expression
     case (t >= 70 && t <= 79):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:29:29: error: the value of 't' is not usable in a constant expression
     case (t >= 70 && t <= 79):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:34:29: error: the value of 't' is not usable in a constant expression
     case (t >= 60 && t <= 69):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^
0_0_36938013_14718.cpp:34:29: error: the value of 't' is not usable in a constant expression
     case (t >= 60 && t <= 69):
                             ^
0_0_36938013_14718.cpp:12:6: note: 'int t' is not const
  int t;
      ^


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-10-06 21:41:54, Gzip enabled