Pagini recente » Borderou de evaluare (job #308239) | Borderou de evaluare (job #272871) | Borderou de evaluare (job #2376319) | Borderou de evaluare (job #2206333) | Borderou de evaluare (job #1829403)
Borderou de evaluare (job #1829403)
Raport evaluator
Compilare:
user.cpp: In function ‘void add_trie(trie*, char*)’:
user.cpp:27:14: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL)
^
user.cpp: In function ‘void longest_prefix(trie*, char*)’:
user.cpp:60:14: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL)
^
user.cpp: In function ‘int main()’:
user.cpp:74:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sub.in", "r", stdin);
^
user.cpp:75:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sub.out", "w", stdout);
^
user.cpp:81:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:85:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
user.cpp:95:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &m);
^
user.cpp:99:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
/tmp/cccK4NFZ.o: In function `main':
user.cpp:(.text.startup+0x9d): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 484kb | OK | 10 |
2 | 4ms | 2364kb | OK | 10 |
3 | 20ms | 10152kb | OK | 10 |
4 | 124ms | 63332kb | OK | 10 |
5 | 204ms | Depăşit | Memory limit exceeded. | 0 |
6 | 212ms | Depăşit | Memory limit exceeded. | 0 |
7 | 204ms | Depăşit | Memory limit exceeded. | 0 |
8 | 204ms | Depăşit | Memory limit exceeded. | 0 |
9 | 208ms | Depăşit | Memory limit exceeded. | 0 |
10 | 208ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 40 |