Pagini recente » Borderou de evaluare (job #1681326) | Borderou de evaluare (job #3030198) | Borderou de evaluare (job #2509942) | Borderou de evaluare (job #1274134) | Borderou de evaluare (job #1557926)
Borderou de evaluare (job #1557926)
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/ccuADW0T.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 | 176ms | 8416kb | OK | 5 |
2 | 180ms | 8508kb | OK | 5 |
3 | 40ms | 9844kb | OK | 5 |
4 | 40ms | 9840kb | OK | 5 |
5 | 40ms | 9116kb | OK | 5 |
6 | 40ms | 9112kb | OK | 5 |
7 | 316ms | 41872kb | OK | 5 |
8 | 320ms | 43224kb | OK | 5 |
9 | 320ms | 43068kb | OK | 5 |
10 | 184ms | 8512kb | OK | 5 |
11 | 172ms | 4660kb | OK | 5 |
12 | 184ms | 12980kb | OK | 5 |
13 | 184ms | 8644kb | OK | 5 |
14 | 192ms | 12976kb | OK | 5 |
15 | 188ms | 8732kb | OK | 5 |
16 | 192ms | 16740kb | OK | 5 |
17 | 356ms | 19276kb | OK | 5 |
18 | 368ms | 20132kb | OK | 5 |
19 | 356ms | 17360kb | OK | 5 |
20 | 360ms | 17140kb | OK | 5 |
Punctaj total | 100 |