Author
anonymous
over 4 years ago
Language
C++
Compiler
gcc 4.4.7
Options
Warnings
Don't Use Boost
Compiler Default
Raw compiler options
-std=gnu++0x
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -W -std=gnu++0x
In file included from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/ios:41,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/istream:40,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/sstream:39,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/complex:47,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/ccomplex:42,
from /opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/x86_64-unknown-linux-gnu/bits/stdc++.h:51,
from prog.cc:1:
/opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h: In member function 'std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = const std::pair<unsigned int, long unsigned int>, _T2 = std::pair<int, int>]':
/opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:314: instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, _Args&& ...) [with _Args = const std::pair<const std::pair<unsigned int, long unsigned int>, std::pair<int, int> >&, _Tp = std::pair<const std::pair<unsigned int, long unsigned int>, std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<unsigned int, long unsigned int>, std::pair<int, int> > >]'
/opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:741: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::pair<const std::pair<unsigned int, long unsigned int>, std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<unsigned int, long unsigned int>, std::pair<int, int> > >]'
prog.cc:13: instantiated from here
/opt/wandbox/gcc-4.4.7/lib/gcc/x86_64-unknown-linux-gnu/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:119: error: passing 'const std::pair<unsigned int, long unsigned int>' as 'this' argument of 'std::pair<unsigned int, long unsigned int>& std::pair<unsigned int, long unsigned int>::operator=(const std::pair<unsigned int, long unsigned int>&)' discards qualifiers
Exit Code:
1