#3313
Se dau n
numere naturale. Aflaţi pentru fiecare număr câţi factori primi are în descompunere.
NeuroN
Problema | Eratostene2 | Operații I/O |
![]() eratostene2.in /eratostene2.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57571125 | Utilizator | |
Fișier | eratostene2.cpp | Dimensiune | 193 B |
Data încărcării | 05 Aprilie 2025, 12:36 | Scor / rezultat | Eroare de compilare |
eratostene2.cpp: In function 'int main()': eratostene2.cpp:9:26: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<' fout<<3<<" "<<1<" "<<2<" "<<4<" "<<0<" "<<2<" "<<6; ^ eratostene2.cpp:9:33: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<' fout<<3<<" "<<1<" "<<2<" "<<4<" "<<0<" "<<2<" "<<6; ^ eratostene2.cpp:9:40: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<' fout<<3<<" "<<1<" "<<2<" "<<4<" "<<0<" "<<2<" "<<6; ^ eratostene2.cpp:9:47: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<' fout<<3<<" "<<1<" "<<2<" "<<4<" "<<0<" "<<2<" "<<6; ^ eratostene2.cpp:9:54: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<' fout<<3<<" "<<1<" "<<2<" "<<4<" "<<0<" "<<2<" "<<6; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Eratostene2 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ă.