#461
Timp1
Se dau numerele naturale h m
, reprezentând un ora curentă exprimată în ore şi minute. Să se determine care va fi ora peste x
ore şi y
minute.
Problema | Timp1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50688984 | Utilizator | |
Fișier | timp1.cpp | Dimensiune | 206 B |
Data încărcării | 21 Aprilie 2024, 13:03 | Scor / rezultat | Eroare de compilare |
timp1.cpp: In function 'int main()': timp1.cpp:5:18: error: two or more data types in declaration of 'h1' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:5:21: error: two or more data types in declaration of 'm1' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:5:24: error: two or more data types in declaration of 'x' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:5:26: error: two or more data types in declaration of 'y' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:5:28: error: two or more data types in declaration of 'h2' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:5:31: error: two or more data types in declaration of 'm2' long double int h1,m1,x,y,h2,m2; ^ timp1.cpp:6:6: error: 'h1' was not declared in this scope cin>>h1; ^ timp1.cpp:7:6: error: 'm1' was not declared in this scope cin>>m1; ^ timp1.cpp:8:6: error: 'x' was not declared in this scope cin>>x; ^ timp1.cpp:9:6: error: 'y' was not declared in this scope cin>>y; ^ timp1.cpp:10:1: error: 'm2' was not declared in this scope m2=m1+y+x*60; ^ timp1.cpp:11:1: error: 'h2' was not declared in this scope h2=h1+m2/60; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Timp1 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ă.