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_37708404_22913.cpp: In function 'void solve()':
0_0_37708404_22913.cpp:46:15: error: expected unqualified-id before '[' token
         auto& [x, y] = q[i];
               ^
0_0_37708404_22913.cpp:46:15: error: expected initializer before '[' token
0_0_37708404_22913.cpp:47:16: error: 'x' was not declared in this scope
         cin >> x >> y;
                ^
0_0_37708404_22913.cpp:47:21: error: 'y' was not declared in this scope
         cin >> x >> y;
                     ^
0_0_37708404_22913.cpp:76:67: error: no match for call to '(std::function<bool(node&)>) (node)'
                 rep(j, 2, 4) { flag |= ask(jie(q[1], q[tag], i, j)); }
                                                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_37708404_22913.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:2142:11: note: candidate is:
     class function<_Res(_ArgTypes...)>
           ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:2434:5: note: _Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = bool; _ArgTypes = {node&}]
     function<_Res(_ArgTypes...)>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:2434:5: note:   no known conversion for argument 1 from 'node' to 'node&'


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 11:44:27, Gzip enabled