Pagini recente » Cod sursa (job #46357) | Cod sursa (job #152855) | Cod sursa (job #184445) | Cod sursa (job #798533) | Borderou de evaluare (job #1557880)
Borderou de evaluare (job #1557880)
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/ccoyeOWl.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 | 8424kb | OK | 5 |
| 2 | 184ms | 8520kb | OK | 5 |
| 3 | 40ms | 9856kb | OK | 5 |
| 4 | 40ms | 9860kb | OK | 5 |
| 5 | 36ms | 9116kb | OK | 5 |
| 6 | 40ms | 9116kb | OK | 5 |
| 7 | 232ms | 36232kb | Incorect | 0 |
| 8 | 240ms | 36476kb | Incorect | 0 |
| 9 | 240ms | 36444kb | Incorect | 0 |
| 10 | 188ms | 8520kb | OK | 5 |
| 11 | 176ms | 4660kb | OK | 5 |
| 12 | 184ms | 12984kb | OK | 5 |
| 13 | 180ms | 8644kb | OK | 5 |
| 14 | 192ms | 12984kb | OK | 5 |
| 15 | 180ms | 8736kb | OK | 5 |
| 16 | 188ms | 16752kb | OK | 5 |
| 17 | 360ms | 19280kb | OK | 5 |
| 18 | 372ms | 20136kb | OK | 5 |
| 19 | 352ms | 17364kb | OK | 5 |
| 20 | 364ms | 17156kb | OK | 5 |
| Punctaj total | 85 |