Problem fractions
User itsLQ
Submission Time 2023-09-23 12:30:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp: In function ‘int main()’:
fractions.cpp:16:16: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
16 | vector<data> fracs;
| ^
fractions.cpp:16:16: note: expected a type, got ‘std::data’
fractions.cpp:16:16: error: template argument 2 is invalid
fractions.cpp:20:15: error: request for member ‘push_back’ in ‘fracs’, which is of non-class type ‘int’
20 | fracs.push_back(frac);
| ^~~~~~~~~
fractions.cpp:22:16: error: request for member ‘begin’ in ‘fracs’, which is of non-class type ‘int’
22 | sort(fracs.begin(), fracs.end(), comp);
| ^~~~~
fractions.cpp:22:31: error: request for member ‘end’ in ‘fracs’, which is of non-class type ‘int’
22 | sort(fracs.begin(), fracs.end(), comp);
| ^~~
fractions.cpp:23:16: error: ‘