评测信息

运行ID: 35745
src.cpp: In function 'int main()':
src.cpp:8:11: error: no matching function for call to 'sort(int [3])'
sort(a);
^
In file included from E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /algorithm:62:0,
from E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /mingw32/bits/stdc .h:64,
from src.cpp:1:
E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
src.cpp:8:11: note: candidate expects 2 arguments, 1 provided
sort(a);
^
In file included from E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /algorithm:62:0,
from E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /mingw32/bits/stdc .h:64,
from src.cpp:1:
E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
E:/OpenJudger2/Compilers/mingw/lib/gcc/mingw32/5.1.0/include/c /bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
src.cpp:8:11: note: candidate expects 3 arguments, 1 provided
sort(a);
^