Borderou de evaluare (job #571632)

Utilizator avatar andrei_ciobanu Ciobanu Andrei andrei_ciobanu IP ascuns
Problemă Increment & Max Compilator c
Rundă Concurs clasa a 9-a (de acasă) Status evaluat
Dată 15 nov. 2020 16:26:57 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘increment’: user.c:26:5: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:26:5: note: use option -std=c99 or -std=gnu99 to compile your code user.c: In function ‘main’: user.c:41:19: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:42:19: error: redefinition of ‘i’ user.c:41:27: note: previous definition of ‘i’ was here user.c:42:10: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:35:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c: In function ‘increment’: user.c:13:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:18:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:22:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]