Pagini recente » Borderou de evaluare (job #57469) | Borderou de evaluare (job #2635303) | Borderou de evaluare (job #1644900) | Borderou de evaluare (job #767317) | Borderou de evaluare (job #2814173)
Borderou de evaluare (job #2814173)
Raport evaluator
Compilare:
main.cpp: In function 'void trie_insert(trie*, char*)':
main.cpp:34:23: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | if (node -> e[ord[*s]] == NULL)
| ^~
main.cpp:35:23: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | node -> e[ord[*s]] = new trie();
| ^~
main.cpp:36:31: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | trie_insert(node -> e[ord[*s]], s + 1);
| ^~
main.cpp:41:31: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | if (node -> e[ord[mv[i]]] != NULL)
| ~~~~^
main.cpp:42:38: warning: array subscript has type 'char' [-Wchar-subscripts]
42 | val += node -> e[ord[mv[i]]] -> best;
| ~~~~^
main.cpp:43:32: warning: array subscript has type 'char' [-Wchar-subscripts]
43 | if (node -> e[ord[wmv[i]]] != NULL)
| ~~~~~^
main.cpp:44:39: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | val += node -> e[ord[wmv[i]]] -> cnt * w;
| ~~~~~^
main.cpp: In function 'int main()':
main.cpp:77:39: warning: array subscript has type 'char' [-Wchar-subscripts]
77 | if (node -> e[ord[mv[i]]] != NULL)
| ~~~~^
main.cpp:78:46: warning: array subscript has type 'char' [-Wchar-subscripts]
78 | val += node -> e[ord[mv[i]]] -> best;
| ~~~~^
main.cpp:79:40: warning: array subscript has type 'char' [-Wchar-subscripts]
79 | if (node -> e[ord[wmv[i]]] != NULL)
| ~~~~~^
main.cpp:80:47: warning: array subscript has type 'char' [-Wchar-subscripts]
80 | val += node -> e[ord[wmv[i]]] -> cnt * w;
| ~~~~~^
main.cpp:87:31: warning: array subscript has type 'char' [-Wchar-subscripts]
87 | if (node -> e[ord[bestmv]] != NULL)
| ^~~~~~
main.cpp:88:38: warning: array subscript has type 'char' [-Wchar-subscripts]
88 | node = node -> e[ord[bestmv]];
| ^~~~~~
main.cpp:57:23: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
57 | char s[NMAX + 1], ch;
| ^~
main.cpp:72:18: warning: 'bestmv' may be used uninitialized in this function [-Wmaybe-uninitialized]
72 | char bestmv;
| ^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Incorect | 0 |
2 | 2ms | 184kb | Incorect | 0 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 6ms | 638kb | Incorect | 0 |
6 | 6ms | 720kb | Incorect | 0 |
7 | 209ms | 33292kb | Incorect | 0 |
8 | 266ms | 42594kb | Incorect | 0 |
9 | 301ms | 48234kb | Time limit exceeded | 0 |
10 | 294ms | 47308kb | Incorect | 0 |
11 | 210ms | 29253kb | Incorect | 0 |
12 | 266ms | 38072kb | Incorect | 0 |
13 | 305ms | 44347kb | Time limit exceeded | 0 |
14 | 295ms | 43601kb | Incorect | 0 |
15 | 305ms | 48529kb | Time limit exceeded | 0 |
16 | 304ms | 48705kb | Time limit exceeded | 0 |
17 | 306ms | 48697kb | Time limit exceeded | 0 |
18 | 306ms | 48730kb | Time limit exceeded | 0 |
19 | 301ms | 53006kb | Time limit exceeded | 0 |
20 | 194ms | 4550kb | Incorect | 0 |
Punctaj total | 0 |