Pagini recente » Borderou de evaluare (job #1820464) | Borderou de evaluare (job #2365781) | Borderou de evaluare (job #2158795) | Borderou de evaluare (job #1772789) | Borderou de evaluare (job #1325247)
Borderou de evaluare (job #1325247)
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 |
1 | 0ms | 256kb | OK | 5 | 5 |
2 | 0ms | 268kb | OK | 5 | 5 |
3 | 0ms | 272kb | OK | 5 | 5 |
4 | 0ms | 264kb | OK | 5 | 5 |
5 | 0ms | 264kb | OK | 5 | 5 |
6 | 0ms | 268kb | OK | 5 | 5 |
7 | 4ms | 288kb | OK | 5 | 5 |
8 | 4ms | 288kb | OK | 5 | 5 |
9 | 4ms | 516kb | Killed by signal 6(SIGABRT). | 0 | 0 |
10 | 12ms | 924kb | OK | 5 | 5 |
11 | 20ms | 316kb | OK | 5 | 5 |
12 | 20ms | 1712kb | Wall time limit exceeded. | 0 | 0 |
13 | 20ms | 1468kb | Killed by signal 6(SIGABRT). | 0 | 0 |
14 | 40ms | 532kb | OK | 5 | 5 |
15 | 48ms | 504kb | OK | 5 | 0 |
16 | 60ms | 10176kb | Wall time limit exceeded. | 0 |
17 | 32ms | 372kb | Killed by signal 6(SIGABRT). | 0 | 0 |
18 | 52ms | 7424kb | Killed by signal 11(SIGSEGV). | 0 |
19 | 60ms | 292kb | OK | 5 | 0 |
20 | 100ms | 13560kb | Wall time limit exceeded. | 0 |
Punctaj total | 55 |