0_0_37848120_1991.cpp: In function 'void solve()':
0_0_37848120_1991.cpp:50:17: error: 'class std::queue<std::pair<int, int> >' has no member named 'clear'
fo(i,1,n) e[i].clear();
^
0_0_37848120_1991.cpp:59:31: error: 'class std::queue<std::pair<int, int> >' has no member named 'push_back'
e[abs((p[j]-p[i])*(j-i))].push_back({i, j});
^
0_0_37848120_1991.cpp:62:35: error: 'class std::queue<std::pair<int, int> >' has no member named 'push_back'
e[abs((pos[j]-pos[i])*(j-i))].push_back({pos[i], pos[j]});
^
0_0_37848120_1991.cpp:68:20: error: no matching function for call to 'begin(std::queue<std::pair<int, int> >&)'
for(auto it : e[i]){
^
0_0_37848120_1991.cpp:68:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note: template<class _Tp> const _Tp* std::begin(const std::valarray<_Tp>&)
begin(const valarray<_Tp>& __va)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: 'std::queue<std::pair<int, int> >' is not derived from 'const std::valarray<_Tp>'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1196:5: note: template<class _Tp> _Tp* std::begin(std::valarray<_Tp>&)
begin(valarray<_Tp>& __va)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1196:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: 'std::queue<std::pair<int, int> >' is not derived from 'std::valarray<_Tp>'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
begin(initializer_list<_Tp> __ils) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: 'std::queue<std::pair<int, int> >' is not derived from 'std::initializer_list<_Tp>'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: mismatched types '_Tp [_Nm]' and 'std::queue<std::pair<int, int> >'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
begin(const _Container& __cont) -> decltype(__cont.begin())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) [with _Container = std::queue<std::pair<int, int> >]':
0_0_37848120_1991.cpp:68:20: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: error: 'const class std::queue<std::pair<int, int> >' has no member named 'begin'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
begin(_Container& __cont) -> decltype(__cont.begin())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.begin()) std::begin(_Container&) [with _Container = std::queue<std::pair<int, int> >]':
0_0_37848120_1991.cpp:68:20: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: error: 'class std::queue<std::pair<int, int> >' has no member named 'begin'
0_0_37848120_1991.cpp:68:20: error: no matching function for call to 'end(std::queue<std::pair<int, int> >&)'
for(auto it : e[i]){
^
0_0_37848120_1991.cpp:68:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
end(const valarray<_Tp>& __va)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: 'std::queue<std::pair<int, int> >' is not derived from 'const std::valarray<_Tp>'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
from 0_0_37848120_1991.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1216:5: note: template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
end(valarray<_Tp>& __va)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1216:5: note: template argument deduction/substitution failed:
0_0_37848120_1991.cpp:68:20: note: 'std::queue<std::pair<int, int> >' is not derived from 'std::valarray<_Tp>'
for(auto it : e[i]){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38
|