Problem | fractions |
---|---|
User | LimCheeHann |
Submission Time | 2025-03-12 13:38:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fractions.cpp: In function ‘int main()’:
fractions.cpp:12:6: error: ‘i’ was not declared in this scope
12 | for(i=0;i<N;i++){
| ^
fractions.cpp:13:7: error: ‘j’ was not declared in this scope
13 | for(j=0;j<2;j++){
| ^
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_b