As I can see at your "error picture", you've got "No such file or directory" while tryin to open c:/../Lab2/tasks. Check if that path is correct / exists first.
No such file or directory