Borderou de evaluare (job #1484752)

Utilizator SilviuIIon Silviu SilviuI Data 11 septembrie 2015 19:42:47
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:54:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.in","r",stdin); ^ user.cpp:55:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.out","w",stdout); ^ user.cpp:56:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); gets(s); root=new trie; ^ user.cpp:56:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); gets(s); root=new trie; ^ user.cpp:58:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ss+1); strcat(s+1,ss+1); ^ user.cpp:61:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); gets(s); ^ user.cpp:61:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); gets(s); ^ user.cpp:63:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ss+1); add_intrie(i); ^ /tmp/ccmYq9JE.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
156ms376kbOK10
24ms328kbOK10
312ms336kbKilled by signal 11(SIGSEGV).0
416ms600kbKilled by signal 11(SIGSEGV).0
552ms2164kbKilled by signal 11(SIGSEGV).0
6112ms2196kbKilled by signal 11(SIGSEGV).0
7204ms2224kbKilled by signal 11(SIGSEGV).0
8196ms1852kbKilled by signal 11(SIGSEGV).0
9208ms1540kbKilled by signal 11(SIGSEGV).0
10204ms480kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?