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_19218259_16490.cpp:5:4: error: stray '#' in program
  2 #define F(i,a,b) for(int i=a;i<=b;i++)
    ^
0_0_19218259_16490.cpp:5:2: error: expected unqualified-id before numeric constant
  2 #define F(i,a,b) for(int i=a;i<=b;i++)
  ^
0_0_19218259_16490.cpp:5:33: error: 'i' does not name a type
  2 #define F(i,a,b) for(int i=a;i<=b;i++)
                                 ^
0_0_19218259_16490.cpp:5:38: error: 'i' does not name a type
  2 #define F(i,a,b) for(int i=a;i<=b;i++)
                                      ^
0_0_19218259_16490.cpp:8:2: error: expected unqualified-id before numeric constant
  4 typedef long long ll;
  ^
0_0_19218259_16490.cpp:9:2: error: expected unqualified-id before numeric constant
  5 
  ^
0_0_19218259_16490.cpp:11:2: error: expected unqualified-id before numeric constant
  7 int A[N],n,g[N],v[N],nxt[N],ed,x,tot,root[N],dfn[N],dfs_idx,sz[N],mid[N],val[N];
  ^
0_0_19218259_16490.cpp:12:2: error: expected unqualified-id before numeric constant
  8 ll sum[N],ans,mx;
  ^
0_0_19218259_16490.cpp:13:2: error: expected unqualified-id before numeric constant
  9 
  ^
0_0_19218259_16490.cpp:15:1: error: expected unqualified-id before numeric constant
 11 void init(){ed=tot=dfs_idx=0,ans=mx=0;memset(sum,0,sizeof(sum));memset(g,0,sizeof(g));}
 ^
0_0_19218259_16490.cpp:16:1: error: expected unqualified-id before numeric constant
 12 inline void upmax(ll &a,ll b){if(a<b)a=b;}
 ^
0_0_19218259_16490.cpp:17:1: error: expected unqualified-id before numeric constant
 13 //------------------Ê÷×´Êý×é
 ^
0_0_19218259_16490.cpp:19:1: error: expected unqualified-id before numeric constant
 15 inline ll ask(int x){ll an=0;while(x)an+=sum[x],x-=x&-x;return an;}
 ^
0_0_19218259_16490.cpp:20:1: error: expected unqualified-id before numeric constant
 16 //------------------Ö÷ϯÊ÷
 ^
0_0_19218259_16490.cpp:21:29: error: 'T' does not name a type
 17 struct node{int l,r,sum;}T[N*30];
                             ^
0_0_19218259_16490.cpp:22:1: error: expected unqualified-id before numeric constant
 18 
 ^
0_0_19218259_16490.cpp:31:1: error: expected unqualified-id before numeric constant
 27 
 ^
0_0_19218259_16490.cpp:39:1: error: expected unqualified-id before numeric constant
 35 
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 17:30:46, Gzip enabled