Submission #75879
ソースコード
ステータス
コンパイルメッセージ
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:46,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:41,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = int; _Args = {long long int&, int&}; _Tp = int]’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {long long int&, int&}; _Tp = int; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<int>]’
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/deque.tcc:168:30: required from ‘std::deque<_Tp, _Alloc>::reference std::deque<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, int&}; _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::reference = int&]’
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:263:56: required from ‘decltype(auto) std::queue<_Tp, _Sequence>::emplace(_Args&& ...) [with _Args = {long long int&, int&}; _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
./Main.cpp:36:41: required from here
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:136:4: error: new initializer expression list treated as compound expression [-fpermissive]
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
セット
テストケース