dreaming.cpp: In function 'int radius(int)':
dreaming.cpp:26:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < gp[u].size(); i++){
~~^~~~~~~~~~~~~~
dreaming.cpp:30:36: warning: 'pospar' may be used uninitialized in this function [-Wmaybe-uninitialized]
distan1 -= pospar; distan2 += pospar;
~~~~~~~~^~~~~~~~~
dreaming.cpp: In function 'int fndext(int)':
dreaming.cpp:43:12: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ans;
^~~
dreaming.cpp:38:9: warning: 'maypes' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(dis[i] > maypes){
^~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:58:20: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
parents[nodext1] = -1;
^
dreaming.cpp:61:28: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
int diam1 = dis[nodext2], diam2;
^
dreaming.cpp:71:21: warning: 'nodext11' may be used uninitialized in this function [-Wmaybe-uninitialized]
parents[nodext11] = -1;
^
dreaming.cpp:75:38: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
return max(diam1,max(diam2,radius(nodext22) + radius(nodext2) + L));
~~~~~~^~~~~~~~~~
dreaming.cpp:38:9: warning: 'maypes' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(dis[i] > maypes){
^~
dreaming.cpp:36:14: note: 'maypes' was declared here
int ans, maypes;
^~~~~~
dreaming.cpp:72:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
dfs(nodext11,0);
~~~^~~~~~~~~~~~
dreaming.cpp:38:9: warning: 'maypes' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(dis[i] > maypes){
^~
dreaming.cpp:36:14: note: 'maypes' was declared here
int ans, maypes;
^~~~~~
dreaming.cpp:38:9: warning: 'maypes' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(dis[i] > maypes){
^~
dreaming.cpp:36:14: note: 'maypes' was declared here
int ans, maypes;
^~~~~~
dreaming.cpp:38:9: warning: 'maypes' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(dis[i] > maypes){
^~
dreaming.cpp:36:14: note: 'maypes' was declared here
int ans, maypes;
^~~~~~