expgorl.cpp: In function 'int main()':
expgorl.cpp:13:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<s.size();k++){
~^~~~~~~~~
expgorl.cpp:16:41: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]));
~~~^
expgorl.cpp:16:46: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]));
~~~^
expgorl.cpp:21:38: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1])); }
~~~^
expgorl.cpp:21:43: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1])); }
~~~^
expgorl.cpp:23:11: warning: array subscript is above array bounds [-Warray-bounds]
b[1]++;
~~~^
expgorl.cpp:23:11: warning: array subscript is above array bounds [-Warray-bounds]
expgorl.cpp:24:38: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]));
~~~^
expgorl.cpp:28:12: warning: array subscript is above array bounds [-Warray-bounds]
b[1]--;
~~~^
expgorl.cpp:28:12: warning: array subscript is above array bounds [-Warray-bounds]
expgorl.cpp:29:38: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1])); }
~~~^
expgorl.cpp:31:38: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]));
~~~^
expgorl.cpp:31:43: warning: array subscript is above array bounds [-Warray-bounds]
mx=sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]));
~~~^