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_33900582_6778.cpp: In function 'void change(int&, int, int, int, int)':
0_0_33900582_6778.cpp:13:15: error: 'mid' was not declared in this scope
     if(pos <= mid) change(L[res], l, mid, pos, w);
               ^
0_0_33900582_6778.cpp: In function 'void add(int, int)':
0_0_33900582_6778.cpp:18:47: error: 'lower_bound' was not declared in this scope
     int x = lower_bound(b+1, b+1+num, arr[ans]) - b;
                                               ^
0_0_33900582_6778.cpp: In function 'int getpos(int, int, int)':
0_0_33900582_6778.cpp:32:26: error: 'mid' was not declared in this scope
         return getpos(l, mid, k);
                          ^
0_0_33900582_6778.cpp:37:23: error: 'mid' was not declared in this scope
         return getpos(mid+1, r, k - sum);
                       ^
0_0_33900582_6778.cpp: In function 'int main()':
0_0_33900582_6778.cpp:42:12: error: 'rd' was not declared in this scope
     n = rd(), m = rd();
            ^
0_0_33900582_6778.cpp:43:9: error: 'i' was not declared in this scope
     FOR(i, 1, n) b[++num] = arr[i] = rd();
         ^
0_0_33900582_6778.cpp:43:16: error: 'FOR' was not declared in this scope
     FOR(i, 1, n) b[++num] = arr[i] = rd();
                ^
0_0_33900582_6778.cpp:49:22: error: 'sort' was not declared in this scope
     sort(b+1, b+1+num);
                      ^
0_0_33900582_6778.cpp:50:30: error: 'unique' was not declared in this scope
     num = unique(b+1, b+1+num) - b - 1;
                              ^


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-07-01 11:03:03, Gzip enabled