Borderou de evaluare (job #2280827)

Utilizator HawksCBalota George HawksC Data 11 noiembrie 2018 11:18:05
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:10:20: note: in expansion of macro 'MAX' int index, n, m, a[MAX][MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:10:25: note: in expansion of macro 'MAX' int index, n, m, a[MAX][MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:11:7: note: in expansion of macro 'MAX' int p[MAX], q[MAX], sir[MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:11:15: note: in expansion of macro 'MAX' int p[MAX], q[MAX], sir[MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:11:25: note: in expansion of macro 'MAX' int p[MAX], q[MAX], sir[MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:12:7: note: in expansion of macro 'MAX' int L[MAX][MAX]; ^~~ main.cpp:9:13: error: expected primary-expression before '=' token #define MAX = 1050 ^ main.cpp:12:12: note: in expansion of macro 'MAX' int L[MAX][MAX]; ^~~ main.cpp: In function 'void LCS(int*, int*, int, int)': main.cpp:22:17: error: 'L' was not declared in this scope L[i][j] = 1 + L[i-1][j-1]; ^ main.cpp:25:17: error: 'L' was not declared in this scope L[i][j] = max(L[i-1][j], L[i][j-1]); ^ main.cpp:28:8: error: 'L' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?