#3928
abcd
Se dau numerele naturale a
, b
, c
și d
cu proprietatea că a < b < c < d
. Să se determine câte numere naturale divizibile cu 3
sunt în reuniunea de intervale [a,b] ∪ [c,d]
.
Problema | abcd | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #31678240 | Utilizator | |
Fișier | abcd.c | Dimensiune | 266 B |
Data încărcării | 20 Octombrie 2021, 12:30 | Scor / rezultat | 0 puncte |
abcd.c: In function 'main': abcd.c:6:6: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] scanf("%d",a); ^ abcd.c:7:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] scanf("%d",b); ^ abcd.c:8:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] scanf("%d",c); ^ abcd.c:9:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=] scanf("%d",d); ^ abcd.c:6:11: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",a); ^ abcd.c:7:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",b); ^ abcd.c:8:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",c); ^ abcd.c:9:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",d); ^ abcd.c:6:11: warning: 'a' is used uninitialized in this function [-Wuninitialized] scanf("%d",a); ^ abcd.c:7:10: warning: 'b' is used uninitialized in this function [-Wuninitialized] scanf("%d",b); ^ abcd.c:8:10: warning: 'c' is used uninitialized in this function [-Wuninitialized] scanf("%d",c); ^ abcd.c:9:10: warning: 'd' is used uninitialized in this function [-Wuninitialized] scanf("%d",d); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
2 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
5 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
6 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
7 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
8 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
9 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
10 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema abcd 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ă.