Submission #00020
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:34:39: error: no match for ‘operator=’ (operand types are ‘std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > > >’ and ‘std::vector<std::pair<int, int> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >’})
itr=tele[m[nx][ny]].begin();
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:67,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/specfun.h:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cmath:1892,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator.h:101:11: note: candidate: ‘constexpr std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > > >& std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > > >::operator=(const std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > > >&)’
class reverse_iterator
^~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator.h:101:11: note: no known conversion for argument 1 from ‘std::vector<std::pair<int, int> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >’} to ‘const std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > > >&’
セット
テストケース