Borderou de evaluare (job #1325247)

Utilizator gallexdAlex Gabor gallexd Data 23 ianuarie 2015 17:28:29
Problema Trie Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 55

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:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:53:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!p->next[c]) ^ user.cpp:55:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int prefix(char*)’: user.cpp:64:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<strlen(word); ++i) { ^ user.cpp:66:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p->next[c] == NULL) ^ user.cpp:68:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] p = p->next[c]; ^ user.cpp: In function ‘int main()’: user.cpp:75: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:76: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:80: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
10ms256kbOK55
20ms268kbOK55
30ms272kbOK55
40ms264kbOK55
50ms264kbOK55
60ms268kbOK55
74ms288kbOK55
84ms288kbOK55
94ms516kbKilled by signal 6(SIGABRT).00
1012ms924kbOK55
1120ms316kbOK55
1220ms1712kbWall time limit exceeded.00
1320ms1468kbKilled by signal 6(SIGABRT).00
1440ms532kbOK55
1548ms504kbOK50
1660ms10176kbWall time limit exceeded.0
1732ms372kbKilled by signal 6(SIGABRT).00
1852ms7424kbKilled by signal 11(SIGSEGV).0
1960ms292kbOK50
20100ms13560kbWall time limit exceeded.0
Punctaj total55

Ceva nu functioneaza?