Please tell the error

hi @adarshsingh2k try writing the for loop like this
image

Output source.cpp: In function 'void magic(char ()[1000], int, int, int, int)’: source.cpp:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 15 | if(ch == ""){ | ^~~ source.cpp:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 18 | else if(ch == “.”){ | ^~~

@adarshsingh2k you are comparing characters with strings…use single quotes for characters like this
'*' NOT "*"

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.