Problem lcm
User avner21
Submission Time 2023-04-25 11:10:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp: In function ‘int main()’:
lcm.cpp:123:49: error: class template argument deduction failed:
123 | for (const auto _ : range{0u, num_test_cases}) {
| ^
lcm.cpp:123:49: error: no matching function for call to ‘range(unsigned int, const std::pair<long unsigned int, long unsigned int>&)’
lcm.cpp:55:5: note: candidate: ‘template<class T> range(T, T)-> range<T>’
55 | range(T begin, T end) : begin_{begin}, end_{end} {}
| ^~~~~
lcm.cpp:55:5: note: template argument deduction/substitution failed:
lcm.cpp:123:49: note: deduced conflicting types for parameter ‘T’ (‘unsigned int’ and ‘std::pair<long unsigned int, long unsigned int>’)
123 | for (const auto _ : range{0u, num_test_cases}) {
| ^
lcm.cpp:129:29: error: no match for ‘operator*’ (operand types are ‘const std::pair<long unsigne