function not declared in the scope

but the code is giving the same error even after adding the header file..is there any other header file to be added??