Borderou de evaluare (job #3223519)

Utilizator DanielIonescu06Ionescu DanielIonescu06 Data 13 aprilie 2024 12:47:30
Problema Aspirator Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2024 - Concurs Compilator c-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:6:1: error: expected identifier or '(' before '{' token 6 | { | ^ main.c:10:3: warning: data definition has no type or storage class 10 | } Tr; | ^~ main.c:10:3: warning: type defaults to 'int' in declaration of 'Tr' [-Wimplicit-int] main.c: In function 'main': main.c:14:5: warning: statement with no effect [-Wunused-value] 14 | Tr x = (Tr*)malloc(sizeof(Tr)); | ^~ main.c:14:7: error: expected ';' before 'x' 14 | Tr x = (Tr*)malloc(sizeof(Tr)); | ^~ | ; main.c:22:9: error: 'x' undeclared (first use in this function) 22 | x = NULL; | ^ main.c:22:9: note: each undeclared identifier is reported only once for each function it appears in main.c:25:38: error: expected ';' before 'if' 25 | fscanf(pf, "%d", x.c[j] ) | ^ | ; 26 | if(x.c[j]== "f" ) | ~~ main.c:56:17: error: expected identifier before ')' token 56 | while(x.) | ^ Non zero exit status: 1

Ceva nu functioneaza?