Borderou de evaluare (job #1817452)

Utilizator GeoeyMexicanuBadita George GeoeyMexicanu Data 27 noiembrie 2016 20:43:48
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int f(int, int)’: user.cpp:7:18: error: ‘int f(int, int)’ redeclared as different kind of symbol int f(int x,int n) ^ user.cpp:4:10: error: previous declaration of ‘std::ifstream f’ ifstream f("lgput.in"); ^ user.cpp:10:28: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int, int)’ return f(1/x,(-1)*n); ^ user.cpp:19:25: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int, int)’ return f(x*x,n/2); ^ user.cpp:22:29: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int, int)’ return f(x*x,(n-1)/2); ^ user.cpp: In function ‘int main()’: user.cpp:27:13: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (int&, int&)’ g<<f(x,n); ^ user.cpp: In function ‘int f(int, int)’: user.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?