Borderou de evaluare (job #3162479)

Utilizator Andrei_Gagea08Andrei Gagea Andrei_Gagea08 Data 29 octombrie 2023 12:33:55
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:16:28: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 16 | for (i = 0; (1<<i) <= p;i++) | ~~~~~~~^~~~ main.cpp:18:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 18 | if ( ((1<<i) & p) > 0) | ^~ main.cpp:21:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 21 | a=(a * a) % m; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
60ms303kbOK10
70ms303kbOK10
80ms303kbOK10
90ms303kbOK10
100ms303kbOK10
Punctaj total100

Ceva nu functioneaza?