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_30465830_14377.c:4:1: error: expected identifier or '(' before '/' token
 //using namespace std;
 ^
0_0_30465830_14377.c:10:5: error: variably modified 'a' at file scope
 int a[maxn],tree[maxn];
     ^
0_0_30465830_14377.c:10:13: error: variably modified 'tree' at file scope
 int a[maxn],tree[maxn];
             ^
0_0_30465830_14377.c:11:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 inline int lowbit(int x)
        ^
0_0_30465830_14377.c:15:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
 inline void update(int x,int k)
        ^
0_0_30465830_14377.c:23:1: error: unknown type name 'inline'
 inline ll getsum(int x)
 ^
0_0_30465830_14377.c:23:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getsum'
 inline ll getsum(int x)
           ^
0_0_30465830_14377.c: In function 'main':
0_0_30465830_14377.c:40:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_30465830_14377.c:40:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_30465830_14377.c:57:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                 for(int i=l+1;i<=r;i++)
                 ^


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-16 13:23:18, Gzip enabled