Syntax problem (error)

Can’t we return map datatype in a function? https://ide.codingblocks.com/s/108542 Please check the code.

@samriddhi.srivastava2017
You have to specify its parameters as well.
Instead of map<> , write
map< int , vector< int> >
as the return type.

I have tried this way also, it did not work

Got it Sir, I did not add space between ‘>>’ these closing tags