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_38852520_14322.cpp:4:17: error: expected ']' before ';' token
    4 | #define N 200010;
      |                 ^
0_0_38852520_14322.cpp:5:7: note: in expansion of macro 'N'
    5 | int a[N];
      |       ^
0_0_38852520_14322.cpp:5:8: error: expected unqualified-id before ']' token
    5 | int a[N];
      |        ^
0_0_38852520_14322.cpp:4:17: error: expected ']' before ';' token
    4 | #define N 200010;
      |                 ^
0_0_38852520_14322.cpp:10:11: note: in expansion of macro 'N'
   10 | node tree[N<<2];
      |           ^
0_0_38852520_14322.cpp:10:12: error: expected unqualified-id before '<<' token
   10 | node tree[N<<2];
      |            ^~
0_0_38852520_14322.cpp: In function 'void creat(int, int, int)':
0_0_38852520_14322.cpp:13:9: error: 'tree' was not declared in this scope; did you mean 'free'?
   13 |         tree[i].left=l,tree[i].right=r;
      |         ^~~~
      |         free
0_0_38852520_14322.cpp:15:27: error: 'a' was not declared in this scope
   15 |                 tree[i].w=a[l];
      |                           ^
0_0_38852520_14322.cpp: In function 'int checkhighest(int, int, int)':
0_0_38852520_14322.cpp:25:15: error: 'tree' was not declared in this scope; did you mean 'free'?
   25 |         if(l<=tree[i].left&&r>=tree[i].right) return tree[i].w;
      |               ^~~~
      |               free
0_0_38852520_14322.cpp:26:18: error: 'tree' was not declared in this scope; did you mean 'free'?
   26 |         int mid=(tree[i].left+tree[i].right)>>1;
      |                  ^~~~
      |                  free
0_0_38852520_14322.cpp: In function 'void updata(int, int, int)':
0_0_38852520_14322.cpp:34:12: error: 'tree' was not declared in this scope; did you mean 'free'?
   34 |         if(tree[i].left==tree[i].right){
      |            ^~~~
      |            free
0_0_38852520_14322.cpp:38:18: error: 'tree' was not declared in this scope; did you mean 'free'?
   38 |         int mid=(tree[i].left+tree[i].right)>>1;
      |                  ^~~~
      |                  free
0_0_38852520_14322.cpp: In function 'int main()':
0_0_38852520_14322.cpp:47:44: error: 'a' was not declared in this scope
   47 |                 for(int i=1;i<=n;i++) cin>>a[i];
      |                                            ^
0_0_38852520_14322.cpp:56:42: error: 'a' was not declared in this scope
   56 |                                 case 'U':a[x]=y,updata(1,x,y);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-07-05 05:17:21, Gzip enabled