Pagini recente » Borderou de evaluare (job #643331) | Borderou de evaluare (job #13791) | Borderou de evaluare (job #22857) | Borderou de evaluare (job #401243) | Borderou de evaluare (job #1508167)
Borderou de evaluare (job #1508167)
Raport evaluator
Compilare:
user.cpp: In constructor ‘Trie::Trie()’:
user.cpp:14:44: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset (child, NULL, sizeof (child));
^
user.cpp: In function ‘void insertTrie(Trie*, char*)’:
user.cpp:21:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^
user.cpp: In function ‘int removeTrie(Trie*, char*)’:
user.cpp:35:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^
user.cpp: In function ‘int countTrie(Trie*, char*)’:
user.cpp:54:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^
user.cpp: In function ‘int maxPrefixTrie(Trie*, char*, int)’:
user.cpp:65:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL || !node-> child[*s - 'a']) {
^
user.cpp: In function ‘int main()’:
user.cpp:73:36: 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:74:38: 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:76:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s);
^
user.cpp:85:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s);
^
/tmp/cc3Mo0lu.o: In function `main':
user.cpp:(.text.startup+0x54): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 232kb | OK | 5 | 5 |
2 | 0ms | 244kb | OK | 5 | 5 |
3 | 0ms | 248kb | OK | 5 | 5 |
4 | 0ms | 244kb | OK | 5 | 5 |
5 | 0ms | 248kb | OK | 5 | 5 |
6 | 0ms | 256kb | OK | 5 | 5 |
7 | 0ms | 268kb | OK | 5 | 5 |
8 | 0ms | 268kb | OK | 5 | 5 |
9 | 4ms | 404kb | OK | 5 | 5 |
10 | 8ms | 900kb | OK | 5 | 5 |
11 | 8ms | 296kb | OK | 5 | 5 |
12 | 20ms | 1604kb | OK | 5 | 5 |
13 | 24ms | 1348kb | OK | 5 | 5 |
14 | 28ms | 512kb | OK | 5 | 5 |
15 | 32ms | 484kb | OK | 5 | 10 |
16 | 72ms | 10072kb | OK | 5 |
17 | 40ms | 264kb | OK | 5 | 10 |
18 | 72ms | 7404kb | OK | 5 |
19 | 36ms | 268kb | OK | 5 | 10 |
20 | 84ms | 13452kb | OK | 5 |
Punctaj total | 100 |