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.
Either I'm experiencing an incredible brain failure or merely trying to access a member of the input array causes a SIGSEGV signal.
I'm guessing that's what RafaARV means.
EDIT: Even stranger, at() seems to work just fine, i.e.:
EDIT 2: Just realised the first test is an empty vector, hence arr[0] freaking out. doh.
To be completely honest I stole it from Codility. I just find CodeWars a much nicer environment and thought I'd give others the benefit of doing it here :)
I'm still figuring out the interface so I'll see how I can add random tests at some point.
Debugging seems to be an absolute bitch. Am I missing something or is the only output I'm allowed to see that of the tests? =/