Borderou de evaluare (job #1042740)

Utilizator leontinLeontin leontin Data 27 noiembrie 2013 17:25:17
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:28: error: size of array ‘M’ is too large void fun(int M[MAXN][MAXN], int A[MAXN], int N) ^ user.cpp: In function ‘void fun(int*, int)’: user.cpp:12:11: error: ‘M’ was not declared in this scope M[i][i] = i; ^ user.cpp:15:21: error: ‘M’ was not declared in this scope if (A[M[i][j - 1]] < A[j]) ^ user.cpp: In function ‘int main()’: user.cpp:25:23: error: size of array ‘mat’ is too large int mat[MAXN][MAXN], a[MAXN],i,m,j; ^ user.cpp:29:9: error: ‘mat’ was not declared in this scope fun(mat,a,n); ^ user.cpp:25:38: warning: unused variable ‘j’ [-Wunused-variable] int mat[MAXN][MAXN], a[MAXN],i,m,j; ^

Ceva nu functioneaza?