Problem fractions
User jmuzhen
Submission Time 2023-07-23 17:50:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘bool cmp(const F&, const F&)’:
fractions.cpp:13:11: error: ‘int128_t’ does not name a type; did you mean ‘int32_t’?
13 | const int128_t ad = x.a * y.b, bc = x.b * y.a;
| ^~~~~~~~
| int32_t
fractions.cpp:14:12: error: ‘ad’ was not declared in this scope
14 | return ad == bc ? x.i < y.i : ad < bc;
| ^~
fractions.cpp:14:18: error: ‘bc’ was not declared in this scope
14 | return ad == bc ? x.i < y.i : ad < bc;
| ^~