#1875
Se consideră un șir de cifre. Să se determine lungimea maximală a unei secvențe din șir formată din cifre egale.
| Problema | platou1 | Operații I/O |
platou1.in/platou1.out
|
|---|---|---|---|
| Limita timp | 0.01 secunde | Limita memorie |
Total: 0.5 MB
/
Stivă 0.5 MB
|
| Id soluție | #64453493 | Utilizator | |
| Fișier | platou1.cpp | Dimensiune | 497 B |
| Data încărcării | 07 Mai 2026, 18:08 | Scor/rezultat | Eroare de compilare |
platou1.cpp:3:1: error: ‘ifstreamv’ does not name a type 3 | ifstreamv fin("platou.in"); | ^~~~~~~~~ platou1.cpp: In function ‘int main()’: platou1.cpp:8:1: error: ‘fin’ was not declared in this scope 8 | fin>>x1; | ^~~ platou1.cpp:12:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 12 | if(x1=x2) l++; | ~~^~~ platou1.cpp:16:17: warning: statement has no effect [-Wunused-value] 16 | lmax+l; | ~~~~^~ platou1.cpp: At global scope: platou1.cpp:30:2: error: ‘https’ does not name a type 30 | }https://www.onlinegdb.com/#tab-stdin | ^~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema platou1 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ă.