#2299
Se dau n numere naturale. Calculați media lor geometrică.
| Problema | media_geometrica | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #27163718 | Utilizator | |
| Fișier | media_geometrica.c | Dimensiune | 339 B |
| Data încărcării | 12 Ianuarie 2021, 16:23 | Scor/rezultat | 0 puncte |
media_geometrica.c: In function 'main': media_geometrica.c:19:2: warning: format '%i' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=] printf("%i", rezult); ^ media_geometrica.c:8:8: warning: unused variable 'putere' [-Wunused-variable] float putere, rezult=1; ^ media_geometrica.c:10:7: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ media_geometrica.c:12:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &v[i]); ^ media_geometrica.c:22:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Exited with error status 1 | 20 | 0 | Exemplu | |
| 2 | 0 secunde | Exited with error status 1 | 30 | 0 | ||
| 3 | 0 secunde | Exited with error status 1 | 9 | 0 | ||
| 4 | 0 secunde | Exited with error status 1 | 20 | 0 | ||
| 5 | 0 secunde | Exited with error status 1 | 1 | 0 | ||
| 6 | 0 secunde | Exited with error status 10 | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema media_geometrica face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.