#3741
Gigel are n bile și k cutii. În câte moduri poate plasa Gigel bilele în cutii, știind că pot rămâne și cutii goale.
| Problema | StarsAndBars1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64790257 | Utilizator | |
| Fișier | starsandbars1.cpp | Dimensiune | 4.10 KB |
| Data încărcării | 31 Mai 2026, 23:22 | Scor/rezultat | Eroare de compilare |
starsandbars1.cpp:154:61: error: expected ‘}’ at end of input 154 | for (i = 0; i < stanga.lungime; i++) stanga.tablou_c | ^ starsandbars1.cpp:11:1: note: to match this ‘{’ 11 | { | ^ starsandbars1.cpp: In function ‘NumarMare& operator*=(NumarMare&, const NumarMare&)’: starsandbars1.cpp:154:53: error: ‘class NumarMare’ has no member named ‘tablou_c’; did you mean ‘tablou_cifre’? 154 | for (i = 0; i < stanga.lungime; i++) stanga.tablou_c | ^~~~~~~~ | tablou_cifre starsandbars1.cpp:154:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 154 | for (i = 0; i < stanga.lungime; i++) stanga.tablou_c | ^~~ starsandbars1.cpp:154:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 154 | for (i = 0; i < stanga.lungime; i++) stanga.tablou_c | ^ starsandbars1.cpp:154:61: error: expected ‘}’ at end of input starsandbars1.cpp:131:5: note: to match this ‘{’ 131 | { | ^ starsandbars1.cpp: At global scope: starsandbars1.cpp:154:61: error: expected unqualified-id at end of input 154 | for (i = 0; i < stanga.lungime; i++) stanga.tablou_c | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema StarsAndBars1 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ă.