#376
Se citește un număr natural n. Să se determine suma divizorilor săi.
| Problema | Suma Divizori | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64333694 | Utilizator | |
| Fișier | suma_divizori.c | Dimensiune | 306 B |
| Data încărcării | 30 Aprilie 2026, 10:17 | Scor/rezultat | 0 puncte |
suma_divizori.c: In function ‘main’: suma_divizori.c:5:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] 5 | scanf("%d", &n); | ~^ ~~ | | | | | long long int * | int * | %lld suma_divizori.c:15:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 15 | printf("%d", S); | ~^ ~ | | | | int long long int | %lld suma_divizori.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d", &n); | ^~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.093 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.093 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.093 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.093 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.094 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.093 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Suma Divizori 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ă.