Borderou de evaluare (job #1557206)
Raport evaluator
Compilare:
user.cpp: In constructor ‘Trie::Trie()’:
user.cpp:14:44: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset (child, NULL, sizeof (child));
^
user.cpp: In function ‘void insertTrie(Trie*, char*, int, int)’:
user.cpp:24:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^
user.cpp: In function ‘int DFS(Trie*, int)’:
user.cpp:60:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:106:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ratina.in", "r", stdin);
^
user.cpp:107:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ratina.out", "w", stdout);
^
user.cpp:112:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d ", &N, &Q);
^
user.cpp:115:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s);
^
user.cpp:124:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
user.cpp:126:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &nod1, &nod2);
^
user.cpp:131:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &nod);
^
/tmp/cckw7LCr.o: In function `main':
user.cpp:(.text.startup+0xa0): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 172ms | 8428kb | OK | 5 |
2 | 180ms | 8512kb | OK | 5 |
3 | 40ms | 9848kb | OK | 5 |
4 | 36ms | 9844kb | OK | 5 |
5 | 36ms | 9128kb | OK | 5 |
6 | 36ms | 9120kb | OK | 5 |
7 | 232ms | 36220kb | Incorect | 0 |
8 | 236ms | 36464kb | Incorect | 0 |
9 | 232ms | 36432kb | Incorect | 0 |
10 | 180ms | 8512kb | OK | 5 |
11 | 172ms | 4660kb | OK | 5 |
12 | 188ms | 12988kb | OK | 5 |
13 | 184ms | 8644kb | OK | 5 |
14 | 188ms | 12984kb | OK | 5 |
15 | 184ms | 8728kb | OK | 5 |
16 | 192ms | 16760kb | OK | 5 |
17 | 368ms | 19288kb | OK | 5 |
18 | 360ms | 20140kb | OK | 5 |
19 | 368ms | 17360kb | OK | 5 |
20 | 364ms | 17152kb | OK | 5 |
Punctaj total | 85 |