Borderou de evaluare (job #620048)

Utilizator avatar bakono01001 Tara Horia-Andrei bakono01001 IP ascuns
Problemă Ouă (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 7 dec. 2021 21:58:38 Scor 0

Raport evaluator

Eroare de compilare: main.c:4:30: warning: built-in function 'cos' declared as non-function [-Wbuiltin-declaration-mismatch] 4 | int camp[52][52],iep[100][2],cos[100],timp[100]; | ^~~ main.c: In function 'main': main.c:38:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 38 | if(nL=1){ | ^~ main.c:41:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 41 | else if(nC=1){ | ^~ main.c:44:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 44 | else if(nL=l){ | ^~ main.c:47:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 47 | else if(nC=l){ | ^~ main.c:53:9: error: 'e' undeclared (first use in this function) 53 | e[1][1]=1; | ^ main.c:53:9: note: each undeclared identifier is reported only once for each function it appears in main.c:54:9: error: 'x' undeclared (first use in this function) 54 | x=iep[i][1]; | ^ main.c:55:9: error: 'y' undeclared (first use in this function) 55 | y=iep[i][2]; | ^ main.c:11:40: warning: variable 'Diep' set but not used [-Wunused-but-set-variable] 11 | int l,p,i,j,pL,pC,pV,n,nL,nC,t,end,Diep; | ^~~~ main.c:11:34: warning: variable 't' set but not used [-Wunused-but-set-variable] 11 | int l,p,i,j,pL,pC,pV,n,nL,nC,t,end,Diep; | ^ main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d", &l); | ^~~~~~~~~~~~~~~~~~~~~ main.c:24:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin, "%d", &p); | ^~~~~~~~~~~~~~~~~~~~~ main.c:26:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf(fin, "%d", &pL); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:27:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin, "%d", &pC); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:28:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 28 | fscanf(fin, "%d", &pV); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:32:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 32 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~