Borderou de evaluare (job #1420348)

Utilizator RatkinHHKNica Dan RatkinHHK Data 18 aprilie 2015 12:36:00
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:68: error: expected identifier before ‘)’ token void LCS(int* stString,int* ndString,short stLength,short ndLength,); ^ user.cpp: In function ‘int main()’: user.cpp:26:42: error: ‘malloc’ was not declared in this scope stString = (int*)malloc(M*sizeof(int)); ^ user.cpp:36:30: error: too few arguments to function ‘void LCS(int*, int*, short int, short int, int)’ LCS(stString,ndString,M,N); ^ user.cpp:3:6: note: declared here void LCS(int* stString,int* ndString,short stLength,short ndLength,); ^ user.cpp:42:18: error: ‘free’ was not declared in this scope free(stString); ^ user.cpp: In function ‘void LCS(int*, int*, short int, short int)’: user.cpp:55:60: error: ‘realloc’ was not declared in this scope Solution = (int*)realloc(SolutionLength*sizeof(int)); ^ user.cpp: In function ‘int main()’: user.cpp:23:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&M); ^ user.cpp:24:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&N); ^ user.cpp:32:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",stString + i); ^ user.cpp:34:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",ndString + j); ^

Ceva nu functioneaza?