Borderou de evaluare (job #1338045)
Utilizator | Data | 9 februarie 2015 19:07:54 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:6:2: error: expected initializer before ‘bool’
bool ciur[N+1]
^
user.cpp:7:11: warning: statement has no effect [-Wunused-value]
for(i=1;i<=n;i++) ciur[i]=true;
^
user.cpp:7:18: error: expected ‘;’ before ‘)’ token
for(i=1;i<=n;i++) ciur[i]=true;
^
user.cpp:9:2: error: expected ‘,’ or ‘;’ before ‘ofstream’
ofstream fout ("ciur.out")
^
user.cpp:13:8: error: ‘ciur’ was not declared in this scope
if(ciur[i]=true)
^
user.cpp:15:10: error: ‘j’ was not declared in this scope
for(j=i+i;j<=N;j++)
^
user.cpp:17:2: error: expected primary-expression before ‘}’ token
}
^
user.cpp:17:2: error: expected ‘;’ before ‘}’ token
user.cpp:18:2: error: ‘fout’ was not declared in this scope
fout>>cnt;
^
user.cpp:18:8: error: ‘cnt’ was not declared in this scope
fout>>cnt;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !