Borderou de evaluare (job #1829399)

Utilizator antanaAntonia Boca antana Data 14 decembrie 2016 21:52:08
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:28:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*s == NULL) ^ user.cpp: In function ‘int main()’: user.cpp:79: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:80: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:86:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:90:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ user.cpp:100:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:104:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ /tmp/cc1A17bG.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
10ms1096kbOK10
212ms7232kbOK10
360ms37196kbOK10
4192msDepăşitMemory limit exceeded.0
5196msDepăşitMemory limit exceeded.0
6196msDepăşitMemory limit exceeded.0
7192msDepăşitMemory limit exceeded.0
8192msDepăşitMemory limit exceeded.0
9196msDepăşitMemory limit exceeded.0
10192msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?