Borderou de evaluare (job #3256408)

Utilizator Silviu643Dumitrescu Silviu Florian Silviu643 Data 14 noiembrie 2024 15:53:01
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int suma(int)': main.cpp:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 17 | for(int i=x;i>=1;i-=(i&(-i))) | ^~~ main.cpp:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 19 | return sum; | ^~~~~~ main.cpp:16:15: warning: unused variable 'i' [-Wunused-variable] 16 | int sum=0,i; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
114ms679kbCorect!20
214ms679kbCorect!20
314ms679kbCorect!20
413ms679kbCorect!20
514ms659kbCorect!20
Punctaj total100

Ceva nu functioneaza?