#3741
StarsAndBars1
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 | #49757156 | Utilizator | |
Fișier | starsandbars1.cpp | Dimensiune | 2.23 KB |
Data încărcării | 14 Martie 2024, 08:52 | Scor / rezultat | Eroare de compilare |
starsandbars1.cpp: In function 'std::vector<short int> operator*(std::vector<short int>, int)': starsandbars1.cpp:15:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<nr.size();i++) ^ starsandbars1.cpp: In function 'std::vector<short int> operator+(std::vector<short int>, std::vector<short int>)': starsandbars1.cpp:33:5: error: expected ',' or ';' before 'while' while(i<a.size() && i<b.size()) ^ starsandbars1.cpp:32:9: warning: unused variable 'i' [-Wunused-variable] int i=0 ^ starsandbars1.cpp:37:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ starsandbars1.cpp: In function 'std::vector<short int> operator*(std::vector<short int>, std::vector<short int>)': starsandbars1.cpp:44:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<b.size();i++) ^ starsandbars1.cpp:52:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(over && j<a.size()) ^ starsandbars1.cpp:68:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<a.size();i++) ^ starsandbars1.cpp:76:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(over && j<b.size()) ^ starsandbars1.cpp: In function 'std::vector<short int> comb(int, int)': starsandbars1.cpp:122:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^
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ă.