Error in comparing the strings

code: https://ide.codingblocks.com/s/217544
please look at the code
i am getting trouble in comparing the substring with “pi”

it is also giving wrong datatype error

reply as soon as possible sir


the data type error i have fixed i have made a void function.
that error was because it could reach the end of the function without returning any value
the other error was strcmp works on character arrays and not objects of string data type
i changed the syntax in the code itself you can view that
if your doubt is solved, please mark it as resolved
@Chhayansh

i am getting the wrong output with the above code
also it give run time error in the editor


sorry i had made one minor mistake, it is fixed in this code, it also gets submitted