Borderou de evaluare (job #1829361)

Utilizator antanaAntonia Boca antana Data 14 decembrie 2016 20:44:25
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void add_trie(trie*, char*)’: user.cpp:22:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL) ^ user.cpp: In function ‘bool delete_trie(trie*, char*)’: user.cpp:39:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL) ^ user.cpp: In function ‘int find_trie(trie*, char*)’: user.cpp:61:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL) ^ user.cpp: In function ‘int longest_prefix(trie*, char*)’: user.cpp:72:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL || aux->son[code(*s)] == NULL) ^ user.cpp: In function ‘int main()’: user.cpp:83:12: warning: variable ‘f’ set but not used [-Wunused-but-set-variable] int q, f; ^ user.cpp:80:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.in", "r", stdin); ^ user.cpp:81:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.out", "w", stdout); ^ user.cpp:87:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:100:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc3HSb36.o: In function `main': user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms228kbOK55
20ms236kbOK55
30ms340kbKilled by signal 6(SIGABRT).00
40ms332kbKilled by signal 6(SIGABRT).00
50ms340kbKilled by signal 6(SIGABRT).00
60ms336kbKilled by signal 6(SIGABRT).00
70ms352kbKilled by signal 6(SIGABRT).00
80ms340kbKilled by signal 6(SIGABRT).00
90ms348kbKilled by signal 6(SIGABRT).00
100ms348kbKilled by signal 6(SIGABRT).00
110ms348kbKilled by signal 6(SIGABRT).00
120ms364kbKilled by signal 6(SIGABRT).00
130ms312kbKilled by signal 6(SIGABRT).00
140ms372kbKilled by signal 6(SIGABRT).00
150ms420kbKilled by signal 6(SIGABRT).00
160ms408kbKilled by signal 6(SIGABRT).0
170ms348kbKilled by signal 6(SIGABRT).00
180ms344kbKilled by signal 6(SIGABRT).0
190ms352kbKilled by signal 6(SIGABRT).00
200ms336kbKilled by signal 6(SIGABRT).0
Punctaj total10

Ceva nu functioneaza?