#4306
Se citește un număr natural n. Calculați și afișați numărul de divizori pozitivi ai lui n!.
| Problema | nr_div_fact | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
| Id soluție | #64805843 | Utilizator | |
| Fișier | nr_div_fact.cpp | Dimensiune | 809 B |
| Data încărcării | 02 Iunie 2026, 15:17 | Scor/rezultat | 10 puncte |
nr_div_fact.cpp: In function ‘int main()’: nr_div_fact.cpp:43:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 43 | if (ciur[i]) | ^~ nr_div_fact.cpp:45:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 45 | dih = (dih * dihxponent) % MOD; | ^~~ nr_div_fact.cpp:45:24: warning: ‘dih’ may be used uninitialized [-Wmaybe-uninitialized] 45 | dih = (dih * dihxponent) % MOD; | ~~~~~^~~~~~~~~~~~~ nr_div_fact.cpp:37:8: note: ‘dih’ was declared here 37 | ll dih; | ^~~ nr_div_fact.cpp:45:24: warning: ‘dihxponent’ may be used uninitialized [-Wmaybe-uninitialized] 45 | dih = (dih * dihxponent) % MOD; | ~~~~~^~~~~~~~~~~~~ nr_div_fact.cpp:36:8: note: ‘dihxponent’ was declared here 36 | ll dihxponent; | ^~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 10 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nr_div_fact 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ă.