Borderou de evaluare (job #2786548)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 21 octombrie 2021 10:06:49
Problema Pal Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int T(int, int, int*)': main.cpp:10:24: warning: for increment expression has no effect [-Wunused-value] 10 | for(t=a;D[t]<2;D{t]-=2,++t); | ^ main.cpp:10:25: error: expected ')' before '{' token 10 | for(t=a;D[t]<2;D{t]-=2,++t); | ~ ^ | ) main.cpp:10:27: error: expected ';' before ']' token 10 | for(t=a;D[t]<2;D{t]-=2,++t); | ^ | ; main.cpp:10:26: warning: statement has no effect [-Wunused-value] 10 | for(t=a;D[t]<2;D{t]-=2,++t); | ^ main.cpp:11:2: error: 'else' without a previous 'if' 11 | else { | ^~~~ main.cpp:12:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 12 | for(t=a;t<10&&(!D[t]||!(D[t]%2));++t); | ^~~ main.cpp:13:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 13 | if(9<t) | ^~ main.cpp:20:1: error: a function-definition is not allowed here before '{' token 20 | { | ^ main.cpp:45:1: error: expected '}' at end of input 45 | } | ^ main.cpp:7:1: note: to match this '{' 7 | { | ^ main.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type] 45 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?