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_39267973_2105.cpp: In function 'void run()':
0_0_39267973_2105.cpp:42:34: error: request for member 'size' in 'p1.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
   42 |                         if(p1[i].size()!=0)f[p1[i]]=op;
      |                                  ^~~~
0_0_39267973_2105.cpp:45:34: error: request for member 'size' in 'p2.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
   45 |                         if(p2[i].size()!=0)f[p2[i]]=1-op;
      |                                  ^~~~
0_0_39267973_2105.cpp:55:34: error: request for member 'size' in 'p1.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
   55 |                         if(p1[i].size()!=0)f[p1[i]]=2;
      |                                  ^~~~
0_0_39267973_2105.cpp:58:34: error: request for member 'size' in 'p2.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
   58 |                         if(p2[i].size()!=0)f[p2[i]]=3;
      |                                  ^~~~


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-26 13:16:50, Gzip enabled