运行 ID: 83945

Main.cc: In function ‘int main()’:
Main.cc:7:26: error: no matching function for call to ‘reverse(, )’
     reverse(a.begin,a.end);
                          ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_algo.h:1180:5: note: candidate: template void std::reverse(_BIter, _BIter)
     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
     ^~~~~~~
/usr/include/c++/7/bits/stl_algo.h:1180:5: note:   template argument deduction/substitution failed:
Main.cc:7:26: note:   couldn't deduce template parameter ‘_BIter’
     reverse(a.begin,a.end);
                          ^
Main.cc:8:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i