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

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:20:29: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Fraction>, Fraction>::value_type’ {aka ‘struct Fraction’} has no member named ‘first’
20 | cin >> fractions[i].first.a >> fractions[i].first.b;
| ^~~~~
fractions.cpp:20:53: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Fraction>, Fraction>::value_type’ {aka ‘struct Fraction’} has no member named ‘first’
20 | cin >> fractions[i].first.a >> fractions[i].first.b;
| ^~~~~
fractions.cpp:21:22: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Fraction>, Fraction>::value_type’ {aka ‘struct Fraction’} has no member named ‘second’
21 | fractions[i].second = i;
| ^~~~~~
fractions.cpp:27:30: error: ‘__gnu_cxx::__alloc_traits<std::allocator<F