Problem fibo
User ethantanaki
Submission Time 2026-07-25 10:56:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:12:21: error: cannot deduce template arguments of ‘std::less<_Tp>’, as it has no viable deduction guides
12 | std::less(f_a, f_b) += std::greater(f_a, f_b);
| ^
fibo.cpp:12:21: error: expression list treated as compound expression in functional cast [-fpermissive]
fibo.cpp:12:47: error: cannot deduce template arguments of ‘std::greater<_Tp>’, as it has no viable deduction guides
12 | std::less(f_a, f_b) += std::greater(f_a, f_b);
| ^
fibo.cpp:12:47: error: expression list treated as compound expression in functional cast [-fpermissive]
fibo.cpp:13:32: error: cannot deduce template arguments of ‘std::greater<_Tp>’, as it has no viable deduction guides
13 | cout << std::greater(f_a, f_b) << "\n";
| ^
fibo.cpp:13:32: error: expression list treated as c