Pagini recente » Borderou de evaluare (job #2669171) | Borderou de evaluare (job #1390838) | Borderou de evaluare (job #602690) | Borderou de evaluare (job #2278106) | Borderou de evaluare (job #2906804)
Borderou de evaluare (job #2906804)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:29: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
19 | for(int i = 0; (1 << i) <= p; i++)
| ~~~~~~~~~^~~~
main.cpp:21:16: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context]
21 | if(((1 << i) && p) > 0)
| ~~~^~~~~
main.cpp:21:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
21 | if(((1 << i) && p) > 0)
| ^~
main.cpp:24:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
24 | a = (a * a) % m;
| ^
main.cpp:13:21: warning: unused variable 'i' [-Wunused-variable]
13 | unsigned int n, i, p;
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 274kb | Incorect | 0 |
2 | 11ms | 188kb | Incorect | 0 |
3 | 1ms | 184kb | Incorect | 0 |
4 | 1ms | 184kb | Incorect | 0 |
5 | 1ms | 184kb | Incorect | 0 |
6 | 1ms | 184kb | Incorect | 0 |
7 | 1ms | 184kb | Incorect | 0 |
8 | 1ms | 184kb | Incorect | 0 |
9 | 3ms | 184kb | Incorect | 0 |
10 | 1ms | 184kb | Incorect | 0 |
Punctaj total | 0 |