Pagini recente » Borderou de evaluare (job #143320) | Borderou de evaluare (job #1106295) | Borderou de evaluare (job #1420718) | Borderou de evaluare (job #1520834)
Borderou de evaluare (job #1520834)
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 |
1 | 0ms | 272kb | Ok... pentru moment | 5 | 5 |
2 | 0ms | 272kb | Bine, Ionel! | 5 | 5 |
3 | 0ms | 252kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
4 | 0ms | 256kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
5 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
6 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
7 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
8 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
9 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
10 | 48ms | 660kb | Bine, Ionel! | 5 | 5 |
11 | 0ms | 276kb | Bine, Ionel! | 5 | 5 |
12 | 0ms | 272kb | Bine, Ionel! | 5 | 5 |
13 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
14 | 0ms | 256kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
15 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
16 | 0ms | 244kb | Killed by signal 11(SIGSEGV). | 0 |
17 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 |
18 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
19 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 |
20 | 48ms | 656kb | Bine, Ionel! | 5 |
Punctaj total | 25 |