Borderou de evaluare (job #2676987)

Utilizator IonutIacobescuIacobescu Ionut IonutIacobescu Data 25 noiembrie 2020 17:06:39
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int j = last + 1; true; j++) ^~~ main.cpp:18:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if (prime) { ^~ main.cpp:19:24: error: 'j' was not declared in this scope last = j; ^ main.cpp:24:15: error: 'i' was not declared in this scope array[i] = last; ^ main.cpp: At global scope: main.cpp:26:5: error: expected unqualified-id before 'for' for (int i = 0; true; i++) { ^~~ main.cpp:26:21: error: expected unqualified-id before 'true' for (int i = 0; true; i++) { ^~~~ main.cpp:26:27: error: 'i' does not name a type for (int i = 0; true; i++) { ^ main.cpp:46:1: error: expected declaration before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?