#4380
Se dă un vector cu n
numere naturale. Să se determine câte dintre perechile de elemente din vector au aceeași cifră zecilor.
Problema | NumararePerechi1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56010349 | Utilizator | |
Fișier | numarareperechi1.c | Dimensiune | 281 B |
Data încărcării | 03 Februarie 2025, 09:30 | Scor / rezultat | 0 puncte |
numarareperechi1.c: In function 'main': numarareperechi1.c:7:6: warning: passing argument 1 of 'fscanf' from incompatible pointer type [enabled by default] fscanf("%d", &n); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from numarareperechi1.c:1: /usr/include/stdio.h:443:12: note: expected 'struct FILE * restrict' but argument is of type 'char *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ numarareperechi1.c:7:6: warning: passing argument 2 of 'fscanf' from incompatible pointer type [enabled by default] fscanf("%d", &n); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from numarareperechi1.c:1: /usr/include/stdio.h:443:12: note: expected 'const char * restrict' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ numarareperechi1.c:7:6: warning: format not a string literal and no format arguments [-Wformat-security] fscanf("%d", &n); ^ numarareperechi1.c:10:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [enabled by default] fscanf("%d", &V[i]); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from numarareperechi1.c:1: /usr/include/stdio.h:443:12: note: expected 'struct FILE * restrict' but argument is of type 'char *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ numarareperechi1.c:10:10: warning: passing argument 2 of 'fscanf' from incompatible pointer type [enabled by default] fscanf("%d", &V[i]); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from numarareperechi1.c:1: /usr/include/stdio.h:443:12: note: expected 'const char * restrict' but argument is of type 'int *' extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ numarareperechi1.c:10:10: warning: format not a string literal and no format arguments [-Wformat-security] fscanf("%d", &V[i]); ^ numarareperechi1.c:13:12: warning: statement with no effect [-Wunused-value] (V[i]/10)%10==0; ^ numarareperechi1.c:7:12: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf("%d", &n); ^ numarareperechi1.c:10:16: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf("%d", &V[i]); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Caught fatal signal 11 | 20 | 0 | Exemplu | |
2 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
5 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumararePerechi1 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ă.