Borderou de evaluare (job #2464142)

Utilizator ATM_MORISCAATM MORISCA ATM_MORISCA Data 28 septembrie 2019 13:57:40
Problema Fibsum Status done
Runda Romanian Collegiate Programming Contest 2019 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'unsigned int fib(int)': main.cpp:9:26: error: 'sqrt' was not declared in this scope double phi = (1 + sqrt(5)) / 2; ^ main.cpp:10:40: error: 'pow' was not declared in this scope return (unsigned int)(round(pow(phi, n) / sqrt(5))) % 1000000007; ^ main.cpp:10:51: error: 'round' was not declared in this scope return (unsigned int)(round(pow(phi, n) / sqrt(5))) % 1000000007; ^ Non zero exit status: 1

Ceva nu functioneaza?