Rotate image anticlock 90 degree

why it is showing display error and can we use cout function instead of display function?

hello @lovely

it is showing error becuase u are calling display function which is not there in ur code.
u have to write ur own display function(if u want to )
otherwise just use two loops and print ur matrix elements using cout

but in the video tutorial, this code was running on using display function

in the code shown in video , display function was there

so where should i implement cout function inside the rotate function or in main function its still showing error on using it.can u correct it in my code.

@lovely

check now->

just added loop to print ur matrix


but on submitting this code ,test cases are not PASSING. :neutral_face: second row is printing in output after third row

@lovely
check now->