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

Compile Error

fractions.cpp:4:20: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
4 | bool customCompare(const pair &a, const pair &b){
| ^~~~~
fractions.cpp:3:13: error: expected ‘,’ or ‘...’ before ‘<’ token
3 | #define pair<long long, long long> pair
| ^
fractions.cpp:4:26: note: in expansion of macro ‘pair’
4 | bool customCompare(const pair &a, const pair &b){
| ^~~~
fractions.cpp: In function ‘bool customCompare(int)’:
fractions.cpp:5:9: error: ‘a’ was not declared in this scope
5 | return a.second<b.second;
| ^
fractions.cpp:5:18: error: ‘b’ was not declared in this scope
5 | return a.second<b.second;
| ^
fractions.cpp: In function ‘int main()’:
fractions.cpp:10:15: error: template argument 1 is invalid
10 | vector <pair > vect;
| ^<