Borderou de evaluare (job #1570539)

Utilizator qwertyuiTudor-Stefan Berbinschi qwertyui Data 16 ianuarie 2016 17:03:33
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:29:21: error: expected unqualified-id before ‘int’ for (int i = M, int j = N; i; ) ^ user.cpp:29:21: error: expected ‘;’ before ‘int’ user.cpp:29:32: warning: for increment expression has no effect [-Wunused-value] for (int i = M, int j = N; i; ) ^ user.cpp:29:33: error: expected ‘)’ before ‘;’ token for (int i = M, int j = N; i; ) ^ user.cpp:29:25: warning: unused variable ‘j’ [-Wunused-variable] for (int i = M, int j = N; i; ) ^ user.cpp:29:35: error: expected primary-expression before ‘)’ token for (int i = M, int j = N; i; ) ^ user.cpp:29:35: error: expected ‘;’ before ‘)’ token user.cpp:35:9: error: ‘else’ without a previous ‘if’ else ^ user.cpp:36:20: error: ‘i’ was not declared in this scope if (DP[i-1][j] < DP[i][j-1]) ^ user.cpp:36:25: error: ‘j’ was not declared in this scope if (DP[i-1][j] < DP[i][j-1]) ^

Ceva nu functioneaza?