Problem fractions
User BoneMeBurner
Submission Time 2024-07-26 17:45:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:27:30: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Fraction>, Fraction>::value_type’ {aka ‘struct Fraction’} has no member named ‘first’
27 | cout << fractions[i].first.a << " " << fractions[i].first.b << endl;
| ^~~~~
fractions.cpp:27:61: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Fraction>, Fraction>::value_type’ {aka ‘struct Fraction’} has no member named ‘first’
27 | cout << fractions[i].first.a << " " << fractions[i].first.b << endl;
| ^~~~~