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_19694907_28900.c:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include cstdio
          ^
0_0_19694907_28900.c:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include algorithm
          ^
0_0_19694907_28900.c:4:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_19694907_28900.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_19694907_28900.c:12:1: error: unknown type name 'Node'
 Node tree[MAXN*20];
 ^
0_0_19694907_28900.c:16:7: error: unknown type name 'bool'
       bool operator () (int i,int j)
       ^
0_0_19694907_28900.c:17:7: error: expected ':', ',', ';', '}' or '__attribute__' before '{' token
       {
       ^
0_0_19694907_28900.c:18:13: error: stray '\241' in program
             return (a[i]《a[j]);
             ^
0_0_19694907_28900.c:18:13: error: stray '\266' in program
0_0_19694907_28900.c:21:1: error: unknown type name 'cmp'
 cmp x;
 ^
0_0_19694907_28900.c: In function 'discretize':
0_0_19694907_28900.c:25:32: error: expected expression before '/' token
       sort(link+1,link+n+1,x); // 以link作为中转站,对a进行排序 
                                ^
0_0_19694907_28900.c:25:32: error: stray '\322' in program
0_0_19694907_28900.c:25:32: error: stray '\324' in program
0_0_19694907_28900.c:25:32: error: stray '\327' in program
0_0_19694907_28900.c:25:32: error: stray '\367' in program
0_0_19694907_28900.c:25:32: error: stray '\316' in program
0_0_19694907_28900.c:25:32: error: stray '\252' in program
0_0_19694907_28900.c:25:32: error: stray '\326' in program
0_0_19694907_28900.c:25:32: error: stray '\320' in program
0_0_19694907_28900.c:25:32: error: stray '\327' in program
0_0_19694907_28900.c:25:32: error: stray '\252' in program
0_0_19694907_28900.c:25:32: error: stray '\325' in program
0_0_19694907_28900.c:25:32: error: stray '\276' in program
0_0_19694907_28900.c:25:32: error: stray '\243' in program
0_0_19694907_28900.c:25:32: error: stray '\254' in program
0_0_19694907_28900.c:25:32: error: stray '\266' in program
0_0_19694907_28900.c:25:32: error: stray '\324' in program
0_0_19694907_28900.c:25:32: error: stray '\275' in program
0_0_19694907_28900.c:25:32: error: stray '\370' in program
0_0_19694907_28900.c:25:32: error: stray '\320' in program
0_0_19694907_28900.c:25:32: error: stray '\320' in program
0_0_19694907_28900.c:25:32: error: stray '\305' in program
0_0_19694907_28900.c:25:32: error: stray '\305' in program
0_0_19694907_28900.c:25:32: error: stray '\320' in program
0_0_19694907_28900.c:25:32: error: stray '\362' in program
0_0_19694907_28900.c: At top level:
0_0_19694907_28900.c:29:17: error: expected ';', ',' or ')' before '&' token
 void insert(int &now,int l,int r,int x)
                 ^
0_0_19694907_28900.c: In function 'query':
0_0_19694907_28900.c:42:29: error: request for member 'ls' in something not a structure or union
       int size=tree[tree[nr].ls].size-tree[tree[nl].ls].size,mid=(l+r)>>1;
                             ^
0_0_19694907_28900.c:42:52: error: request for member 'ls' in something not a structure or union
       int size=tree[tree[nr].ls].size-tree[tree[nl].ls].size,mid=(l+r)>>1;
                                                    ^
0_0_19694907_28900.c:43:41: error: request for member 'ls' in something not a structure or union
       if (size>=k) return query(tree[nl].ls,tree[nr].ls,l,mid,k);
                                         ^
0_0_19694907_28900.c:43:53: error: request for member 'ls' in something not a structure or union
       if (size>=k) return query(tree[nl].ls,tree[nr].ls,l,mid,k);
                                                     ^
0_0_19694907_28900.c:44:33: error: request for member 'rs' in something not a structure or union
       else return query(tree[nl].rs,tree[nr].rs,mid+1,r,k-size);
                                 ^
0_0_19694907_28900.c:44:45: error: request for member 'rs' in something not a structure or union
       else return query(tree[nl].rs,tree[nr].rs,mid+1,r,k-size);
                                             ^
0_0_19694907_28900.c: In function 'main':
0_0_19694907_28900.c:51:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for (int j=1;j<=t;j++)
       ^
0_0_19694907_28900.c:51:7: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_19694907_28900.c:55:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for (int i=1;i<=n;i++) { scanf("%d",&a[i]); link[i]=i; }
             ^
0_0_19694907_28900.c:56:27: error: expected expression before '/' token
             discretize(); // 离散化 
                           ^
0_0_19694907_28900.c:56:27: error: stray '\300' in program
0_0_19694907_28900.c:56:27: error: stray '\353' in program
0_0_19694907_28900.c:56:27: error: stray '\311' in program
0_0_19694907_28900.c:56:27: error: stray '\242' in program
0_0_19694907_28900.c:56:27: error: stray '\273' in program
0_0_19694907_28900.c:56:27: error: stray '\257' in program


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 03:16:27, Gzip enabled