#3315
Eratostene4
Se dau n
numere naturale. Pentru fiecare număr aflaţi câţi divizori liberi de pătrate are acesta.
NeuroN
Problema | Eratostene4 | Operații I/O |
eratostene4.in /eratostene4.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51172332 | Utilizator | |
Fișier | eratostene4.cpp | Dimensiune | 582 B |
Data încărcării | 28 Mai 2024, 12:16 | Scor / rezultat | Eroare de compilare |
eratostene4.cpp:6:2: error: invalid preprocessing directive #deine #deine M 10000005 ^ eratostene4.cpp:10:8: error: 'M' was not declared in this scope bitset<M> b; ^ eratostene4.cpp:10:9: error: template argument 1 is invalid bitset<M> b; ^ eratostene4.cpp:10:12: error: invalid type in declaration before ';' token bitset<M> b; ^ eratostene4.cpp:11:7: error: 'M' was not declared in this scope int v[M]; ^ eratostene4.cpp: In function 'void ciur()': eratostene4.cpp:15:15: error: 'M' was not declared in this scope for(i=2;i<M;i++) ^ eratostene4.cpp:16:15: error: invalid types 'int[int]' for array subscript if(b[i]==0) ^ eratostene4.cpp:18:9: error: 'v' was not declared in this scope v[i]=1; ^ eratostene4.cpp:21:16: error: invalid types 'int[int]' for array subscript b[j]=1; ^ eratostene4.cpp: In function 'int main()': eratostene4.cpp:34:11: error: 'v' was not declared in this scope k=v[x]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Eratostene4 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ă.