#55
Se citesc numere de la tastatură până la apariția lui zero. Să se determine minimul celor pozitive.
| Problema | MinimPozitive | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64278387 | Utilizator | |
| Fișier | minimpozitive.cpp | Dimensiune | 418 B |
| Data încărcării | 27 Aprilie 2026, 18:04 | Scor/rezultat | 100 puncte |
minimpozitive.cpp: In function ‘int main()’: minimpozitive.cpp:13:13: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 13 | else | ^~~~ minimpozitive.cpp:16:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 16 | ok=1; | ^~ minimpozitive.cpp:22:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 22 | else | ^~~~ minimpozitive.cpp:24:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 24 | return 0; | ^~~~~~ minimpozitive.cpp:5:17: warning: unused variable ‘x’ [-Wunused-variable] 5 | int n, min, x, ok=0; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MinimPozitive 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ă.