Borderou de evaluare (job #1830399)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 16 decembrie 2016 18:10:57
Problema Bool Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:30:1: warning: passing argument 1 of ‘toupper’ makes integer from pointer without a cast [enabled by default] toupper(letters); toupper(expression); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/ctype.h:223:1: note: expected ‘int’ but argument is of type ‘char *’ __NTH (toupper (int __c)) ^ user.c:30:1: warning: passing argument 1 of ‘toupper’ makes integer from pointer without a cast [enabled by default] toupper(letters); toupper(expression); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/ctype.h:223:1: note: expected ‘int’ but argument is of type ‘char *’ __NTH (toupper (int __c)) ^ user.c:44:22: warning: operation on ‘j’ may be undefined [-Wsequence-point] boolVar[letters[j++] - 'A'] = 1 - boolVar[letters[j] - 'A']; ^ user.c:14:16: warning: unused variable ‘k’ [-Wunused-variable] int i=-1, j=0, k=0, nChanges; ^ user.c:27:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(file1, "%d", &nChanges); ^ user.c:28:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(file1, "%s", letters); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
20ms260kbIncorect0
30ms264kbIncorect0
40ms264kbIncorect0
564ms264kbIncorect0
648ms260kbIncorect0
748ms260kbIncorect0
836ms260kbIncorect0
944ms264kbIncorect0
1052ms260kbOK10
Punctaj total10

Ceva nu functioneaza?