Pagini recente » Borderou de evaluare (job #1997314) | Borderou de evaluare (job #2370107) | Borderou de evaluare (job #932113) | Borderou de evaluare (job #1156189) | Borderou de evaluare (job #2967128)
Borderou de evaluare (job #2967128)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:16:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
16 | for (i = 0; (1<<i) <= p; ++ i) // Luam toti biti lui p la rand
| ~~~~~~~^~~~
main.cpp:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
18 | if ( ((1<<i) & p) > 0) // Daca bitul i din p este 1 atunci adaugam n^(2^i) la solutie
| ^~
main.cpp:21:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
21 | a=(a * a) % m; // Inmultim a cu a ca sa obtinem n^(2^(i+1))
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | Incorect | 0 |
2 | 0ms | 184kb | Incorect | 0 |
3 | 0ms | 184kb | Incorect | 0 |
4 | 0ms | 184kb | Incorect | 0 |
5 | 0ms | 184kb | Incorect | 0 |
6 | 0ms | 184kb | Incorect | 0 |
7 | 0ms | 184kb | Incorect | 0 |
8 | 0ms | 184kb | Incorect | 0 |
9 | 0ms | 184kb | Incorect | 0 |
10 | 0ms | 184kb | Incorect | 0 |
Punctaj total | 0 |