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_38507116_1581.cpp: In lambda function:
0_0_38507116_1581.cpp:90:18: error: expected unqualified-id before '[' token
             auto [a, b] = q.front();
                  ^
0_0_38507116_1581.cpp:93:26: error: 'a' was not declared in this scope
                 int nx = a + dx[i], ny = b + dy[i];
                          ^
0_0_38507116_1581.cpp:94:41: error: 'ny' was not declared in this scope
                 if(nx < 0 || nx >= n || ny < 0 || ny >= m) continue;
                                         ^
0_0_38507116_1581.cpp:96:30: error: 'b' was not declared in this scope
                 if(!check(a, b, nx, ny, x)) continue;
                              ^
0_0_38507116_1581.cpp:96:37: error: 'ny' was not declared in this scope
                 if(!check(a, b, nx, ny, x)) continue;
                                     ^
0_0_38507116_1581.cpp:98:27: error: 'ny' was not declared in this scope
                 if(st[nx][ny]) continue;
                           ^
0_0_38507116_1581.cpp:99:24: error: 'ny' was not declared in this scope
                 st[nx][ny] = 1;
                        ^
0_0_38507116_1581.cpp:100:32: error: no matching function for call to 'std::queue<std::pair<long long int, long long int> >::push(<brace-enclosed initializer list>)'
                 q.push({nx, ny});
                                ^
0_0_38507116_1581.cpp:100:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_38507116_1581.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::deque<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<long long int, long long int>]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:215:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<long long int, long long int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::deque<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<long long int, long long int>]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:220:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<long long int, long long int> >::value_type&& {aka std::pair<long long int, long long int>&&}'


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-23 06:31:31, Gzip enabled