Borderou de evaluare (job #1295239)

Utilizator andrei_diaconuAndrei Diaconu andrei_diaconu Data 18 decembrie 2014 23:55:41
Problema Mesaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d\n", &n, &m); ^ user.cpp:15:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:20:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] last[i][sir[i]]=i; ^ user.cpp:23:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1601]’ [-Wformat=] scanf("%s", &dict[i]); ^ user.cpp:30:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (last[i][dict[j][len-1]] != 0 && len <= i) { ^ user.cpp:32:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] cost = i - last[i][dict[j][len-1]]; ^ user.cpp:33:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] previ = last[i][dict[j][len-1]]; ^ user.cpp:35:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (last[previ-1][dict[j][k]] == 0) { ^ user.cpp:40:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] cost += previ - last[previ-1][dict[j][k]]-1; ^ user.cpp:41:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] previ = last[previ-1][dict[j][k]]; ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj.in", "r", stdin); ^ user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj.out", "w", stdout); ^ user.cpp:15:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &sir[i]); ^ user.cpp:23:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &dict[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbIncorect0
20ms268kbIncorect0
30ms280kbIncorect0
40ms312kbIncorect0
50ms420kbIncorect0
60ms572kbIncorect0
70ms768kbIncorect0
80ms1064kbIncorect0
90ms820kbIncorect0
100ms1064kbIncorect0
Punctaj total0

Ceva nu functioneaza?