#460
Timp
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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #875217 | Utilizator | |
Fișier | timp.cpp | Dimensiune | 354 B |
Data încărcării | 12 Octombrie 2015, 19:51 | Scor / rezultat | Eroare de compilare |
timp.cpp: In function 'int main()': timp.cpp:7:7: error: 'j' was not declared in this scope {if(x+j)<60; ^ timp.cpp:7:9: error: expected primary-expression before '<' token {if(x+j)<60; ^ timp.cpp:8:17: error: 'j' was not declared in this scope cout<<h<<" "<<x+j; ^ timp.cpp:9:1: error: expected '}' before 'else' else ^ timp.cpp:10:5: error: 'j' was not declared in this scope a=x+j-60; ^ timp.cpp:11:8: error: 'j' was not declared in this scope h=h+(x+j)-a; ^ timp.cpp: At global scope: timp.cpp:14:1: error: expected unqualified-id before 'else' else ^ timp.cpp:16:1: error: 'h' does not name a type h=(x+h)-b; ^ timp.cpp:17:1: error: 'm' does not name a type m=m+b; ^ timp.cpp:18:1: error: 'cout' does not name a type cout<<h<<" "<<m;} ^ timp.cpp:18:17: error: expected declaration before '}' token cout<<h<<" "<<m;} ^
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ă.