On submitting the code for this question,I am getting the following error:
source.cpp: In function ‘Node* intersectionOfTwoLinkedLists(Node*, Node*)’:
source.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
29 | }
| ^
LINK : https://ide.codingblocks.com/s/304639
Please help me resolve the error.