C ++ implementation to Count the nodes in the given tree whose weight is a Perfect Number
#include <bits/stdc++.h> NEW_LINE using namespace std ; int ans = 0 ; vector < int > graph [ 100 ] ; vector < int > weight ( 100 ) ;