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_36681790_8526.cpp:14:16: error: conflicting declaration 'std::vector<node> F [2]'
 vector<node>F[2];
                ^
0_0_36681790_8526.cpp:13:13: note: previous declaration as 'std::vector<node> F'
 vector<node>F;
             ^
0_0_36681790_8526.cpp: In function 'int main()':
0_0_36681790_8526.cpp:25:8: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'clear'
   F[0].clear();
        ^
0_0_36681790_8526.cpp:26:10: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'push_back'
   F[Now].push_back(node {1,1});
          ^
0_0_36681790_8526.cpp:29:4: error: 'q' was not declared in this scope
    q.clear();
    ^
0_0_36681790_8526.cpp:30:11: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'clear'
    F[Now].clear();
           ^
0_0_36681790_8526.cpp:39:18: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'size'
    tot1=F[Now^1].size();
                  ^
0_0_36681790_8526.cpp:43:27: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type {aka node}' and 'int')
     while(p<tot1&&F[Now^1][p].y<q[j].x)p++;
                           ^
0_0_36681790_8526.cpp:44:25: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type {aka node}' and 'int')
     if(p==tot1||F[Now^1][p].x>q[j].y)continue;
                         ^
0_0_36681790_8526.cpp:45:19: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type {aka node}' and 'int')
     l=max(F[Now^1][p].x,q[j].x);
                   ^
0_0_36681790_8526.cpp:47:12: error: '__gnu_cxx::__alloc_traits<std::allocator<node> >::value_type' has no member named 'push_back'
     F[Now].push_back(node {l,r});
            ^


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-24 15:03:22, Gzip enabled