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_18175014_6533.c:5:5: error: variably modified 'flag' at file scope
 int flag[maxn*4],set[maxn*4];
     ^
0_0_18175014_6533.c:5:18: error: variably modified 'set' at file scope
 int flag[maxn*4],set[maxn*4];
                  ^
0_0_18175014_6533.c: In function 'update':
0_0_18175014_6533.c:16:5: error: expected expression before '/' token
     //cout<<rt<<" "<<l<<" "<<r<<endl;
     ^
0_0_18175014_6533.c: In function 'getans':
0_0_18175014_6533.c:40:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<30;i++)
     ^
0_0_18175014_6533.c:40:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_18175014_6533.c:42:13: error: redefinition of 'i'
     for(int i=0;i<d;i++){
             ^
0_0_18175014_6533.c:40:13: note: previous definition of 'i' was here
     for(int i=0;i<30;i++)
             ^
0_0_18175014_6533.c:42:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<d;i++){
     ^
0_0_18175014_6533.c: In function 'main':
0_0_18175014_6533.c:52:5: error: expected expression before '/' token
     //freopen("in","r",stdin);
     ^


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-12-05 06:24:38, Gzip enabled