#1875
platou1
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 | #56414256 | Utilizator | |
Fișier | platou1.c | Dimensiune | 547 B |
Data încărcării | 18 Februarie 2025, 12:16 | Scor / rezultat | 0 puncte |
platou1.c: In function 'main': platou1.c:7:5: warning: passing argument 1 of 'scanf' from incompatible pointer type [enabled by default] scanf(f,"%d", &x); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from platou1.c:1: /usr/include/stdio.h:446:12: note: expected 'const char * restrict' but argument is of type 'struct FILE *' extern int __REDIRECT (scanf, (const char *__restrict __format, ...), ^ platou1.c:8:5: warning: passing argument 1 of 'scanf' from incompatible pointer type [enabled by default] while (scanf(f,"%d", &x)!=0) ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from platou1.c:1: /usr/include/stdio.h:446:12: note: expected 'const char * restrict' but argument is of type 'struct FILE *' extern int __REDIRECT (scanf, (const char *__restrict __format, ...), ^ platou1.c:20:5: warning: passing argument 1 of 'printf' from incompatible pointer type [enabled by default] printf(g,"%d %d\n", k, min); ^ In file included from /usr/include/stdio.h:937:0, from platou1.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:102:1: note: expected 'const char * restrict' but argument is of type 'struct FILE *' printf (const char *__restrict __fmt, ...) ^ platou1.c:7:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf(f,"%d", &x); ^ platou1.c:9:12: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] if (x == y) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | Depășit | Limita de timp depășită | 20 | 0 | Exemplu | |
2 | Depășit | Limita de timp depășită | 20 | 0 | ||
3 | Depășit | Limita de timp depășită | 20 | 0 | ||
4 | Depășit | Limita de timp depășită | 20 | 0 | ||
5 | Depășit | Limita de timp depășită | 20 | 0 | ||
Punctaj total | 0 |
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ă.