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_36333555_32684.cpp:48:20: error: 'vector' has not been declared
     bool isCovered(vector<vector<int>>& ranges, int left, int right) {
                    ^
0_0_36333555_32684.cpp:48:26: error: expected ',' or '...' before '<' token
     bool isCovered(vector<vector<int>>& ranges, int left, int right) {
                          ^
0_0_36333555_32684.cpp: In member function 'bool Solution::query(int, int, int, int, int)':
0_0_36333555_32684.cpp:40:42: error: 'min' was not declared in this scope
             if(!query(lson, a, min(b, mid))) return false;
                                          ^
0_0_36333555_32684.cpp:43:43: error: 'max' was not declared in this scope
             if(!query(rson, max(mid + 1, a), b)) return false;
                                           ^
0_0_36333555_32684.cpp: In member function 'bool Solution::isCovered(int)':
0_0_36333555_32684.cpp:49:33: error: 'memset' was not declared in this scope
         memset(tr, 0, sizeof(tr));
                                 ^
0_0_36333555_32684.cpp:50:23: error: 'ranges' was not declared in this scope
         for (auto x : ranges) {
                       ^
0_0_36333555_32684.cpp:53:32: error: 'left' was not declared in this scope
         return query(1, 1, 50, left, right);
                                ^
0_0_36333555_32684.cpp:53:38: error: 'right' was not declared in this scope
         return query(1, 1, 50, left, right);
                                      ^


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-06-29 10:32:26, Gzip enabled