#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 | #64460323 | Utilizator | |
| Fișier | platou1.cpp | Dimensiune | 417 B |
| Data încărcării | 08 Mai 2026, 08:50 | Scor/rezultat | Eroare de compilare |
platou1.cpp: In function ‘int main()’: platou1.cpp:5:5: error: ‘fin’ was not declared in this scope 5 | fin>>x; | ^~~ platou1.cpp:7:16: error: ‘Y’ was not declared in this scope 7 | while(fin>>Y) { | ^ platou1.cpp:16:20: warning: statement has no effect [-Wunused-value] 16 | val+x; | ~~~^~ platou1.cpp:14:15: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 14 | } else | ^~~~ platou1.cpp:17:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 17 | l=1; | ^ platou1.cpp:21:5: error: ‘fout’ was not declared in this scope 21 | fout<<lm<<' '<<val; | ^~~~ platou1.cpp:21:24: error: expected ‘}’ at end of input 21 | fout<<lm<<' '<<val; | ^ platou1.cpp:3:12: note: to match this ‘{’ 3 | int main() { | ^
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ă.