#include is solution.Similarly if one does not get these kinds of errors include respective header file.cpp kodeknight errors See alsoFor a Given node of a binary tree, print the K distance nodes.Find the distance between 2 nodes in Binary TreeFind the distance between 2 nodes in Binary TreeProgram to count leaf nodes in a binary treeFriend Circle - Hackerrank