Borderou de evaluare (job #2257644)

Utilizator Consti.001FMI Dranca Constantin Consti.001 Data 10 octombrie 2018 11:52:22
Problema A+B Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:1:11: error: ‘imgColor’ undeclared here (not in a function) function [imgColor, imgGray, X ] = ImgMedie(dirPath) ^~~~~~~~ user.c:1:19: error: expected ‘]’ before ‘,’ token function [imgColor, imgGray, X ] = ImgMedie(dirPath) ^ user.c:6:19: warning: character constant too long for its type filelist= dir('colectiiImagini/set1/*.jpg'); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:7:5: warning: data definition has no type or storage class imgName = ['colectiiImagini/set1/' filelist(1).name]; ^~~~~~~ user.c:7:5: warning: type defaults to ‘int’ in declaration of ‘imgName’ [-Wimplicit-int] user.c:7:15: error: expected expression before ‘[’ token imgName = ['colectiiImagini/set1/' filelist(1).name]; ^ user.c:7:16: warning: character constant too long for its type imgName = ['colectiiImagini/set1/' filelist(1).name]; ^~~~~~~~~~~~~~~~~~~~~~~ user.c:8:5: warning: data definition has no type or storage class nextImg=imread(imgName); ^~~~~~~ user.c:8:5: warning: type defaults to ‘int’ in declaration of ‘nextImg’ [-Wimplicit-int] user.c:8:13: warning: implicit declaration of function ‘imread’ [-Wimplicit-function-declaration] nextImg=imread(imgName); ^~~~~~ user.c:8:13: error: initializer element is not constant user.c:9:5: warning: data definition has no type or storage class vectImg=ones(size(nextImg,1),size(nextImg,2),3,length(filelist)); ^~~~~~~ user.c:9:5: warning: type defaults to ‘int’ in declaration of ‘vectImg’ [-Wimplicit-int] user.c:9:13: warning: implicit declaration of function ‘ones’ [-Wimplicit-function-declaration] vectImg=ones(size(nextImg,1),size(nextImg,2),3,length(filelist)); ^~~~ user.c:9:18: warning: implicit declaration of function ‘size’ [-Wimplicit-function-declaration] vectImg=ones(size(nextImg,1),size(nextImg,2),3,length(filelist)); ^~~~ user.c:9:52: warning: implicit declaration of function ‘length’ [-Wimplicit-function-declaration] vectImg=ones(size(nextImg,1),size(nextImg,2),3,length(filelist)); ^~~~~~ user.c:9:59: error: ‘filelist’ undeclared here (not in a function) vectImg=ones(size(nextImg,1),size(nextImg,2),3,length(filelist)); ^~~~~~~~ user.c:10:13: error: expected declaration specifiers or ‘...’ before ‘:’ token vectImg(:,:,:,1)=double(nextImg); ^ user.c:10:15: error: expected declaration specifiers or ‘...’ before ‘:’ token vectImg(:,:,:,1)=double(nextImg); ^ user.c:10:17: error: expected declaration specifiers or ‘...’ before ‘:’ token

Ceva nu functioneaza?