Borderou de evaluare (job #2335881)

Utilizator ewaldBerla Ewald ewald Data 4 februarie 2019 16:45:53
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int power(int, int)': main.cpp:11:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(y==1) ^~ main.cpp:13:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(y%2==0) ^~ main.cpp:13:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] main.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return x*power(x*x,y/2); ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbIncorect0
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
Punctaj total0

Ceva nu functioneaza?