Pagini recente » Borderou de evaluare (job #660575) | Borderou de evaluare (job #1099863) | Borderou de evaluare (job #1598059) | Borderou de evaluare (job #2074300) | Borderou de evaluare (job #1557894)
Borderou de evaluare (job #1557894)
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)’:
user.cpp:24:15: warning: NULL used in arithmetic [-Wpointer-arith]
if (*s == NULL) {
^
user.cpp: In function ‘int DFS(Trie*, int)’:
user.cpp:59:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:105: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:106: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:111: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:114:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s);
^
user.cpp:123:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
user.cpp:125: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:130:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &nod);
^
/tmp/ccxAuZ8v.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 | 180ms | 8416kb | OK | 5 |
2 | 184ms | 8512kb | OK | 5 |
3 | 40ms | 9848kb | OK | 5 |
4 | 40ms | 9844kb | OK | 5 |
5 | 36ms | 9112kb | OK | 5 |
6 | 40ms | 9112kb | OK | 5 |
7 | 244ms | 36224kb | Incorect | 0 |
8 | 240ms | 36472kb | Incorect | 0 |
9 | 244ms | 36436kb | Incorect | 0 |
10 | 180ms | 8508kb | OK | 5 |
11 | 176ms | 4656kb | OK | 5 |
12 | 184ms | 12972kb | OK | 5 |
13 | 184ms | 8636kb | OK | 5 |
14 | 196ms | 12972kb | OK | 5 |
15 | 184ms | 8732kb | OK | 5 |
16 | 192ms | 16748kb | OK | 5 |
17 | 372ms | 19268kb | OK | 5 |
18 | 372ms | 20128kb | OK | 5 |
19 | 348ms | 17360kb | OK | 5 |
20 | 356ms | 17148kb | OK | 5 |
Punctaj total | 85 |