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_33077719_29733.cpp: In member function 'void Network::InitCapacity(unsigned int, unsigned int, int)':
0_0_33077719_29733.cpp:55:44: error: converting to 'const std::tuple<unsigned int, unsigned int>' from initializer list would use explicit constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = unsigned int&; _U2 = unsigned int&; <template-parameter-2-3> = void; _T1 = unsigned int; _T2 = unsigned int]'
     std::get<0>(capacity.insert({{u, v}, 0}))->second = c;
                                            ^
0_0_33077719_29733.cpp: In member function 'int Network::GetCapacity(unsigned int, unsigned int)':
0_0_33077719_29733.cpp:59:35: error: converting to 'const key_type {aka const std::tuple<unsigned int, unsigned int>}' from initializer list would use explicit constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = unsigned int&; _U2 = unsigned int&; <template-parameter-2-3> = void; _T1 = unsigned int; _T2 = unsigned int]'
     auto it = capacity.find({u, v});
                                   ^
0_0_33077719_29733.cpp: In member function 'int Network::GetFlow(unsigned int, unsigned int)':
0_0_33077719_29733.cpp:66:31: error: converting to 'const key_type {aka const std::tuple<unsigned int, unsigned int>}' from initializer list would use explicit constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = unsigned int&; _U2 = unsigned int&; <template-parameter-2-3> = void; _T1 = unsigned int; _T2 = unsigned int]'
     auto it = flow.find({u, v});
                               ^
0_0_33077719_29733.cpp: In member function 'void Network::AddToFlow(unsigned int, unsigned int, int)':
0_0_33077719_29733.cpp:77:40: error: converting to 'const std::tuple<unsigned int, unsigned int>' from initializer list would use explicit constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = unsigned int&; _U2 = unsigned int&; <template-parameter-2-3> = void; _T1 = unsigned int; _T2 = unsigned int]'
     std::get<0>(flow.insert({{u, v}, 0}))->second += diff;
                                        ^


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-30 06:52:58, Gzip enabled