Borderou de evaluare (job #1352514)

Utilizator bodyionitaIonita Bogdan Constantin bodyionita Data 21 februarie 2015 12:42:28
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void Insert(Trie*, char*)’: user.cpp:20:13: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) {T->NrApp++; return;} ^ user.cpp: In function ‘void Remove(Trie*, char*)’: user.cpp:31:13: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) {T->NrApp--;return;} ^ user.cpp: In function ‘int Find(Trie*, char*)’: user.cpp:43:13: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) return T->NrApp; ^ user.cpp: In function ‘int Prefix(Trie*, char*, int)’: user.cpp:49:13: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL || T->fii[s[0]-'a']==NULL) return i; ^ user.cpp: In function ‘int main()’: user.cpp:63:17: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) continue; ^ user.cpp: In function ‘int Find(Trie*, char*)’: user.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:54: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:55: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:61:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c", &x, &c); ^ user.cpp:62:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccCSvzUO.o: In function `main': user.cpp:(.text.startup+0xbf): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms264kbIncorect00
20ms276kbKilled by signal 11(SIGSEGV).00
30ms280kbIncorect00
40ms268kbIncorect00
50ms272kbOK55
60ms276kbIncorect00
74ms300kbOK55
84ms296kbIncorect00
98ms468kbIncorect00
1012ms968kbOK55
1116ms332kbOK55
1232ms1748kbOK55
1340ms1472kbIncorect00
1436ms556kbOK55
1544ms528kbIncorect00
1696ms11524kbOK5
1772ms8032kbOK50
18100ms8768kbKilled by signal 11(SIGSEGV).0
1956ms300kbOK50
20108ms14524kbIncorect0
Punctaj total30

Ceva nu functioneaza?