Borderou de evaluare (job #2266273)

Utilizator Adrian2003Bulgar Adrian Nik Adrian2003 Data 22 octombrie 2018 15:38:07
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:5: error: 'ciut' was not declared in this scope ciut.set():///toate val din ciur sunt 1 ^~~~ main.cpp:19:16: error: expected unqualified-id before ')' token for(int) ^ main.cpp:19:16: error: expected ';' before ')' token main.cpp:19:16: error: expected primary-expression before ')' token main.cpp:19:16: error: expected ';' before ')' token main.cpp:20:14: error: 'j' was not declared in this scope j=i+i;j<=n;j+=i) ^ main.cpp:19:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int) ^~~ main.cpp:20:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' j=i+i;j<=n;j+=i) ^ main.cpp:20:20: error: 'j' was not declared in this scope main.cpp: At global scope: main.cpp:28:5: error: expected unqualified-id before 'return' return 0; ^~~~~~ main.cpp:29:1: error: expected declaration before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?