Problem fractions
User dieunq1309
Submission Time 2023-07-10 11:53:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:26:15: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘begin’
26 | sort(frac.begin(), frac.end(), paircomp)
| ^~~~~
fractions.cpp:26:29: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘end’
26 | sort(frac.begin(), frac.end(), paircomp)
| ^~~
fractions.cpp:26:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
26 | sort(frac.begin(), frac.end(), paircomp)
| ^~~~
| qsort
fractions.cpp:27:27: error: ‘i’ was not declared in this scope
27 | for (long long i = 0; i < N; i++)
| ^