Borderou de evaluare (job #1233936)

Utilizator AlexandraMafteiAlexandra Maftei AlexandraMaftei Data 26 septembrie 2014 13:18:55
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:13:11: error: ‘i’ undeclared (first use in this function) for ( i = 1; i <= n ; i ++ ) { ^ user.c:13:11: note: each undeclared identifier is reported only once for each function it appears in user.c:33:9: error: expected expression before ‘}’ token } ^ user.c:38:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf ( fopen, " %d %d %d ", c ); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘struct FILE * (*)(const char * restrict, const char * restrict)’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:38:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] fscanf ( fopen, " %d %d %d ", c ); ^ user.c:38:5: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=] user.c:38:5: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=] user.c:6:21: warning: variable ‘aux’ set but not used [-Wunused-but-set-variable] int n, a, b, c, aux; ^ user.c:9:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fin, " %d %d %d ", &a, &b, &c ); ^ user.c:38:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fopen, " %d %d %d ", c ); ^

Ceva nu functioneaza?