#3312
Se dau n numere naturale. Aflaţi câte dintre aceste numere sunt prime.
NeuroN
| Problema | Eratostene1 | Operații I/O |
eratostene1.in/eratostene1.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
| Id soluție | #62567789 | Utilizator | |
| Fișier | eratostene1.cpp | Dimensiune | 566 B |
| Data încărcării | 26 Ianuarie 2026, 11:33 | Scor/rezultat | Eroare de compilare |
eratostene1.cpp:4:1: error: stray '\342' in program ifstream cin(“eratostene1.in”); ^ eratostene1.cpp:4:1: error: stray '\200' in program eratostene1.cpp:4:1: error: stray '\234' in program eratostene1.cpp:4:1: error: stray '\342' in program eratostene1.cpp:4:1: error: stray '\200' in program eratostene1.cpp:4:1: error: stray '\235' in program eratostene1.cpp:5:1: error: stray '\342' in program ofstream cout(“eratostene1.out”); ^ eratostene1.cpp:5:1: error: stray '\200' in program eratostene1.cpp:5:1: error: stray '\234' in program eratostene1.cpp:5:1: error: stray '\342' in program eratostene1.cpp:5:1: error: stray '\200' in program eratostene1.cpp:5:1: error: stray '\235' in program eratostene1.cpp:4:17: error: 'eratostene1' was not declared in this scope ifstream cin(“eratostene1.in”); ^ eratostene1.cpp:5:18: error: 'eratostene1' was not declared in this scope ofstream cout(“eratostene1.out”); ^ eratostene1.cpp: In function 'int main()': eratostene1.cpp:8:5: error: 'p0' was not declared in this scope p0=1; ^ eratostene1.cpp:17:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x/2>p.size()) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Eratostene1 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ă.