Borderou de evaluare (job #1596038)

Utilizator gabor.vlad13lil pump gabor.vlad13 Data 10 februarie 2016 18:43:36
Problema Text3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 31

Raport evaluator

Compilare: user.cpp: In function ‘void Parcurgere()’: user.cpp:25:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] prec[i] = test[vec[i][0]]; ^ user.cpp:27:59: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (maxim[i] > maxim[test[vec[i][strlen(vec[i])-1]]]) ^ user.cpp:28:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] test[vec[i][strlen(vec[i])-1]] = i; ^ user.cpp: In function ‘void Solve()’: user.cpp:53:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] strcpy(vec[l++], p); ^ user.cpp: In function ‘void Read()’: user.cpp:65:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(aux); ^ user.cpp:66:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:70:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(aux); ^ user.cpp:71:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp: In function ‘int main()’: user.cpp:79:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.in", "r", stdin); ^ user.cpp:80:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text3.out", "w", stdout); ^ user.cpp: In function ‘void Parcurgere()’: user.cpp:44:24: warning: ‘maxPos’ may be used uninitialized in this function [-Wmaybe-uninitialized] AfisareSecv(maxPos); ^ /tmp/ccNKX2JA.o: In function `Read()': user.cpp:(.text+0x1e6): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbKilled by signal 11(SIGSEGV).0
20ms264kbKilled by signal 11(SIGSEGV).0
30ms268kbCorect10
40ms264kbCorect10
58ms336kbKilled by signal 6(SIGABRT).0
64ms340kbKilled by signal 6(SIGABRT).0
70ms264kbCorect10
88ms336kbKilled by signal 6(SIGABRT).0
90ms268kbKilled by signal 11(SIGSEGV).0
100ms280kbPartial incorect1
Punctaj total31

Ceva nu functioneaza?