У меня есть какая-то функция:
void addNormalLine(int id, LineNumber number, Rate smsRate, Rate callRate) {
list<Account>::iterator iAccounts;
findAccount(iAccounts, id);
if(iAccounts == listOfAccounts.end()){
throw "AccountDoesNotExist";
}
if(lineExists(number)){
throw "LineExists";
} else{
iAccounts->increaseNumLines();
shared_ptr<Line> currentLine(new Line(id, number, smsRate, callRate)); //here I have some problems
listOfLines.push_back(currentLine); //without these two rows it works, but didn't add lines to my list
}
}
Account, Rate, LineNumber - some classes
, но она всегда добавляет только одно или два числа, если я добавляю 3, она всегда заканчивается, и я получаю terminated, exit value: 3
, я пыталась Google, но не сделалане могу найти, что это должно означать, заранее спасибо