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_35913673_18431.cpp:6:22: error: expected primary-expression before ';' token
  const int maxn =  + ;
                      ^
0_0_35913673_18431.cpp:7:12: error: size of array 'a' is not an integral constant-expression
  int a[maxn];
            ^
0_0_35913673_18431.cpp: In function 'int main()':
0_0_35913673_18431.cpp:12:21: error: expected primary-expression before ';' token
      for(int kase = ; kase < T; kase++)
                     ^
0_0_35913673_18431.cpp:17:22: error: expected primary-expression before ';' token
          for(int i = ; i < n; i++) scanf("%d", &a[i]);
                      ^
0_0_35913673_18431.cpp:19:21: error: expected primary-expression before ',' token
          int head = , rear = n - , cnt = ;
                     ^
0_0_35913673_18431.cpp:20:24: error: 'rear' was not declared in this scope
          while(head <= rear)
                        ^
0_0_35913673_18431.cpp:22:14: error: 'cnt' was not declared in this scope
              cnt++;
              ^
0_0_35913673_18431.cpp:27:25: error: 'cnt' was not declared in this scope
          printf("%d\n", cnt);
                         ^


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-07-01 20:14:36, Gzip enabled