Borderou de evaluare (job #1886277)

Utilizator CatiCotorCotor Catinca CatiCotor Data 20 februarie 2017 19:57:37
Problema Teatru Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘Citeste’: user.c:23:4: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] scanf("%d%d", &n, &k); ^ user.c:23:4: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] user.c: In function ‘Afis’: user.c:31:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", Lmax); ^ user.c: In function ‘Calculeaza’: user.c:40:4: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[0]]++; nr++; ^ user.c:47:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f[s[j]] == 0) ^ user.c:49:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[j]]++; ^ user.c:52:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] else f[s[j]]++; ^ user.c:63:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[i]]--; ^ user.c:64:10: warning: array subscript has type ‘char’ [-Wchar-subscripts] if ( f[s[i]] == 0 ) nr--; ^ user.c: In function ‘main’: user.c:13:11: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("teatru.in", "r", stdin); ^ user.c:14:11: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("teatru.out", "w", stdout); ^ user.c: In function ‘Citeste’: user.c:23:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ user.c:24:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &s[0]); // citeste '\n' ^ user.c:26:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", s + i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms280kbOK10
34ms324kbOK10
44ms324kbOK10
54ms328kbOK10
64ms296kbOK10
74ms304kbOK10
84ms296kbOK10
98ms324kbOK10
108ms320kbOK10
Punctaj total100

Ceva nu functioneaza?