#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #31197325 | Utilizator | |
Fișier | timp1.cpp | Dimensiune | 208 B |
Data încărcării | 06 Octombrie 2021, 10:17 | Scor / rezultat | Eroare de compilare |
timp1.cpp:9:2: error: stray '\342' in program cout << (h1 + (m1 + y) / 60 + x) % 24 << ‘ ‘ << (m1 + y) % 60 << ‘\n’; ^ timp1.cpp:9:2: error: stray '\200' in program timp1.cpp:9:2: error: stray '\230' in program timp1.cpp:9:2: error: stray '\342' in program timp1.cpp:9:2: error: stray '\200' in program timp1.cpp:9:2: error: stray '\230' in program timp1.cpp:9:2: error: stray '\342' in program timp1.cpp:9:2: error: stray '\200' in program timp1.cpp:9:2: error: stray '\230' in program timp1.cpp:9:2: error: stray '\' in program timp1.cpp:9:2: error: stray '\342' in program timp1.cpp:9:2: error: stray '\200' in program timp1.cpp:9:2: error: stray '\231' in program timp1.cpp: In function 'int main()': timp1.cpp:9:51: error: expected primary-expression before '<<' token cout << (h1 + (m1 + y) / 60 + x) % 24 << ‘ ‘ << (m1 + y) % 60 << ‘\n’; ^ timp1.cpp:9:75: error: 'n' was not declared in this scope cout << (h1 + (m1 + y) / 60 + x) % 24 << ‘ ‘ << (m1 + y) % 60 << ‘\n’; ^
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ă.