Borderou de evaluare (job #2370043)

Utilizator AplayLazar Laurentiu Aplay Data 6 martie 2019 10:26:19
Problema Trie Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'void trieAdd(TRIE*, char*)': main.cpp:27:34: warning: NULL used in arithmetic [-Wpointer-arith] for (int it = 0; word[it] != NULL; ++it) { ^~~~ main.cpp: In function 'int trieCount(TRIE*, char*)': main.cpp:58:46: warning: NULL used in arithmetic [-Wpointer-arith] for (it = 0; root != NULL && word[it] != NULL; ++it) { ^~~~ main.cpp:62:24: warning: NULL used in arithmetic [-Wpointer-arith] return word[it] != NULL || root == NULL ? 0 : root->apparitions; ^~~~ main.cpp: In function 'int prefixCount(TRIE*, char*)': main.cpp:68:50: warning: NULL used in arithmetic [-Wpointer-arith] for (int it = 0; root != NULL && word[it] != NULL; ++it) { ^~~~ main.cpp: In function 'int main()': main.cpp:91:13: warning: unused variable 'a' [-Wunused-variable] int a = 3; ^ main.cpp:85: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); ^ main.cpp:86: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); ^ main.cpp:89:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %s\n", &operation, word); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
64ms131kbOK55
77ms262kbOK55
89ms131kbOK55
914ms524kbOK55
1020ms1441kbOK55
1123ms262kbOK55
1244ms2752kbOK55
1350ms2359kbOK55
1448ms655kbOK55
1558ms655kbOK510
16144ms18939kbOK5
1778ms262kbOK510
18143ms13893kbOK5
1956ms262kbOK50
20114ms20496kbMemory limit exceeded0
Punctaj total90

Ceva nu functioneaza?