Search found 5 matches

by Dani
Sun Oct 05, 2003 3:43 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22277

Re: hey .........

hey dont try to allocate memory dynamically . it would be better of if u use int array instead , not chance of invalid memory reference rather than array index out of bound . i guess this will help best regards Riyad Hi Riyad!! Thanks for your replay again!!! :D I don't know what is happening!! My ...
by Dani
Sat Oct 04, 2003 12:38 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22277

Hi, Ping!

Don't forget the output format!!
Your output should follow the exact format shown in the sample!!!

First you need to read all inputs and after, print all output!!

Good luck!!
by Dani
Sat Oct 04, 2003 12:20 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22277

Thanks for replay! I know this!! But this error isn't happen with my tests!!! I think that exist a kind of test that cause this error. Do you know? Please, this is my code. C: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <malloc.h> typedef struct{ int n; int c; } Entrada; int eh...
by Dani
Fri Oct 03, 2003 10:53 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22277

Thanks a lot!!!

But now, the judge give me "invalid memory reference". Do you know what test could to motivate this error?
by Dani
Sun Sep 28, 2003 5:49 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22277

406 -WA - What is happening? PLEEEEAAAASSSSEEEEE!!!!

:( :( :( Can anyone give me some inputs with outputs? The suggestions on this site are ok for my algorithm but, judge give me WA!!! Why? [c] #include <stdio.h> #include <stdlib.h> #include <math.h> int eh_primo(int num) { int qd=2,i; double raiz; raiz = sqrt(num); for (i=2;i<=raiz;i++) { if ((num%i)...

Go to advanced search