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_30844124_23171.cpp:10:20: error: expected ']' before ';' token
 #define maxn 200008;
                    ^
0_0_30844124_23171.cpp:12:7: note: in expansion of macro 'maxn'
 int q[maxn];
       ^
0_0_30844124_23171.cpp:12:11: error: expected unqualified-id before ']' token
 int q[maxn];
           ^
0_0_30844124_23171.cpp:10:20: error: expected ']' before ';' token
 #define maxn 200008;
                    ^
0_0_30844124_23171.cpp:16:4: note: in expansion of macro 'maxn'
 }a[maxn];
    ^
0_0_30844124_23171.cpp:16:8: error: expected unqualified-id before ']' token
 }a[maxn];
        ^
0_0_30844124_23171.cpp: In function 'int main()':
0_0_30844124_23171.cpp:24:15: error: 'a' was not declared in this scope
   scanf("%d",&a[i].val);
               ^
0_0_30844124_23171.cpp:27:7: error: 'a' was not declared in this scope
  sort(a+1,a+n+1,cmp);
       ^
0_0_30844124_23171.cpp:37:14: error: 'q' was not declared in this scope
     if(!cnt) q[++cnt]=a[i].val;
              ^
0_0_30844124_23171.cpp:39:6: error: 'q' was not declared in this scope
      q[++cnt]=a[i].val;
      ^


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-11-17 00:21:22, Gzip enabled