Pagini recente » Borderou de evaluare (job #1465949) | Borderou de evaluare (job #2581638) | Borderou de evaluare (job #267452) | Borderou de evaluare (job #1560374) | Borderou de evaluare (job #3003796)
Borderou de evaluare (job #3003796)
Raport evaluator
Compilare:
main.cpp: In function 'int Nru(int, int)':
main.cpp:22:6: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
22 | while (x) Nu++, x&=x-1; return Nu;
| ^~~~~
main.cpp:22:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
22 | while (x) Nu++, x&=x-1; return Nu;
| ^~~~~~
main.cpp: In function 'int Nrr(int)':
main.cpp:27:23: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
27 | return x? Nrr(x&x-1)+1: 0;
| ~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 101ms | 184kb | Time limit exceeded | 0 |
Punctaj total | 0 |