Problem fractions
User YSH2020
Submission Time 2023-07-25 21:48:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘bool cust(std::pair<long long int, long long int>, std::pair<long long int, long long int>)’:
fractions.cpp:5:32: error: request for member ‘first’ in ‘a.std::pair<long long int, long long int>::first’, which is of non-class type ‘long long int’
5 | long double tmp1 = a.first.first;
| ^~~~~
fractions.cpp:6:52: error: request for member ‘second’ in ‘a.std::pair<long long int, long long int>::first’, which is of non-class type ‘long long int’
6 | cout << setprecision(100); tmp1 = tmp1/a.first.second;
| ^~~~~~
fractions.cpp:7:32: error: request for member ‘first’ in ‘b.std::pair<long long int, long long int>::first’, which is of non-class type ‘long long int’
7 | long double tmp2 = b.first.first;
| ^~~~~
fractions.cpp:8:53: error: request for m