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

Compile Error

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