How to solve real life problems in programming

How to solve " Permission denied" & "1d returned & 1exit status " problem??