Borderou de evaluare (job #1596033)

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

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:69:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(aux); ^ user.cpp:70:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:74:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(aux); ^ user.cpp:75: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:83: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:84: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/ccR3MhwA.o: In function `Read()': user.cpp:(.text+0x256): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbWall time limit exceeded.0
20ms252kbWall time limit exceeded.0
30ms280kbCorect10
40ms272kbCorect10
58ms380kbKilled by signal 6(SIGABRT).0
68ms372kbKilled by signal 6(SIGABRT).0
70ms276kbCorect10
88ms376kbKilled by signal 6(SIGABRT).0
90ms260kbKilled by signal 11(SIGSEGV).0
100ms256kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?