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_37751143_10668.cpp: In function 'void solve()':
0_0_37751143_10668.cpp:22:14: 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}]'
         a[i] = {w, x, y};
              ^
0_0_37751143_10668.cpp:50:14: error: expected unqualified-id before '[' token
         auto [w1, x1, y1] = a[res];
              ^
0_0_37751143_10668.cpp:51:110: error: 'w1' was not declared in this scope
         cout << min(max({x + y + mx[res][4], x - y + mx[res][3], -x + y + mx[res][2], -x - y + mx[res][1]}), w1) << endl;
                                                                                                              ^


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-25 20:35:26, Gzip enabled