Borderou de evaluare (job #1352800)
Raport evaluator
Compilare:
user.cpp: In function ‘void Insert(Trie*, char*)’:
user.cpp:21:13: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s==NULL) {T->Nr++; return;}
^
user.cpp: In function ‘void Remove(Trie*, char*)’:
user.cpp:32:13: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s==NULL) {T->Nr--;return;}
^
user.cpp: In function ‘int Find(Trie*, char*)’:
user.cpp:44:13: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s==NULL) return T->Nr;
^
user.cpp: In function ‘int Prefix(Trie*, char*, int)’:
user.cpp:50:13: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s==NULL || T->fii[s[0]-'a']==NULL) return K;
^
user.cpp: In function ‘int main()’:
user.cpp:65:17: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s==NULL) continue;
^
user.cpp: In function ‘int Find(Trie*, char*)’:
user.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:55: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:56: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:63: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:64:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/cc89j3TQ.o: In function `main':
user.cpp:(.text.startup+0xce): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 264kb | OK | 5 | 5 |
2 | 0ms | 272kb | OK | 5 | 5 |
3 | 0ms | 280kb | OK | 5 | 5 |
4 | 0ms | 276kb | OK | 5 | 5 |
5 | 0ms | 276kb | OK | 5 | 5 |
6 | 0ms | 284kb | OK | 5 | 5 |
7 | 4ms | 300kb | OK | 5 | 5 |
8 | 4ms | 288kb | OK | 5 | 5 |
9 | 8ms | 464kb | OK | 5 | 5 |
10 | 16ms | 972kb | OK | 5 | 5 |
11 | 16ms | 336kb | OK | 5 | 5 |
12 | 36ms | 1748kb | OK | 5 | 5 |
13 | 44ms | 1468kb | OK | 5 | 5 |
14 | 44ms | 560kb | OK | 5 | 5 |
15 | 48ms | 528kb | OK | 5 | 10 |
16 | 100ms | 11524kb | OK | 5 |
17 | 72ms | 8036kb | OK | 5 | 10 |
18 | 104ms | 8764kb | OK | 5 |
19 | 60ms | 296kb | OK | 5 | 10 |
20 | 112ms | 14520kb | OK | 5 |
Punctaj total | 100 |