Borderou de evaluare (job #2969612)

Utilizator MkA1Mihai MkA1 MkA1 Data 23 ianuarie 2023 14:33:31
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:8: error: expected constructor, destructor, or type conversion before '(' token 5 | freopen("ciur.in" , "r", stdin); | ^ main.cpp:6:9: error: expected constructor, destructor, or type conversion before '(' token 6 | freopen("ciur.out" , "w", stdout); | ^ main.cpp: In function 'int main()': main.cpp:12:6: error: 'inti' was not declared in this scope; did you mean 'int'? 12 | for(inti = 2; i < maxn; i++){ | ^~~~ | int main.cpp:12:16: error: 'i' was not declared in this scope 12 | for(inti = 2; i < maxn; i++){ | ^ main.cpp:15:7: error: 'intj' was not declared in this scope; did you mean 'int'? 15 | for(intj = i * 2; j < maxn; j+=i){ | ^~~~ | int main.cpp:15:21: error: 'j' was not declared in this scope; did you mean 'jn'? 15 | for(intj = i * 2; j < maxn; j+=i){ | ^ | jn Non zero exit status: 1

Ceva nu functioneaza?