#2708
VerifParitate
Se citesc n
numere naturale. Determinați pentru fiecare dintre ele dacă este par sau impar.
Problema | VerifParitate | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49312704 | Utilizator | |
Fișier | verifparitate.c | Dimensiune | 193 B |
Data încărcării | 25 Februarie 2024, 21:32 | Scor / rezultat | 0 puncte |
verifparitate.c: In function 'main': verifparitate.c:4:5: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long unsigned int *' [-Wformat=] scanf("%ld",&n); ^ verifparitate.c:6:9: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long unsigned int *' [-Wformat=] scanf("%ld",&x); ^ verifparitate.c:7:9: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long unsigned int' [-Wformat=] printf("%ld ",(x&1)); ^ verifparitate.c:4:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ verifparitate.c:6:14: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&x); ^
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 VerifParitate 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ă.