Pagini recente » Borderou de evaluare (job #2918125) | Borderou de evaluare (job #2154205) | Borderou de evaluare (job #1407551) | Borderou de evaluare (job #797166) | Borderou de evaluare (job #1352514)
Borderou de evaluare (job #1352514)
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 |
1 | 0ms | 264kb | Incorect | 0 | 0 |
2 | 0ms | 276kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
3 | 0ms | 280kb | Incorect | 0 | 0 |
4 | 0ms | 268kb | Incorect | 0 | 0 |
5 | 0ms | 272kb | OK | 5 | 5 |
6 | 0ms | 276kb | Incorect | 0 | 0 |
7 | 4ms | 300kb | OK | 5 | 5 |
8 | 4ms | 296kb | Incorect | 0 | 0 |
9 | 8ms | 468kb | Incorect | 0 | 0 |
10 | 12ms | 968kb | OK | 5 | 5 |
11 | 16ms | 332kb | OK | 5 | 5 |
12 | 32ms | 1748kb | OK | 5 | 5 |
13 | 40ms | 1472kb | Incorect | 0 | 0 |
14 | 36ms | 556kb | OK | 5 | 5 |
15 | 44ms | 528kb | Incorect | 0 | 0 |
16 | 96ms | 11524kb | OK | 5 |
17 | 72ms | 8032kb | OK | 5 | 0 |
18 | 100ms | 8768kb | Killed by signal 11(SIGSEGV). | 0 |
19 | 56ms | 300kb | OK | 5 | 0 |
20 | 108ms | 14524kb | Incorect | 0 |
Punctaj total | 30 |