Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The useless
int cmd = std::stoi(packet.substr(4,4));
was the problem, when an invalid base 10 command is received, an exception is thrown.
I won't try, but I'm sure all the solutions I'd tried were rigth
Thank you
Seeya
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi
"Caught unknown exception" unless I give a wrong result
I've tried a lot, lot of ways to no avail
sprintf, substr, append, ostringstream
Any hint?
thanks
This comment is hidden because it contains spoiler information about the solution
Hi yhimanshu484
I think that you should ignore the in between position
This comment is hidden because it contains spoiler information about the solution
Found it... I was not checking for one othe kind of null input
Hi,
What does
"should_work_for_edge_assertions
Test Passed
Test Crashed
Exit code: 0
Signal code: 11"
mean?
My code is working for empty string, having '/', '0', '9', ':', starting or ending with a digit....
Thank you, now it's working fine
reset it to no avail, I will try later, thank you, kingcobra
This comment is hidden because it contains spoiler information about the solution
Sorry, learning the rules...
C:
I have a working algorithm but I'm having trouble with returning the array. Commenting out the call to free() works fine with the example test. If not, I get an
*** Error in `/home/codewarrior/solution': munmap_chunk(): invalid pointer: 0x00007ffd94be9eb0 ***
int* nbMonths(int startPriceOld, int startPriceNew, int savingperMonth, double percentLossByMonth) {
int * result;
result = (int *) malloc(result);
...
return result;
}
void dotest(int startPriceOld, int startPriceNew, int savingperMonth, double percentLossByMonth, int *expr) {
....
//free(act); act = NULL;
Any advice?
Loading more items...