Problem fractions
User JerryCodebreaker
Submission Time 2024-03-03 17:36:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:17:5: error: template argument 1 is invalid
17 | cin>>x;
| ^~
fractions.cpp:17:5: error: template argument 2 is invalid
fractions.cpp:17:7: error: conflicting declaration ‘int x’
17 | cin>>x;
| ^
fractions.cpp:15:12: note: previous declaration as ‘long long int x’
15 | long long x;
| ^
fractions.cpp:21:7: error: ‘v’ was not declared in this scope
21 | sort (v.begin(),v.begin(), cmp);
| ^