Hey men
When i wanna run the code below,i get the famouse don't send message and i use code::blocks 8.02
#include <conio.h>
#include <iostream>
using namespace std;
int main(){
int start,end;
double a[start-end][2],p[start-end];
cout<<"Enter a number to begin with : ";
cin>>start;
cout<<"Enter a number to finish with : ";
cin>>end;
if(start==end || start>end){
cout<<"The beginning number must be smaller than the ending one.";}
else{
char c='y';
int sum1=0,sum2=0,ai=0,pi=0;
do{
for(register int i=start;i<=end;++i){
for(register int j=1;j<i;++j) if(i%j==0) sum1+=j;
for(register int j=1;j<sum1;++j) if(sum1%j==0) sum2+=j;
if(sum2==i){
if(sum1==i){
p[pi]=i;
++pi;}
else{
if(sum1<i){
a[ai][0]=sum1;
a[ai][1]=i;
++ai;}
else if(sum1>i){
a[ai][0]=i;
a[ai][1]=sum1;
++ai;}}}}
a[ai][0]=0;
p[pi]=0;
cout<<"Amicable pair(s) between "<<start<<" and "<<end<<"\n";
for(register int i=0;a[i][0]!=0;++i) cout<<"("<<a[i][0]<<","<<a[i][1]<<")";
cout<<"Perfect number(s) between "<<start<<" and "<<end<<"\n";
for(register int i=0;p[i]!=0;++i) cout<<p[i]<<",";
cout<<"\n";
cout<<"Do you want to continue(y/n) : ";
cin>>c;}
while(c=='y');
return 0;}}