#455
Calendar1
Se citesc 3
numere naturale z1 l1 a1
, reprezentând o dată calendaristică corectă, în format zi luna an
. Să se afişeze data zilei următoare.
Problema | Calendar1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54478315 | Utilizator | |
Fișier | calendar1.cpp | Dimensiune | 2.85 KB |
Data încărcării | 29 Noiembrie 2024, 15:33 | Scor / rezultat | Eroare de compilare |
calendar1.cpp: In function 'int main()': calendar1.cpp:6:5: error: 'cin' was not declared in this scope cin>>z1>>l1>>a1; ^ calendar1.cpp:13:17: error: 'cout' was not declared in this scope cout<<z1+1<<" "<<l1<<" "<<a1; ^ calendar1.cpp:21:25: error: 'cout' was not declared in this scope cout<<z1+1<<" "<<l1<<" "<<a1; ^ calendar1.cpp:27:29: error: 'cout' was not declared in this scope cout<<z1+1<<" "<<l1<<" "<<a1; ^ calendar1.cpp:33:33: error: 'cout' was not declared in this scope cout<<z1+1<<" "<<l1<<" "<<a1; ^ calendar1.cpp:39:37: error: 'cout' was not declared in this scope cout<<"1 1"<<a1+1; ^ calendar1.cpp:43:92: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(l1==1 || l1==3 || l1==5 || l1==7 || l1==8 || l1==10 && z1==31) ^ calendar1.cpp:45:42: error: 'cout' was not declared in this scope cout<<"1"<<" "<<l1+1<<" "<<a1; ^ calendar1.cpp:49:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(l1==4 || l1==6 || l1==9 || l1==11 && z1==30) ^ calendar1.cpp:51:45: error: 'cout' was not declared in this scope cout<<"1"<<" "<<l1+1<<" "<<a1; ^ calendar1.cpp:57:49: error: 'cout' was not declared in this scope cout<<"1"<<" "<<l1+1<<" "<<a1; ^ calendar1.cpp:63:53: error: 'cout' was not declared in this scope cout<<"1"<<" "<<l1+1<<" "<<a1; ^ calendar1.cpp:77:13: error: expected '}' at end of input return 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Calendar1 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ă.