Borderou de evaluare (job #1351551)

Utilizator vlady1997Vlad Bucur vlady1997 Data 21 februarie 2015 11:11:52
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/cczwbea9.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
20ms384kbOK55
34ms392kbOK55
48ms376kbOK55
520ms388kbOK55
632ms388kbOK55
764ms404kbOK55
8100ms404kbOK55
9160ms584kbOK55
10Depăşit1116kbTime limit exceeded.00
11Depăşit440kbTime limit exceeded.00
12Depăşit1880kbTime limit exceeded.00
13Depăşit1620kbTime limit exceeded.00
14Depăşit680kbTime limit exceeded.00
15Depăşit652kbTime limit exceeded.00
16Depăşit5988kbTime limit exceeded.0
17Depăşit396kbTime limit exceeded.00
18Depăşit5200kbTime limit exceeded.0
19Depăşit404kbTime limit exceeded.00
20Depăşit5908kbTime limit exceeded.0
Punctaj total45

Ceva nu functioneaza?