Borderou de evaluare (job #2458506)

Utilizator silvanGavaziuc SIlvan silvan Data 20 septembrie 2019 19:41:38
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'constexpr int fibonacci(int)': main.cpp:9:21: error: call to non-constexpr function '_Tp std::exchange(_Tp&, _Up&&) [with _Tp = int; _Up = int]' n2 = std::exchange(fib, fib + n2); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?