Borderou de evaluare (job #2824029)

Utilizator iustincmbMaican Iustin iustincmb Data 30 decembrie 2021 17:48:36
Problema Modulo Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:23:8: warning: too many arguments for format [-Wformat-extra-args] 23 | scanf("%d %d", &n, &p, &m); | ^~~~~~~ main.cpp:25:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 25 | for (i = 0; (1<<i) <= p; ++ i) // Luam toti biti lui p la rand | ~~~~~~~^~~~ main.cpp:27:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | if ( ((1<<i) & p) > 0) // Daca bitul i din p este 1 atunci adaugam n^(2^i) la solutie | ^~ main.cpp:30:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 30 | a=(a * a) % m; // Inmultim a cu a ca sa obtinem n^(2^(i+1)) | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms200kbKilled by Signal 80
22ms184kbKilled by Signal 80
32ms184kbKilled by Signal 80
42ms184kbKilled by Signal 80
52ms184kbKilled by Signal 80
62ms184kbKilled by Signal 80
72ms184kbKilled by Signal 80
82ms184kbKilled by Signal 80
92ms184kbKilled by Signal 80
102ms184kbKilled by Signal 80
Punctaj total0

Ceva nu functioneaza?