#3318
Eratostene7
Se dau n
perechi de numere naturale, x
şi k
. Verificaţi pentru fiecare număr x
dacă este produs de k
numere prime distincte.
***
Problema | Eratostene7 | Operații I/O |
eratostene7.in /eratostene7.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50320752 | Utilizator | |
Fișier | eratostene7.cpp | Dimensiune | 1.07 KB |
Data încărcării | 04 Aprilie 2024, 14:23 | Scor / rezultat | Eroare de compilare |
eratostene7.cpp:9:1: error: 'bitset' does not name a type bitset<10000000> e; ^ eratostene7.cpp: In function 'void e()': eratostene7.cpp:12:8: warning: pointer to a function used in arithmetic [-Wpointer-arith] e[0] = e[1] = 1; ^ eratostene7.cpp:12:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] e[0] = e[1] = 1; ^ eratostene7.cpp:12:17: error: assignment of read-only location '*(e + 1u)' e[0] = e[1] = 1; ^ eratostene7.cpp:12:17: error: cannot convert 'int' to 'void()' in assignment eratostene7.cpp:15:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] e[j] = 1; ^ eratostene7.cpp:15:18: error: assignment of read-only location '*(e + ((sizetype)j))' e[j] = 1; ^ eratostene7.cpp:15:18: error: cannot convert 'int' to 'void()' in assignment eratostene7.cpp:17:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(!e[i]) ^ eratostene7.cpp: In function 'int main()': eratostene7.cpp:47:16: error: 'eratostene' was not declared in this scope eratostene(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Eratostene7 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ă.