#4110
Se dă un vector cu n numere naturale. Să se determine câte dintre perechile de elemente din vector au aceeași sumă a divizorilor.
| Problema | NumarareSD | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64170982 | Utilizator | |
| Fișier | numararesd.cpp | Dimensiune | 366 B |
| Data încărcării | 21 Aprilie 2026, 13:54 | Scor/rezultat | 0 puncte |
numararesd.cpp: In function ‘int main()’: numararesd.cpp:11:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 11 | for(d=1;d*d<=v[i];d++) | ^~~ numararesd.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 13 | s[i]=sd; | ^ numararesd.cpp:15:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for(i=1;i<=n;i++) | ^~~ numararesd.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | cout<<k; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.056 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.046 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumarareSD 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ă.