Borderou de evaluare (job #2130171)

Utilizator madalina.sassss madalina. Data 13 februarie 2018 15:09:16
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:15:36: warning: unused variable ‘a’ [-Wunused-variable] int i, k, j = 3, h, g, b, rez, a; ^ user.c:15:31: warning: variable ‘rez’ set but not used [-Wunused-but-set-variable] int i, k, j = 3, h, g, b, rez, a; ^ user.c: At top level: user.c:89:5: warning: data definition has no type or storage class f1 = fopen("prim.out", "wb"); ^ user.c:89:5: warning: type defaults to ‘int’ in declaration of ‘f1’ [-Wimplicit-int] user.c:89:5: error: conflicting types for ‘f1’ user.c:88:12: note: previous declaration of ‘f1’ was here FILE * f1; ^ user.c:89:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion] f1 = fopen("prim.out", "wb"); ^ user.c:89:10: error: initializer element is not constant user.c:90:12: error: expected declaration specifiers or ‘...’ before string constant printf("%d", rez); ^ user.c:90:18: error: unknown type name ‘rez’ printf("%d", rez); ^ user.c:91:12: error: expected declaration specifiers or ‘...’ before ‘&’ token fwrite(&rez,sizeof(rez),1,f1); ^ user.c:91:17: error: expected declaration specifiers or ‘...’ before ‘sizeof’ fwrite(&rez,sizeof(rez),1,f1); ^ user.c:91:29: error: expected declaration specifiers or ‘...’ before numeric constant fwrite(&rez,sizeof(rez),1,f1); ^ user.c:91:31: error: expected declaration specifiers or ‘...’ before ‘f1’ fwrite(&rez,sizeof(rez),1,f1); ^ user.c:92:5: warning: data definition has no type or storage class fclose(f1); ^ user.c:92:5: warning: type defaults to ‘int’ in declaration of ‘fclose’ [-Wimplicit-int] user.c:92:5: warning: parameter names (without types) in function declaration user.c:96:5: error: expected identifier or ‘(’ before ‘for’ for(A = cap; A != NULL; A = p) ^ user.c:96:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘!=’ token for(A = cap; A != NULL; A = p) ^ user.c:96:29: warning: data definition has no type or storage class

Ceva nu functioneaza?