expgorl.cpp:17:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
expgorl.cpp: In function 'int main()':
expgorl.cpp:41:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); i++)
~~^~~~~~~~~~
expgorl.cpp:32:6: warning: unused variable 'sx' [-Wunused-variable]
int sx = gx;
^~
expgorl.cpp:33:6: warning: unused variable 'sy' [-Wunused-variable]
int sy = gy;
^~
expgorl.cpp:35:9: warning: unused variable 'distmn' [-Wunused-variable]
double distmn = hypot((gy - ly), (gx - lx));
^~~~~~
expgorl.cpp:36:9: warning: unused variable 'distmx' [-Wunused-variable]
double distmx = hypot((gy - ly), (gx - lx));
^~~~~~