Borderou de evaluare (job #3334746)

Utilizator FistfullOfDollar059Andrei Marin Popa FistfullOfDollar059 Data 19 ianuarie 2026 17:33:58
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:20:28: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 20 | for (i = 0; (1<<i) <= p; ++ i) | ~~~~~~~^~~~ main.cpp:22:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 22 | if ( ((1<<i) & p) > 0) | ^~ main.cpp:25:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 25 | a=(a * a) % m; | ^ main.cpp:12:11: warning: unused variable 'n_max' [-Wunused-variable] 12 | const int n_max = 10001; | ^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
60ms303kbOK10
70ms303kbOK10
80ms303kbOK10
90ms303kbOK10
100ms303kbOK10
Punctaj total100

Ceva nu functioneaza?