Pagini recente » Borderou de evaluare (job #1100223) | Borderou de evaluare (job #1131680) | Borderou de evaluare (job #333235) | Borderou de evaluare (job #2676540) | Borderou de evaluare (job #1325244)
Borderou de evaluare (job #1325244)
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 |
1 | 0ms | 260kb | OK | 5 | 5 |
2 | 0ms | 264kb | Incorect | 0 | 0 |
3 | 0ms | 272kb | Incorect | 0 | 0 |
4 | 0ms | 264kb | Incorect | 0 | 0 |
5 | 0ms | 268kb | Incorect | 0 | 0 |
6 | 0ms | 272kb | Incorect | 0 | 0 |
7 | 4ms | 284kb | Incorect | 0 | 0 |
8 | 4ms | 284kb | Incorect | 0 | 0 |
9 | 4ms | 420kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
10 | 12ms | 920kb | Incorect | 0 | 0 |
11 | 20ms | 320kb | Incorect | 0 | 0 |
12 | 20ms | 1616kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
13 | 36ms | 1376kb | Incorect | 0 | 0 |
14 | 40ms | 532kb | Incorect | 0 | 0 |
15 | 48ms | 504kb | Incorect | 0 | 0 |
16 | 60ms | 10088kb | Killed by signal 11(SIGSEGV). | 0 |
17 | 32ms | 288kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
18 | 52ms | 7440kb | Killed by signal 11(SIGSEGV). | 0 |
19 | 60ms | 288kb | Incorect | 0 | 0 |
20 | 104ms | 13488kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 5 |