Borderou de evaluare (job #1829366)

Utilizator antanaAntonia Boca antana Data 14 decembrie 2016 20:49:43
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

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/ccXa7Rih.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
20ms232kbOK55
30ms236kbOK55
40ms236kbOK55
50ms236kbOK55
60ms240kbOK55
70ms264kbOK55
80ms256kbOK55
94ms396kbOK55
108ms896kbOK55
1112ms296kbOK55
1220ms1592kbOK55
1324ms1348kbOK55
1424ms504kbOK55
1528ms472kbOK510
1676ms10064kbOK5
1744ms252kbOK510
1876ms7404kbOK5
1936ms260kbOK510
2084ms13444kbOK5
Punctaj total100

Ceva nu functioneaza?