Borderou de evaluare (job #2828982)

Utilizator melisameliOtvos Melisa Maria melisameli Data 8 ianuarie 2022 10:43:54
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:9: error: expected constructor, destructor, or type conversion before '(' token 3 | ifstream("ciur.in"); | ^ main.cpp:4:9: error: expected constructor, destructor, or type conversion before '(' token 4 | ofstream("ciur.out"); | ^ main.cpp: In function 'int main()': main.cpp:11:5: error: 'fin' was not declared in this scope 11 | fin>>x; | ^~~ main.cpp:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 14 | if(ciur[i]==0) | ^~ main.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 16 | for(i=1;i<=x;i++) | ^~~ main.cpp:17:28: error: lvalue required as increment operand 17 | if(ciur[i]==0) ciur++; | ^~~~ main.cpp:21:5: error: 'fout' was not declared in this scope 21 | fout<<"ciur"; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?