#833
Fiind date vârstele a doi copii afișați care dintre ei este cel mai mare și cu cât.
| Problema | Varste copii | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64324127 | Utilizator | |
| Fișier | varste_copii.cpp | Dimensiune | 307 B |
| Data încărcării | 29 Aprilie 2026, 17:33 | Scor/rezultat | 0 puncte |
varste_copii.cpp: In function ‘int main()’: varste_copii.cpp:8:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 8 | if(a>b) | ^~ varste_copii.cpp:10:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 10 | cout<<"Primul copil este mai mare cu"<<d<<" ani "; | ^~~~ varste_copii.cpp:11:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 11 | if(a<b) | ^~ varste_copii.cpp:13:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 13 | cout<<"Al doilea copil este mai mare cu "<<d<<" ani"; | ^~~~ varste_copii.cpp:14:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 14 | if(a=b) | ~^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Varste copii 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ă.