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 ...
Search found 5 matches
- Sun Oct 05, 2003 3:43 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
- Sat Oct 04, 2003 12:38 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
- Sat Oct 04, 2003 12:20 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
- Fri Oct 03, 2003 10:53 pm
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
- Sun Sep 28, 2003 5:49 pm
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
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 ...
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 ...