Borderou de evaluare (job #1429239)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 5 mai 2015 22:32:55
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void giveValues()’: user.cpp:27:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] x1 = (x1 * sigma + val[ F[i] ]) % MOD; ^ user.cpp:28:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] x2 = (x2 * sigma + val[ F[i] ]) % MOD_2; ^ user.cpp: In function ‘bool Find(int, int)’: user.cpp:34:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < Hash[q1].size(); ++i) ^ user.cpp: In function ‘void Solve()’: user.cpp:59:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] q1 = (q1 * sigma + val[ T[i] ] ) % MOD; ^ user.cpp:60:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] q2 = (q2 * sigma + val[ T[i] ] ) % MOD_2; ^ user.cpp:69:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] q1 = (q1 * sigma + val[ T[i] ] ) % MOD; ^ user.cpp:70:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] q2 = (q2 * sigma + val[ T[i] ] ) % MOD_2; ^ user.cpp:72:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] q1 -= val[ T[i - len_2] ] * rest_1; ^ user.cpp:73:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] q2 -= val[ T[i - len_2] ] * rest_2; ^ user.cpp: In function ‘void Read()’: user.cpp:42:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets( T ); ^ user.cpp: In function ‘int main()’: user.cpp:87:12: warning: array subscript is above array bounds [-Warray-bounds] val['a'] = 0, val['b'] = 1, val['c'] = 2; ^ user.cpp:87:26: warning: array subscript is above array bounds [-Warray-bounds] val['a'] = 0, val['b'] = 1, val['c'] = 2; ^ user.cpp:87:40: warning: array subscript is above array bounds [-Warray-bounds] val['a'] = 0, val['b'] = 1, val['c'] = 2; ^ /tmp/cchKkHVZ.o: In function `Read()': user.cpp:(.text+0x347): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
116ms11972kbOK100
216ms11968kbOK10
312ms11968kbKilled by signal 11(SIGSEGV).0
416ms12048kbKilled by signal 11(SIGSEGV).0
520ms12372kbKilled by signal 11(SIGSEGV).0
636ms13376kbKilled by signal 11(SIGSEGV).0
768ms17376kbKilled by signal 11(SIGSEGV).0
892ms22468kbKilled by signal 11(SIGSEGV).0
9Depăşit22464kbTime limit exceeded.0
10Depăşit22464kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?