getting memory as 0 MB

when submitting for Sereja and Permutations all my solutions are getting wrong answer and 0 MB… this is happening with most cases who are submitting in c++… why is this ???

It means you and those who are getting the same has answered wrongly, there are many who have got AC in C++. Have a look: