Borderou de evaluare (job #1325244)

Utilizator gallexdAlex Gabor gallexd Data 23 ianuarie 2015 16:42:50
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 5

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:33:22: warning: NULL used in arithmetic [-Wpointer-arith] if (*(word+1) == NULL) ^ user.cpp: In function ‘int app(char*)’: user.cpp:50:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:52:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!p->next[c]) ^ user.cpp:54:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int prefix(char*)’: user.cpp:63:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:65:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p->next[c] == NULL) ^ user.cpp:67:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int main()’: user.cpp:74: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); ^ user.cpp:75:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trie.out", "wt", stdout); ^ user.cpp:79:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %s\n", &cmd, word); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms260kbOK55
20ms264kbIncorect00
30ms272kbIncorect00
40ms264kbIncorect00
50ms268kbIncorect00
60ms272kbIncorect00
74ms284kbIncorect00
84ms284kbIncorect00
94ms420kbKilled by signal 11(SIGSEGV).00
1012ms920kbIncorect00
1120ms320kbIncorect00
1220ms1616kbKilled by signal 11(SIGSEGV).00
1336ms1376kbIncorect00
1440ms532kbIncorect00
1548ms504kbIncorect00
1660ms10088kbKilled by signal 11(SIGSEGV).0
1732ms288kbKilled by signal 11(SIGSEGV).00
1852ms7440kbKilled by signal 11(SIGSEGV).0
1960ms288kbIncorect00
20104ms13488kbKilled by signal 11(SIGSEGV).0
Punctaj total5

Ceva nu functioneaza?