Borderou de evaluare (job #2005543)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 27 iulie 2017 14:01:24
Problema Puteri4 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, int)’: user.cpp:38:38: error: ‘long long int f(long long int, int)’ redeclared as different kind of symbol long long f(long long x, int e = eMax) ^ user.cpp:4:10: error: previous declaration of ‘std::ifstream f’ ifstream f("puteri4.in"); ^ user.cpp:50:26: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&, int&)’ ret += r - f(r, k); ^ user.cpp: In function ‘int main()’: user.cpp:61:15: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int&)’ g<<f(x)-f(y-1)<<'\n'; ^ user.cpp:61:22: error: no match for call to ‘(std::ifstream {aka std::basic_ifstream<char>}) (long long int)’ g<<f(x)-f(y-1)<<'\n'; ^

Ceva nu functioneaza?