0_0_38069675_16843.cpp: In function 'void work()':
0_0_38069675_16843.cpp:27:8: error: expected unqualified-id before '[' token
auto [x,idx]=v[i];
^
0_0_38069675_16843.cpp:28:6: error: 'idx' was not declared in this scope
if(idx<last) continue;
^
0_0_38069675_16843.cpp:29:21: error: 'idx' was not declared in this scope
p.push_back({last,idx,x});
^
0_0_38069675_16843.cpp:29:25: error: 'x' was not declared in this scope
p.push_back({last,idx,x});
^
0_0_38069675_16843.cpp:29:27: error: no matching function for call to 'std::vector<std::array<long long int, 3ull> >::push_back(<brace-enclosed initializer list>)'
p.push_back({last,idx,x});
^
0_0_38069675_16843.cpp:29:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_38069675_16843.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::array<long long int, 3ull>; _Alloc = std::allocator<std::array<long long int, 3ull> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 3ull>]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::array<long long int, 3ull>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::array<long long int, 3ull>; _Alloc = std::allocator<std::array<long long int, 3ull> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 3ull>]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::array<long long int, 3ull> >::value_type&& {aka std::array<long long int, 3ull>&&}'
|