Borderou de evaluare (job #2675103)
Utilizator | Data | 21 noiembrie 2020 10:05:07 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
ifstream cin("ciur.in");
^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
ofstream cout("ciur.out");
^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'cin' was not declared in this scope
cin>>n;
^~~
main.cpp:10:5: error: expected ',' or ';' before 'bool'
bool notprime[MaxN];
^~~~
main.cpp:13:12: error: 'notprime' was not declared in this scope
if(notprime[div])
^~~~~~~~
main.cpp:19:13: error: 'notprime' was not declared in this scope
notprime[i]=true;
^~~~~~~~
main.cpp:25:12: error: 'notprime' was not declared in this scope
if(notprime[i]==true) nr++;
^~~~~~~~
main.cpp:27:5: error: 'cout' was not declared in this scope
cout<<nr;
^~~~
main.cpp:9:9: warning: unused variable 'MaxN' [-Wunused-variable]
int MaxN=20000005
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !