Borderou de evaluare (job #837874)

Utilizator avatar TeodoRazvan Stancu Teodor Razvan TeodoRazvan IP ascuns
Problemă Tren (clasa a 8-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 20 oct. 2025 07:22:31 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: expected ',' or ';' before 'int' 8 | int dp[4][50009]; | ^~~ main.cpp: In function 'int main()': main.cpp:19:13: error: 'dp' was not declared in this scope; did you mean 'dup'? 19 | dp[k][j]=max(dp[k][j-1],dp[k-1][j-m]+s[j]-s[j-m]); | ^~ | dup main.cpp:22:11: error: 'dp' was not declared in this scope; did you mean 'dup'? 22 | fout<<dp[3][n]; | ^~ | dup