#816
Determinați câte sticle de x litri cu apă trebuie deschise pentru a umple un vas de y litri.
| Problema | Sticle | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64909259 | Utilizator | |
| Fișier | sticle.cpp | Dimensiune | 156 B |
| Data încărcării | 11 Iunie 2026, 18:00 | Scor/rezultat | 0 puncte |
sticle.cpp: In function ‘int main()’: sticle.cpp:8:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 8 | if(y%x != 0) | ^~ sticle.cpp:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 11 | return 0; | ^~~~~~ sticle.cpp:7:7: warning: ‘y’ is used uninitialized [-Wuninitialized] 7 | n = y/x; | ~~^~~~~ sticle.cpp:6:11: note: ‘y’ was declared here 6 | int x,y,n; | ^ sticle.cpp:7:7: warning: ‘x’ is used uninitialized [-Wuninitialized] 7 | n = y/x; | ~~^~~~~ sticle.cpp:6:9: note: ‘x’ was declared here 6 | int x,y,n; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sticle 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ă.