Pagini recente » Borderou de evaluare (job #1059586) | Borderou de evaluare (job #143778) | Borderou de evaluare (job #835605) | Borderou de evaluare (job #1337596) | Borderou de evaluare (job #1328406)
Borderou de evaluare (job #1328406)
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 |
| 1 | 0ms | 256kb | OK | 5 | 5 |
| 2 | 0ms | 260kb | OK | 5 | 5 |
| 3 | 0ms | 268kb | OK | 5 | 5 |
| 4 | 0ms | 264kb | OK | 5 | 5 |
| 5 | 0ms | 268kb | OK | 5 | 5 |
| 6 | 0ms | 276kb | OK | 5 | 5 |
| 7 | 4ms | 288kb | OK | 5 | 5 |
| 8 | 4ms | 284kb | OK | 5 | 5 |
| 9 | 8ms | 424kb | OK | 5 | 5 |
| 10 | 12ms | 920kb | OK | 5 | 5 |
| 11 | 20ms | 316kb | OK | 5 | 5 |
| 12 | 32ms | 1640kb | OK | 5 | 5 |
| 13 | 36ms | 1384kb | OK | 5 | 5 |
| 14 | 40ms | 532kb | OK | 5 | 5 |
| 15 | 48ms | 504kb | OK | 5 | 10 |
| 16 | 92ms | 10772kb | OK | 5 |
| 17 | 56ms | 288kb | OK | 5 | 10 |
| 18 | 96ms | 8132kb | OK | 5 |
| 19 | 60ms | 292kb | OK | 5 | 10 |
| 20 | 108ms | 13616kb | OK | 5 |
| Punctaj total | 100 |