Borderou de evaluare (job #1520834)

Utilizator ipus1Stefan Enescu ipus1 Data 9 noiembrie 2015 16:17:44
Problema Xor Max Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 25

Raport evaluator

Compilare: user.cpp: In function ‘void insert(trie*, char*)’: user.cpp:20:13: warning: NULL used in arithmetic [-Wpointer-arith] {if(*s==NULL) ^ user.cpp:22:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(nod->fii[*s]==NULL) ^ user.cpp:23:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] nod->fii[*s]=new trie; ^ user.cpp:24:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] insert(nod->fii[*s],s+1); ^ user.cpp: In function ‘int xoreala(trie*, char*, int)’: user.cpp:27:13: warning: NULL used in arithmetic [-Wpointer-arith] {if(*s==NULL) ^ user.cpp:29:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(nod->fii[*s]==NULL) ^ user.cpp:40:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] return pow(a)+xoreala(nod->fii[*s],s+1,a-1); ^ user.cpp: In function ‘int main()’: user.cpp:44:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] {freopen ("xormax.in","r",stdin); ^ user.cpp:45:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("xormax.out","w",stdout); ^ user.cpp:47:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:48:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:66:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {scanf("%d",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms272kbOk... pentru moment55
20ms272kbBine, Ionel!55
30ms252kbKilled by signal 11(SIGSEGV).00
40ms256kbKilled by signal 11(SIGSEGV).00
50ms240kbKilled by signal 11(SIGSEGV).00
60ms248kbKilled by signal 11(SIGSEGV).00
70ms248kbKilled by signal 11(SIGSEGV).00
80ms248kbKilled by signal 11(SIGSEGV).00
90ms240kbKilled by signal 11(SIGSEGV).00
1048ms660kbBine, Ionel!55
110ms276kbBine, Ionel!55
120ms272kbBine, Ionel!55
130ms248kbKilled by signal 11(SIGSEGV).00
140ms256kbKilled by signal 11(SIGSEGV).00
150ms240kbKilled by signal 11(SIGSEGV).00
160ms244kbKilled by signal 11(SIGSEGV).0
170ms248kbKilled by signal 11(SIGSEGV).0
180ms248kbKilled by signal 11(SIGSEGV).00
190ms240kbKilled by signal 11(SIGSEGV).0
2048ms656kbBine, Ionel!5
Punctaj total25

Ceva nu functioneaza?