Borderou de evaluare (job #576435)

Utilizator avatar Nobody Mihai Negru Nobody IP ascuns
Problemă Scăderi Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 23 dec. 2020 13:47:11 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:10:5: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:10:5: note: use option -std=c99 or -std=gnu99 to compile your code user.c:10:5: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat] user.c:15:9: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:22:21: error: redefinition of ‘i’ user.c:15:17: note: previous definition of ‘i’ was here user.c:22:13: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:24:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat] user.c:6:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] user.c:7:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] user.c:10:39: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:12:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:14:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] user.c:26:1: warning: control reaches end of non-void function [-Wreturn-type]