Job 7995

Owner
Andra Dinculescu
Problem
Spell
Source
0.21KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:10:15: error: no matching function for call to 'sort(int [4], int, int)'
prog.cpp:10:15: note: candidates are:
In file included from /usr/include/c++/4.7/algorithm:63:0,
                 from prog.cpp:2:
/usr/include/c++/4.7/bits/stl_algo.h:5463:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
/usr/include/c++/4.7/bits/stl_algo.h:5463:5: note:   template argument deduction/substitution failed:
prog.cpp:10:15: note:   deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
In file included from /usr/include/c++/4.7/algorithm:63:0,
                 from prog.cpp:2:
/usr/include/c++/4.7/bits/stl_algo.h:5499:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
/usr/include/c++/4.7/bits/stl_algo.h:5499:5: note:   template argument deduction/substitution failed:
prog.cpp:10:15: note:   deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
prog.cpp:11:5: error: expected ';' before 's'

Questions?

Sponsors Gold