#3272
Se dau n numere naturale. Determinați suma divizorilor oglinditelor celor n numere.
| Problema | SumDivOgl | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64184406 | Utilizator | |
| Fișier | sumdivogl.cpp | Dimensiune | 676 B |
| Data încărcării | 22 Aprilie 2026, 08:14 | Scor/rezultat | 0 puncte |
sumdivogl.cpp: In function ‘int main()’: sumdivogl.cpp:6:28: warning: unused variable ‘prim’ [-Wunused-variable] 6 | int n, i, nr, d, suma, prim, cifra, ogl, minim=1000000000, max=1; | ^~~~ sumdivogl.cpp:6:46: warning: unused variable ‘minim’ [-Wunused-variable] 6 | int n, i, nr, d, suma, prim, cifra, ogl, minim=1000000000, max=1; | ^~~~~ sumdivogl.cpp:6:64: warning: unused variable ‘max’ [-Wunused-variable] 6 | int n, i, nr, d, suma, prim, cifra, ogl, minim=1000000000, max=1; | ^~~ sumdivogl.cpp:15:19: warning: ‘ogl’ may be used uninitialized [-Wmaybe-uninitialized] 15 | ogl=10*ogl+cifra; | ~~^~~~ sumdivogl.cpp:6:41: note: ‘ogl’ was declared here 6 | int n, i, nr, d, suma, prim, cifra, ogl, minim=1000000000, max=1; | ^~~ sumdivogl.cpp:26:29: warning: ‘suma’ may be used uninitialized [-Wmaybe-uninitialized] 26 | suma=suma+d; | ~~~~^~~~~~~ sumdivogl.cpp:6:22: note: ‘suma’ was declared here 6 | int n, i, nr, d, suma, prim, cifra, ogl, minim=1000000000, max=1; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.003 secunde | Raspuns gresit. | 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 SumDivOgl 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ă.