Counting sort error

Hello sir/ma’am,

why is my code showing error?? https://ide.codingblocks.com/s/161815

@priyanshi.agarwal3405 its working fine i guess also passed the test cases

On compiling and testing it shows this error

Error !

terminate called after throwing an instance of ‘std::bad_array_new_length’
what(): std::bad_array_new_length
/bin/run.sh: line 4: 17 Aborted (core dumped) ./exe

@priyanshi.agarwal3405 it worked fine on coding blocks ide try running it there

Yeah , then why is it showing error when i compile and test on course???

@priyanshi.agarwal3405 don’t know some tech error i think. is it running correct on your system compiler?

if yes then dont need to worry its correct
also dont forget to mark the doubt resolved :smiley:

Yeah its running fine on my system compiler.

ok then no need to worry some bug in course compiler maybe it dont support something