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_13819853_32188.cpp:15:1: error: expected initializer before 'node'
 node tt[maxn];
 ^
0_0_13819853_32188.cpp: In function 'int main()':
0_0_13819853_32188.cpp:22:10: error: 'a' was not declared in this scope
     cin>>a[i];
          ^
0_0_13819853_32188.cpp:26:11: error: 'a' was not declared in this scope
     while(a[l[i]-1]>=a[i])
           ^
0_0_13819853_32188.cpp:29:11: error: 'a' was not declared in this scope
     while(a[r[i]-1]>=r[i])
           ^
0_0_13819853_32188.cpp:33:5: error: 'tt' was not declared in this scope
     tt[i].len=r[i]-l[i]+1;
     ^
0_0_13819853_32188.cpp:34:15: error: 'a' was not declared in this scope
     tt[i].num=a[i];
               ^
0_0_13819853_32188.cpp:36:9: error: 'tt' was not declared in this scope
    sort(tt,tt+n,cmp);
         ^


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-09-21 15:35:40, Gzip enabled