#460
Se dau 2
numere naturale h m
, reprezentând un ora curentă exprimată în ore şi minute. Să se determine care va fi ora peste x
minute.
Problema | Timp | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58348234 | Utilizator | |
Fișier | timp.cpp | Dimensiune | 152 B |
Data încărcării | 28 Mai 2025, 15:54 | Scor / rezultat | Eroare de compilare |
timp.cpp:1:1: error: 'sing' does not name a type sing namespace std ^ timp.cpp: In function 'int main()': timp.cpp:5:5: error: 'cin' was not declared in this scope cin>>h>>m>>x; ^ timp.cpp:5:10: error: 'h' was not declared in this scope cin>>h>>m>>x; ^ timp.cpp:5:13: error: 'm' was not declared in this scope cin>>h>>m>>x; ^ timp.cpp:5:16: error: 'x' was not declared in this scope cin>>h>>m>>x; ^ timp.cpp:6:5: error: 'ml' was not declared in this scope ml=m+x; ^ timp.cpp:7:5: error: 'hl' was not declared in this scope hl=h+ml/60; ^ timp.cpp:10:5: error: 'cout' was not declared in this scope cout<<hl" "<<ml; ^ timp.cpp:10:13: error: expected ';' before string constant cout<<hl" "<<ml; ^ timp.cpp:10:20: error: expected '}' at end of input cout<<hl" "<<ml; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Timp 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ă.