expgorl.cpp: In function 'int main()':
expgorl.cpp:15:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<s.size();k++){
~^~~~~~~~~
expgorl.cpp:18: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:18: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:23: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:23: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:25:11: warning: array subscript is above array bounds [-Warray-bounds]
b[1]++;
~~~^
expgorl.cpp:25:11: warning: array subscript is above array bounds [-Warray-bounds]
expgorl.cpp:26: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:30:12: warning: array subscript is above array bounds [-Warray-bounds]
b[1]--;
~~~^
expgorl.cpp:30:12: warning: array subscript is above array bounds [-Warray-bounds]
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:33: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:33: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]));
~~~^