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_39757599_32330.cpp: In function 'int main()':
0_0_39757599_32330.cpp:20:32: error: request for member 'to' in 'man.std::vector<int>::operator[](((std::vector<int>::size_type)a))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   20 |                         man[a].to.push_back(b);
      |                                ^~
0_0_39757599_32330.cpp:21:32: error: request for member 'to' in 'man.std::vector<int>::operator[](((std::vector<int>::size_type)b))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   21 |                         man[b].to.push_back(a);
      |                                ^~
0_0_39757599_32330.cpp:31:59: error: request for member 'to' in 'man.std::vector<int>::operator[](((std::vector<int>::size_type)p))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   31 |                                 for(int i = 0; i < man[p].to.size(); i++)
      |                                                           ^~
0_0_39757599_32330.cpp:32:59: error: request for member 'to' in 'man.std::vector<int>::operator[](((std::vector<int>::size_type)p))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   32 |                                         sum += man[man[p].to[i]].E;
      |                                                           ^~
0_0_39757599_32330.cpp:37:40: error: request for member 'E' in 'man.std::vector<int>::operator[](((std::vector<int>::size_type)p))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   37 |                                 man[p].E += e;
      |                                        ^


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-22 21:31:17, Gzip enabled