Borderou de evaluare (job #3343547)

Utilizator ravisantulravisantul. ravisantul Data 27 februarie 2026 18:41:50
Problema Bouncer Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int dp(int, int, int)': main.cpp:17:9: error: 'skip' was not declared in this scope 17 | if (skip == 0) | ^~~~ main.cpp:19:22: error: invalid types 'int[int]' for array subscript 19 | int val1 = (S[idx] == 'B' ? 1 : -1); | ^ main.cpp:24:26: error: invalid types 'int[int]' for array subscript 24 | int val2 = (S[idx + 1] == 'B' ? 1 : -1); | ^ main.cpp:31:19: error: invalid types 'int[int]' for array subscript 31 | int A = (S[idx] == 'B' ? 1 : -1); | ^ main.cpp: In function 'int main()': main.cpp:52:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 52 | if (!(fi >> T)) | ^~ main.cpp:54:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | return 0; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?