Borderou de evaluare (job #2974280)

Utilizator TianaInfoLitcanu Tiana TianaInfo Data 3 februarie 2023 19:25:24
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:14: error: variable 'std::ifstream fin' has initializer but incomplete type 3 | ifstream fin ("ciur.in") | ^ main.cpp:4:1: error: expected ',' or ';' before 'ofstream' 4 | ofstream fout ("ciur.out") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:5: error: 'ciur' was not declared in this scope 10 | ciur[0]=1;ciur[1]=1; | ^~~~ main.cpp:17:23: error: 'fout' was not declared in this scope 17 | if(ciur[i]==0)fout<<i<<" "; | ^~~~ main.cpp:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 16 | for (i=1;i<=n;i++) | ^~~ main.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 18 | return 0; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?