Borderou de evaluare (job #1955417)

Utilizator Vlad3108Tir Vlad Ioan Vlad3108 Data 5 aprilie 2017 22:56:16
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
10ms272kbOK10
20ms272kbOK10
34ms320kbOK10
44ms328kbOK10
54ms320kbOK10
64ms300kbOK10
74ms308kbOK10
84ms300kbOK10
98ms320kbOK10
1012ms320kbOK10
Punctaj total100

Ceva nu functioneaza?