I can't see output pin in the function

When I create it from scratch, I see an output but immediately disappears after a few minutes of work.

And before it disappears, if I try to compile, I get this error