Borderou de evaluare (job #2335891)

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

Raport evaluator

Compilare: main.cpp: In function 'long long int power(long long int, long 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
82ms131kbOK10
92ms131kbIncorect0
102ms131kbIncorect0
Punctaj total10

Ceva nu functioneaza?