#2263
O firmă are două tipuri de camioane: camioane de tipul 1, care pot transporta câte t1 tone de marfă pe zi, și camioane de tipul 2, care pot transporta câte t2 tone de marfă pe zi.
Știind că firma are n camioane de tipul 1 și m camioane de tipul 2, câte tone de marfă pot transporta camioanele firmei în z zile.
| Problema | Camioane | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64785116 | Utilizator | |
| Fișier | camioane.cpp | Dimensiune | 158 B |
| Data încărcării | 31 Mai 2026, 10:05 | Scor/rezultat | 0 puncte |
camioane.cpp: In function ‘int main()’: camioane.cpp:6:19: warning: right operand of comma operator has no effect [-Wunused-value] 6 | cin>>t1,t2,n,m,z; | ^ camioane.cpp:6:21: warning: right operand of comma operator has no effect [-Wunused-value] 6 | cin>>t1,t2,n,m,z; | ^ camioane.cpp:6:23: warning: right operand of comma operator has no effect [-Wunused-value] 6 | cin>>t1,t2,n,m,z; | ^ camioane.cpp:6:24: warning: right operand of comma operator has no effect [-Wunused-value] 6 | cin>>t1,t2,n,m,z; | ^ camioane.cpp:7:18: warning: ‘n’ is used uninitialized [-Wuninitialized] 7 | cout<<((t1*n)+(m*t2))*z; | ~~~^~~ camioane.cpp:5:14: note: ‘n’ was declared here 5 | int t1,t2,n,m,z; | ^ camioane.cpp:7:24: warning: ‘m’ is used uninitialized [-Wuninitialized] 7 | cout<<((t1*n)+(m*t2))*z; | ~~^~~~ camioane.cpp:5:16: note: ‘m’ was declared here 5 | int t1,t2,n,m,z; | ^ camioane.cpp:7:24: warning: ‘t2’ is used uninitialized [-Wuninitialized] 7 | cout<<((t1*n)+(m*t2))*z; | ~~^~~~ camioane.cpp:5:11: note: ‘t2’ was declared here 5 | int t1,t2,n,m,z; | ^~ camioane.cpp:7:30: warning: ‘z’ is used uninitialized [-Wuninitialized] 7 | cout<<((t1*n)+(m*t2))*z; | ^ camioane.cpp:5:18: note: ‘z’ was declared here 5 | int t1,t2,n,m,z; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.003 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Camioane 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ă.