Given below is a buggy code for implementing BST(just to add node) but strange fact is that if i exculde given lines(see comments) from the code and include(see comments) one i get it working, although either way i guess it should work , but it doesnt, i cant figure out anything out here, badly stuck :(. Kindly help.
using namespace std;
#include<cstdio>
#include<vector>
#include<iostream>
class node{
public:
node *p;<...