Pagini recente » Borderou de evaluare (job #1782633) | Borderou de evaluare (job #1908077) | Borderou de evaluare (job #237731) | Borderou de evaluare (job #2940227) | Borderou de evaluare (job #1886277)
Borderou de evaluare (job #1886277)
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 |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 4ms | 324kb | OK | 10 |
4 | 4ms | 324kb | OK | 10 |
5 | 4ms | 328kb | OK | 10 |
6 | 4ms | 296kb | OK | 10 |
7 | 4ms | 304kb | OK | 10 |
8 | 4ms | 296kb | OK | 10 |
9 | 8ms | 324kb | OK | 10 |
10 | 8ms | 320kb | OK | 10 |
Punctaj total | 100 |