Borderou de evaluare (job #558265)

Utilizator avatar DavidPoterasu David Poterasu DavidPoterasu IP ascuns
Problemă Arme (clasa a 7-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 8 iun. 2020 11:16:29 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:19:12: error: redeclaration of ‘i’ with no linkage user.c:18:13: note: previous declaration of ‘i’ was here user.c:19:3: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:19:3: note: use option -std=c99 or -std=gnu99 to compile your code user.c:21:12: error: redeclaration of ‘j’ with no linkage user.c:18:16: note: previous declaration of ‘j’ was here user.c:21:3: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:26:3: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:30:7: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:40:12: error: redefinition of ‘k’ user.c:26:12: note: previous definition of ‘k’ was here user.c:40:3: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:44:7: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:62:11: error: redefinition of ‘i’ user.c:19:12: note: previous definition of ‘i’ was here user.c:62:3: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:63:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat] user.c:20:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:22:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:63:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]