Borderou de evaluare (job #2906807)

Utilizator Tony2003Tony Tamas Tony2003 Data 27 mai 2022 15:22:12
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:21:29: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 21 | for(int i = 0; (1 << i) <= p; i++) | ~~~~~~~~~^~~~ main.cpp:23:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 23 | if(((1 << i) & p) > 0) | ^~ main.cpp:26:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 26 | a = (a * a) % m; | ^ main.cpp:15:21: warning: unused variable 'i' [-Wunused-variable] 15 | unsigned int n, i, p; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK10
21ms184kbOK10
31ms184kbOK10
41ms184kbOK10
51ms184kbOK10
61ms184kbOK10
71ms184kbOK10
81ms184kbOK10
91ms184kbOK10
102ms212kbOK10
Punctaj total100

Ceva nu functioneaza?