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_38206673_14074.cpp: In function 'int solve()':
0_0_38206673_14074.cpp:216:34: error: converting to 'std::map<std::tuple<long long unsigned int, int, int>, std::tuple<int, int, int> >::key_type {aka std::tuple<long long unsigned int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long unsigned int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {long long unsigned int, int, int}]'
  mc[{flag[getid(sx, sy)], sx, sy}] = { 0,ans1,ans2 };
                                  ^
0_0_38206673_14074.cpp:216:36: error: converting to 'std::tuple<int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
  mc[{flag[getid(sx, sy)], sx, sy}] = { 0,ans1,ans2 };
                                    ^
0_0_38206673_14074.cpp:224:38: error: converting to 'std::map<std::tuple<long long unsigned int, int, int>, std::tuple<int, int, int> >::key_type {aka std::tuple<long long unsigned int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {long long unsigned int, int, int}]'
   tie(d, rest1, rest2) = mc[{o, x, y}];
                                      ^
0_0_38206673_14074.cpp:234:29: error: converting to 'const key_type {aka const std::tuple<long long unsigned int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long unsigned int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {long long unsigned int, int, int}]'
    if (mc.count({ o1,tx,ty })) continue;
                             ^
0_0_38206673_14074.cpp:241:19: error: converting to 'std::map<std::tuple<long long unsigned int, int, int>, std::tuple<int, int, int> >::key_type {aka std::tuple<long long unsigned int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long unsigned int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {long long unsigned int, int, int}]'
    mc[{o1, tx, ty}] = { d + 1,ret1,ret2 };
                   ^
0_0_38206673_14074.cpp:241:21: error: converting to 'std::tuple<int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
    mc[{o1, tx, ty}] = { d + 1,ret1,ret2 };
                     ^


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 21:14:48, Gzip enabled