Borderou de evaluare (job #1519972)

Utilizator ipus1Stefan Enescu ipus1 Data 8 noiembrie 2015 10:38:33
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*, int)’: 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,a+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
10ms276kbOk... pentru moment55
20ms276kbBine, Ionel!55
30ms256kbKilled by signal 11(SIGSEGV).00
40ms264kbKilled by signal 11(SIGSEGV).00
50ms244kbKilled by signal 11(SIGSEGV).00
60ms248kbKilled by signal 11(SIGSEGV).00
70ms244kbKilled by signal 11(SIGSEGV).00
80ms244kbKilled by signal 11(SIGSEGV).00
90ms252kbKilled by signal 11(SIGSEGV).00
1048ms668kbBine, Ionel!55
110ms276kbOk... pentru moment55
120ms272kbOk... pentru moment55
130ms252kbKilled by signal 11(SIGSEGV).00
140ms268kbKilled by signal 11(SIGSEGV).00
150ms244kbKilled by signal 11(SIGSEGV).00
160ms244kbKilled by signal 11(SIGSEGV).0
170ms252kbKilled by signal 11(SIGSEGV).0
180ms244kbKilled by signal 11(SIGSEGV).00
190ms240kbKilled by signal 11(SIGSEGV).0
2048ms664kbOk... pentru moment5
Punctaj total25

Ceva nu functioneaza?