Problem fractions
User LimCheeHann
Submission Time 2025-03-12 13:40:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:17:52: error: too few arguments to function ‘bool fraction_comparison(int*, int*)’
17 | stable_sort(V.begin(),V.end(),fraction_comparison());
| ^
fractions.cpp:5:6: note: declared here
5 | bool fraction_comparison(int* A, int*B){
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from fractions.cpp:2:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int []; _Alloc = std::allocator<int []>]’:
/usr/include/c++/9/bits/stl_vector.h:484:7: required from here
/usr/include/c++/9/bits/stl_vector.h:333:35: error: invalid us