Borderou de evaluare (job #620248)

Utilizator avatar vladimir.gavris vladimir g vladimir.gavris IP ascuns
Problemă Unific (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 9 dec. 2021 19:38:09 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'unific': main.c:14:5: warning: implicit declaration of function 'frecvcif' [-Wimplicit-function-declaration] 14 | frecvcif(a,cifa); | ^~~~~~~~ main.c:32:9: error: 'nrcif' undeclared (first use in this function) 32 | nrcif=0; | ^~~~~ main.c:32:9: note: each undeclared identifier is reported only once for each function it appears in main.c:34:11: warning: implicit declaration of function 'numarnou' [-Wimplicit-function-declaration] 34 | a=numarnou(a,pa,cifa,&nrcif,0); | ^~~~~~~~ main.c:36:13: error: 'ncif' undeclared (first use in this function) 36 | if(*ncif!=0) | ^~~~ main.c: At top level: main.c:68:11: error: conflicting types for 'numarnou'; have 'long long int(long long int, long long int, int *, int *, long long int)' 68 | long long numarnou(long long a,long long pa,int cifa[],int *ncif,long long nrnou){ | ^~~~~~~~ main.c:34:11: note: previous implicit declaration of 'numarnou' with type 'int()' 34 | a=numarnou(a,pa,cifa,&nrcif,0); | ^~~~~~~~ main.c: In function 'numarnou': main.c:74:9: warning: value computed is not used [-Wunused-value] 74 | *ncif++; | ^~~~~~~ main.c:80:38: error: expected expression before ']' token 80 | return numarnou(a,pa/10,cifa[],*ncif,nrnou); | ^ main.c:80:40: warning: passing argument 4 of 'numarnou' makes pointer from integer without a cast [-Wint-conversion] 80 | return numarnou(a,pa/10,cifa[],*ncif,nrnou); | ^~~~~ | | | int main.c:68:61: note: expected 'int *' but argument is of type 'int' 68 | long long numarnou(long long a,long long pa,int cifa[],int *ncif,long long nrnou){ | ~~~~~^~~~ main.c: At top level: main.c:96:6: warning: conflicting types for 'frecvcif'; have 'void(long long int, int *)' 96 | void frecvcif(long long a,int cifa[]){ | ^~~~~~~~ main.c:14:5: note: previous implicit declaration of 'frecvcif' with type 'void(long long int, int *)' 14 | frecvcif(a,cifa); | ^~~~~~~~ main.c: In function 'frecvcif': main.c:102:5: error: too few arguments to function 'frecvcif' 102 | frecvcif(a/10); | ^~~~~~~~ main.c:96:6: note: declared here 96 | void frecvcif(long long a,int cifa[]){ | ^~~~~~~~