Problem fractions
User Elnathan
Submission Time 2023-12-09 15:13:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘bool compare(const std::pair<long double, std::pair<long double, long double> >&, const std::pair<long double, std::pair<long double, long double> >&)’:
fractions.cpp:8:2: error: expected primary-expression before ‘}’ token
8 | }
| ^
fractions.cpp:7:9: error: expected ‘;’ before ‘}’ token
7 | return
| ^
| ;
8 | }
| ~
fractions.cpp: In function ‘int main()’:
fractions.cpp:16:2: error: ‘multimap’ was not declared in this scope
16 | multimap<long double, pair<long double,long double>> arr;
| ^~~~~~~~
fractions.cpp:3:1: note: ‘std::multimap’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
2 | #include <iostream>
+++ |+#include <map>
3 | using namespace std;
fractions.cpp:16:11: error: expected primary-expression before ‘long’
16 | multimap&l