Borderou de evaluare (job #1351499)

Utilizator vlady1997Vlad Bucur vlady1997 Data 21 februarie 2015 11:06:14
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 45

Raport evaluator

Compilare: user.cpp: In function ‘void insert(Trie*, char*)’: user.cpp:18:25: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) ^ user.cpp: In function ‘void remove(Trie*, char*)’: user.cpp:32:25: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) ^ user.cpp: In function ‘int NrAparitii(Trie*, char*)’: user.cpp:47:25: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) ^ user.cpp: In function ‘int prefix(Trie*, char*, int)’: user.cpp:55:51: warning: NULL used in arithmetic [-Wpointer-arith] if (t->fii[s[0]-'a']==NULL || *s==NULL) ^ user.cpp: In function ‘int main()’: user.cpp:74:29: warning: NULL used in arithmetic [-Wpointer-arith] if (*s==NULL) continue; ^ user.cpp: In function ‘int NrAparitii(Trie*, char*)’: user.cpp:52:13: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:67:45: 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:68:47: 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:72:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c",&p,&z); ^ user.cpp:73:28: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccrNTLbJ.o: In function `main': user.cpp:(.text.startup+0xdb): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms372kbOK55
20ms376kbOK55
34ms388kbOK55
48ms384kbOK55
520ms376kbOK55
632ms384kbOK55
764ms404kbOK55
8100ms404kbOK55
9160ms564kbOK55
10Depăşit1036kbTime limit exceeded.00
11Depăşit432kbTime limit exceeded.00
12Depăşit1704kbTime limit exceeded.00
13Depăşit1468kbTime limit exceeded.00
14Depăşit640kbTime limit exceeded.00
15Depăşit620kbTime limit exceeded.00
16Depăşit5380kbTime limit exceeded.0
17Depăşit392kbTime limit exceeded.00
18Depăşit4588kbTime limit exceeded.0
19Depăşit400kbTime limit exceeded.00
20Depăşit5412kbTime limit exceeded.0
Punctaj total45

Ceva nu functioneaza?