Borderou de evaluare (job #1344993)

Utilizator Balescu_OvidiuBalescu Ovidiu-Gheorghe Balescu_Ovidiu Data 17 februarie 2015 10:14:38
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 ‘long unsigned int powtt()’: user.cpp:13:21: error: too many arguments to function ‘long unsigned int powtt()’ return powtt(a,b/2)*powtt(a,b/2); ^ user.cpp:4:22: note: declared here inline unsigned long powtt(){ ^ user.cpp:13:34: error: too many arguments to function ‘long unsigned int powtt()’ return powtt(a,b/2)*powtt(a,b/2); ^ user.cpp:4:22: note: declared here inline unsigned long powtt(){ ^ user.cpp:14:20: error: too many arguments to function ‘long unsigned int powtt()’ return powtt(a,b-1)*a; ^ user.cpp:4:22: note: declared here inline unsigned long powtt(){ ^ user.cpp: In function ‘int main()’: user.cpp:21:25: error: expected ‘)’ before ‘;’ token fprintf(g,"%ld",powtt(); ^ user.cpp:18:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld %ld",&a,&b); ^

Ceva nu functioneaza?