0_0_38069665_13149.cpp: In function 'void work()':
0_0_38069665_13149.cpp:27:8: error: expected unqualified-id before '[' token
auto [x,idx]=v[i];
^
0_0_38069665_13149.cpp:28:6: error: 'idx' was not declared in this scope
if(idx<last) continue;
^
0_0_38069665_13149.cpp:29:21: error: 'idx' was not declared in this scope
p.push_back({last,idx,x});
^
0_0_38069665_13149.cpp:29:25: error: 'x' was not declared in this scope
p.push_back({last,idx,x});
^
0_0_38069665_13149.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_38069665_13149.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_38069665_13149.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>&&}'
0_0_38069665_13149.cpp:33:11: error: expected unqualified-id before '[' token
for(auto [l,r,x]:p)
^
0_0_38069665_13149.cpp:33:11: error: expected ';' before '[' token
0_0_38069665_13149.cpp:33:12: error: 'l' was not declared in this scope
for(auto [l,r,x]:p)
^
0_0_38069665_13149.cpp:33:14: error: 'r' was not declared in this scope
for(auto [l,r,x]:p)
^
0_0_38069665_13149.cpp:33:16: error: 'x' was not declared in this scope
for(auto [l,r,x]:p)
^
0_0_38069665_13149.cpp: In lambda function:
0_0_38069665_13149.cpp:33:18: error: expected '{' before ':' token
for(auto [l,r,x]:p)
^
0_0_38069665_13149.cpp: In function 'void work()':
0_0_38069665_13149.cpp:33:18: error: expected ';' before ':' token
0_0_38069665_13149.cpp:33:18: error: expected primary-expression before ':' token
0_0_38069665_13149.cpp:33:18: error: expected ')' before ':' token
0_0_38069665_13149.cpp:33:18: error: expected primary-expression before ':' token
|