#2914
nthodd
Se dă numărul natural n
. Afișați al n
-lea număr impar.
Problema | nthodd | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #51750850 | Utilizator | |
Fișier | nthodd.cpp | Dimensiune | 355 B |
Data încărcării | 13 August 2024, 18:25 | Scor / rezultat | 0 puncte |
nthodd.cpp: In function 'int main()': nthodd.cpp:13:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("%llu", 0); ^ nthodd.cpp:20:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; i < n; i++) ^ nthodd.cpp:25:20: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] printf("%llu", nr); ^ nthodd.cpp:9:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%llu", &n); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nthodd 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ă.