Borderou de evaluare (job #1328406)

Utilizator gallexdAlex Gabor gallexd Data 28 ianuarie 2015 12:20:50
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void add(char*)’: user.cpp:18:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:20:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p->next[c] == NULL) ^ user.cpp:21:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p->next[c] = new Node; ^ user.cpp:22:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘void rem(Node*, char*)’: user.cpp:30:18: warning: NULL used in arithmetic [-Wpointer-arith] if (*word == NULL) ^ user.cpp:34:22: warning: NULL used in arithmetic [-Wpointer-arith] if (*(word+1) == NULL) ^ user.cpp: In function ‘int app(char*)’: user.cpp:62:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:64:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!p->next[c] || p->next[c]->counter == 0) ^ user.cpp:64:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!p->next[c] || p->next[c]->counter == 0) ^ user.cpp:66:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int prefix(char*)’: user.cpp:75:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:77:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p->next[c] == NULL || p->next[c]->counter == 0) ^ user.cpp:77:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p->next[c] == NULL || p->next[c]->counter == 0) ^ user.cpp:79:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int main()’: user.cpp:86:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.in", "rt", stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms256kbOK55
20ms260kbOK55
30ms268kbOK55
40ms264kbOK55
50ms268kbOK55
60ms276kbOK55
74ms288kbOK55
84ms284kbOK55
98ms424kbOK55
1012ms920kbOK55
1120ms316kbOK55
1232ms1640kbOK55
1336ms1384kbOK55
1440ms532kbOK55
1548ms504kbOK510
1692ms10772kbOK5
1756ms288kbOK510
1896ms8132kbOK5
1960ms292kbOK510
20108ms13616kbOK5
Punctaj total100

Ceva nu functioneaza?