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_26554943_9708.cpp: In member function 'bool node::operator<(const node&)':
0_0_26554943_9708.cpp:23:10: error: 'pos' was not declared in this scope
   return pos[l]<pos[a.l]||(pos[l]==pos[a.l]&&r<a.r);
          ^
0_0_26554943_9708.cpp: In function 'int main()':
0_0_26554943_9708.cpp:29:48: error: request for member 'clear' in 'tmp.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
  for(int i=1;i<maxn;i++) vec[i].clear(),tmp[i].clear();
                                                ^
0_0_26554943_9708.cpp:35:21: error: no match for 'operator[]' (operand types are 'std::vector<int> [1007]' and 'node')
    for(int j=0;j<vec[a[i]].size();j++){
                     ^
0_0_26554943_9708.cpp:36:12: error: no match for 'operator[]' (operand types are 'std::vector<int> [1007]' and 'node')
     tmp[vec[a[i]][j]].push_back(i);
            ^
0_0_26554943_9708.cpp:42:18: error: 'm' was not declared in this scope
   for(int i=1;i<=m;i++){
                  ^


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-29 07:24:06, Gzip enabled