Borderou de evaluare (job #1596705)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 11 februarie 2016 12:15:42
Problema Rps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 25

Raport evaluator

Compilare: user.cpp: In function ‘void upd(Trie*, int)’: user.cpp:81:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!T -> nxt[ s[ind] ]) ^ user.cpp:82:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] T -> nxt[ s[ind] ] = new Trie(T); ^ user.cpp:83:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] upd(T -> nxt[ s[ind] ], ind + 1); ^ user.cpp: In function ‘int main()’: user.cpp:130:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rps.in", "r", stdin); ^ user.cpp:131:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rps.out", "w", stdout); ^ user.cpp:133:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d\n", &n, &k, &win, &draw); ^ user.cpp:139:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ /tmp/ccYrjALs.o: In function `main': user.cpp:(.text.startup+0xee): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK5
20ms444kbOK5
34ms1464kbOK5
40ms1364kbIncorect0
54ms1708kbIncorect0
60ms1300kbOK5
7204msDepăşitMemory limit exceeded.0
8216msDepăşitMemory limit exceeded.0
9204msDepăşitMemory limit exceeded.0
10204msDepăşitMemory limit exceeded.0
11216msDepăşitMemory limit exceeded.0
12204msDepăşitMemory limit exceeded.0
13212msDepăşitMemory limit exceeded.0
14204msDepăşitMemory limit exceeded.0
15200msDepăşitMemory limit exceeded.0
16204msDepăşitMemory limit exceeded.0
17200msDepăşitMemory limit exceeded.0
18208msDepăşitMemory limit exceeded.0
19204msDepăşitMemory limit exceeded.0
20128ms9892kbOK5
Punctaj total25

Ceva nu functioneaza?