#3312
Eratostene1
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 | #50797245 | Utilizator | |
Fișier | eratostene1.cpp | Dimensiune | 983 B |
Data încărcării | 06 Mai 2024, 20:51 | Scor / rezultat | Eroare de compilare |
eratostene1.cpp:9:14: error: stray '#' in program int x, n, cnt#include <bits/stdc++.h> ^ eratostene1.cpp:9:15: error: expected initializer before 'include' int x, n, cnt#include <bits/stdc++.h> ^ eratostene1.cpp:12:13: error: redefinition of 'std::ifstream fin' ifstream fin("eratostene1.in"); ^ eratostene1.cpp:4:10: error: 'std::ifstream fin' previously declared here ifstream fin("eratostene1.in"); ^ eratostene1.cpp:13:14: error: redefinition of 'std::ofstream fout' ofstream fout("eratostene1.out"); ^ eratostene1.cpp:5:10: error: 'std::ofstream fout' previously declared here ofstream fout("eratostene1.out"); ^ eratostene1.cpp:15:15: error: redefinition of 'bool ciur [1005]' bool ciur[1005]; ^ eratostene1.cpp:7:6: error: 'bool ciur [1005]' previously declared here bool ciur[1005]; ^ eratostene1.cpp:16:15: error: redefinition of 'int prime [1005]' int prime[1005]; ^ eratostene1.cpp:8:5: error: 'int prime [1005]' previously declared here int prime[1005]; ^ eratostene1.cpp:17:5: error: redefinition of 'int x' int x, n, cnt, indp=0; ^ eratostene1.cpp:9:5: error: 'int x' previously declared here int x, n, cnt#include <bits/stdc++.h> ^ eratostene1.cpp:17:8: error: redefinition of 'int n' int x, n, cnt, indp=0; ^ eratostene1.cpp:9:8: error: 'int n' previously declared here int x, n, cnt#include <bits/stdc++.h> ^
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ă.