#3272
SumDivOgl
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 | #53156415 | Utilizator | |
Fișier | sumdivogl.cpp | Dimensiune | 537 B |
Data încărcării | 19 Octombrie 2024, 13:08 | Scor / rezultat | Eroare de compilare |
sumdivogl.cpp: In function 'int main()': sumdivogl.cpp:10:5: error: expected initializer before 'int' int o/ ^ sumdivogl.cpp:18:9: error: lvalue required as left operand of assignment for(1=2;i*i<=n;i) ^ sumdivogl.cpp:18:12: error: 'i' was not declared in this scope for(1=2;i*i<=n;i) ^ sumdivogl.cpp:18:17: error: 'n' was not declared in this scope for(1=2;i*i<=n;i) ^ sumdivogl.cpp:20:15: error: 's' was not declared in this scope s=s+i; ^ sumdivogl.cpp:21:19: error: 'i' was not declared in this scope if (i !=n/i) s=s+n/1; ^ sumdivogl.cpp:21:23: error: 'n' was not declared in this scope if (i !=n/i) s=s+n/1; ^ sumdivogl.cpp:21:28: error: 's' was not declared in this scope if (i !=n/i) s=s+n/1; ^ sumdivogl.cpp:22:11: error: 's' was not declared in this scope return s; ^ sumdivogl.cpp:27:5: error: expected initializer before 'int' int s=0,x,n,i; ^ sumdivogl.cpp:28:10: error: 'x' was not declared in this scope cin>>x; ^ sumdivogl.cpp:29:27: error: 'oglindit' was not declared in this scope s=s+sumdiv (oglindit(x)); ^ sumdivogl.cpp:29:28: error: 'sumdiv' was not declared in this scope s=s+sumdiv (oglindit(x)); ^ sumdivogl.cpp:30:5: error: 'count' was not declared in this scope count<<s; ^ sumdivogl.cpp: At global scope: sumdivogl.cpp:37:1: error: expected declaration before '}' token } ^
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ă.