Borderou de evaluare (job #1009429)

Utilizator The_DisturbedBungiu Alexandru The_Disturbed Data 13 octombrie 2013 03:20:27
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int hash(long long int)’: user.cpp:13:28: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’ return(x*((sqrt(5)+1)/2))%666013; ^ user.cpp:12:8: warning: unused variable ‘f’ [-Wunused-variable] float f=(sqrt(5) +1) /2; ^ user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?