Dev cPP compilation appears D:\ collect2.exe [Error] ld returned 1 exit status

< H1 > include < iostream > < / H1 > < H1 > include < string > < / H1 >

using namespace std;
class ProductDog;
class CodeMonkey;
class ProductDog
{

string name;
int opt;

public:

int s;
void add_todolist(CodeMonkey& a,int b);
void reduce_todolist(CodeMonkey& a, int b);
void input()
{
    cin>>name>>opt>>s;
}
string outname()
{
    return name;
}
int outopt()
{
    return opt;
}
int outsum()
{
    return s;
}

};
class CodeMonkey
{

string name;
int todolist;

public:

CodeMonkey(string a,int b):name(a),todolist(b){}
CodeMonkey();
friend void ProductDog::add_todolist(CodeMonkey&,int);
friend void ProductDog::reduce_todolist(CodeMonkey& , int);
void input()
{
    cin>>name>>todolist;
}
string outname()
{
    return name;
}
void output()
{
    cout<<name<<" "<<todolist<<endl;
}

};
void ProductDog::add_todolist (CodeMonkey& a < int b)
{

a.todolist=a.todolist+b;

}
void ProductDog::reduce_todolist (CodeMonkey& a, int b)
{

)
a.todolist=a.todolist-b;

}
int main ()
{

CodeMonkey *p;
ProductDog *q;
int m,n,i,j,opt,sum;
string s;
cin>>n;
p=new CodeMonkey [n];
for(i=0;i<n;iPP)
p[i].input() ;
cin>>m;
q=new ProductDog [m];
for(i=0;i<m;iPP)
{
    q[i].input() ;
    for(j=0;j<n;jPP)
    {
        if(q[i].outname() ==p[j].outname() &&q[i].outopt() ==1)
        q[i].add_todolist(p[j],q[i].outsum() );
        else if(q[i].outname() ==p[j].outname() )
        q[i].reduce_todolist(p[j],q[i].outsum() );
    }
}
for(i=0;i<n;iPP)
{
    p[i].output() ;
}
return 0;

}

CPP
Mar.18,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3682d-2c027.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3682d-2c027.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?