Borderou de evaluare (job #1420399)

Utilizator RatkinHHKNica Dan RatkinHHK Data 18 aprilie 2015 13:39:50
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:17:21: error: ‘M’ was not declared in this scope fscanf(in,"%d",&M); ^ user.cpp:18:21: error: ‘N’ was not declared in this scope fscanf(in,"%d",&N); ^ user.cpp:20:5: error: ‘stString’ was not declared in this scope stString = (int*)malloc(M*sizeof(int)); ^ user.cpp:21:5: error: ‘ndString’ was not declared in this scope ndString = (int*)malloc(N*sizeof(int)); ^ user.cpp:23:9: error: ‘i’ was not declared in this scope for(i=0; i<M; i++) ^ user.cpp:25:9: error: ‘j’ was not declared in this scope for(j=0; j<N; j++) ^ user.cpp:11:11: warning: unused variable ‘valueRoot’ [-Wunused-variable] int** valueRoot; ^ user.cpp:12:11: warning: unused variable ‘directionRoot’ [-Wunused-variable] int** directionRoot; ^ user.cpp: In function ‘void lengthLCS(int*, int*, int, int)’: user.cpp:62:27: error: return-statement with a value, in function returning 'void' [-fpermissive] return lengthRoot[M][N]; ^

Ceva nu functioneaza?