Borderou de evaluare (job #1602319)

Utilizator robert.stefanRobert Stefan robert.stefan Data 16 februarie 2016 18:39:06
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘print’: user.c:15:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] printf ("%d ", perm[k]); ^ user.c: In function ‘bkt’: user.c:26:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (v [k] == 0){ ^ user.c:27:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] v [k] = 1; ^ user.c:30:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] v [k] = 0; ^ user.c: In function ‘main’: user.c:40:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘char *’ [-Wformat=] scanf ("%d", &n); ^ user.c:37:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen (IN, "r", stdin); ^ user.c:38:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen (OUT, "w", stdout); ^ user.c:40:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK20
20ms268kbOK20
30ms268kbOK20
44ms268kbOK20
568ms268kbOK20
Punctaj total100

Ceva nu functioneaza?