The program in the program.cpp file cannot be directly copy pasted on leetcode instead use the link given at the top of every program.cpp file to see the leetcode solution and explanation. !NOTE if the link is not present then the program can be directly used for the solution