biochips.cpp: In function 'void dfs(int)':
biochips.cpp:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[s].size();i++) dfs(g[s][i]);
~^~~~~~~~~~~~
biochips.cpp: In function 'int main()':
biochips.cpp:15:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
biochips.cpp:18:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int p; scanf("%d%d",&p,&w[i]);
~~~~~^~~~~~~~~~~~~~~~~
biochips.cpp:22:5: warning: 'rt' may be used uninitialized in this function [-Wmaybe-uninitialized]
dfs(rt); dp[0]=-1000000000; dpp[0]=-1000000000;
~~~^~~~