dowsing.cpp: In function 'void FindTreasure(int)':
dowsing.cpp:11:9: warning: unused variable 'f1' [-Wunused-variable]
int i, f1, f2, a, b, x, y, x1, x2, y1, y2, k;
^~
dowsing.cpp:11:13: warning: unused variable 'f2' [-Wunused-variable]
int i, f1, f2, a, b, x, y, x1, x2, y1, y2, k;
^~
dowsing.cpp:11:45: warning: unused variable 'k' [-Wunused-variable]
int i, f1, f2, a, b, x, y, x1, x2, y1, y2, k;
^
dowsing.cpp:60:11: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(Detect(i, y2)) Report(x1, y2);
~~~~~~^~~~~~~
dowsing.cpp:61:13: warning: 'y1' may be used uninitialized in this function [-Wmaybe-uninitialized]
else Report(x2, y1);
~~~~~~^~~~~~~~
dowsing.cpp:61:13: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
dowsing.cpp:26:9: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
Report(x, y);
~~~~~~^~~~~~
dowsing.cpp:26:9: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]