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_32487078_7494.cpp:6:1: error: expected ',' or ';' before 'int'
 int a[N], pos[N];
 ^
0_0_32487078_7494.cpp: In function 'void build(int, int, int)':
0_0_32487078_7494.cpp:14:19: error: 'pos' was not declared in this scope
         maxv[o] = pos[l];
                   ^
0_0_32487078_7494.cpp: In function 'int main()':
0_0_32487078_7494.cpp:57:26: error: 'a' was not declared in this scope
             scanf("%d", &a[i]);
                          ^
0_0_32487078_7494.cpp:58:13: error: 'pos' was not declared in this scope
             pos[a[i]] = i;
             ^
0_0_32487078_7494.cpp:60:9: error: 'pos' was not declared in this scope
         pos[n + 1] = n + 1;
         ^
0_0_32487078_7494.cpp:75:37: error: 'a' was not declared in this scope
                 update(1, 1, n + 1, a[x]);
                                     ^


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-17 04:40:47, Gzip enabled