Problem fractions
User chiefoggy
Submission Time 2023-12-27 09:45:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:19:38: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
19 | v.push_back<pair<i, pair<a, b> >;
| ^
fractions.cpp:19:38: note: expected a type, got ‘a’
fractions.cpp:19:38: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
fractions.cpp:19:38: note: expected a type, got ‘b’
fractions.cpp:19:40: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
19 | v.push_back<pair<i, pair<a, b> >;
| ^
fractions.cpp:19:40: note: expected a type, got ‘i’
fractions.cpp:19:40: error: template argument 2 is invalid