power.cpp: In function 'void dfs(long long int, long long int)':
power.cpp:9:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i=0;i<v[p].size();i++)if(v[p][i] - x)dfs(v[p][i], p);
| ~^~~~~~~~~~~~
power.cpp:11:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i=0;i<v[p].size();i++)if(v[p][i] - x)dp[p] += dp[v[p][i]], ans = max(ans, dp[v[p][i]] + 1);
| ~^~~~~~~~~~~~
power.cpp:15:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | else for(int i=0;i<v[p].size();i++)if(v[p][i] - x)dp[p] += dp[v[p][i]];
| ~^~~~~~~~~~~~
power.cpp: At global scope:
power.cpp:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
17 | main(){
| ^~~~