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_29576890_23308.cpp: In function 'int main()':
0_0_29576890_23308.cpp:93:12: error: 'n' was not declared in this scope
     cin >> n;
            ^
0_0_29576890_23308.cpp:94:41: error: 'a' was not declared in this scope
     for (int i = 1; i <= n; i++) cin >> a[i];
                                         ^
0_0_29576890_23308.cpp:97:15: error: 'a' was not declared in this scope
       int k = a[i] - a[i - 1];
               ^
0_0_29576890_23308.cpp:98:7: error: 'ans' was not declared in this scope
       ans[i] = query(1, n, 1, i - k);
       ^
0_0_29576890_23308.cpp:101:41: error: 'ans' was not declared in this scope
     for (int i = 1; i < n; i++) cout << ans[i] << " ";
                                         ^
0_0_29576890_23308.cpp:102:13: error: 'ans' was not declared in this scope
     cout << ans[n] << endl;
             ^


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-30 02:24:44, Gzip enabled