Borderou de evaluare (job #1829401)

Utilizator antanaAntonia Boca antana Data 14 decembrie 2016 21:54:05
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void add_trie(trie*, char*, bool)’: user.cpp:27:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL) ^ user.cpp: In function ‘int main()’: user.cpp:68: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:69: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:75:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:79:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ user.cpp:89:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:93:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ /tmp/ccrMqiEE.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
10ms728kbOK10
28ms4172kbOK10
340ms20960kbOK10
4208msDepăşitMemory limit exceeded.0
5208msDepăşitMemory limit exceeded.0
6212msDepăşitMemory limit exceeded.0
7208msDepăşitMemory limit exceeded.0
8208msDepăşitMemory limit exceeded.0
9212msDepăşitMemory limit exceeded.0
10208msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?