Borderou de evaluare (job #1279105)

Utilizator Bursucelthe coppice Bursucel Data 29 noiembrie 2014 19:41:59
Problema Puteri3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘long long int f(long long int, long long int)’: user.cpp:8:37: error: ‘long long int f(long long int, long long int)’ redeclared as different kind of symbol long long f(long long a, long long b) ^ user.cpp:4:10: error: previous declaration of ‘std::ifstream f’ ifstream f("puteri3.in"); ^ user.cpp:12:19: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&, long long int)’ return (f(a,b/2)%mod)*(f(a,b/2)%mod)%mod ; ^ user.cpp:12:34: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&, long long int)’ return (f(a,b/2)%mod)*(f(a,b/2)%mod)%mod ; ^ user.cpp:14:29: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&, long long int)’ return ((f(a,b/2)%mod)*(a%mod)%mod)*(f(a,b/2)%mod)%mod; ^ user.cpp:14:57: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&, long long int)’ return ((f(a,b/2)%mod)*(a%mod)%mod)*(f(a,b/2)%mod)%mod; ^ user.cpp: In function ‘int main()’: user.cpp:22:11: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long int&, long int&)’ s=s+f(n,k); ^ user.cpp:24:13: error: expected ‘}’ at end of input return 0; ^ user.cpp: In function ‘long long int f(long long int, long long int)’: user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?