costinland.cpp: In function 'int main()':
costinland.cpp:36:43: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
36 | if(m==5){a[i][i]=a[i+1][i]=a[i+1][i+1]='X'; a[i][i+1]='d'; }
| ~~~~~~~~~~~^~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:36:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
36 | if(m==5){a[i][i]=a[i+1][i]=a[i+1][i+1]='X'; a[i][i+1]='d'; }
| ~~~~~~~~~^~~~~~~~~~~~~~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:36:21: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
36 | if(m==5){a[i][i]=a[i+1][i]=a[i+1][i+1]='X'; a[i][i+1]='d'; }
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:36:58: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
36 | if(m==5){a[i][i]=a[i+1][i]=a[i+1][i+1]='X'; a[i][i+1]='d'; }
| ~~~~~~~~~^~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:35:40: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
35 | if(m==4)a[i][i]=a[i+1][i]=a[i][i+1]='X';
| ~~~~~~~~~^~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:35:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
35 | if(m==4)a[i][i]=a[i+1][i]=a[i][i+1]='X';
| ~~~~~~~~~^~~~~~~~~~~~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:35:20: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
35 | if(m==4)a[i][i]=a[i+1][i]=a[i][i+1]='X';
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:34:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
34 | if(m==3)a[i][i]=a[i+1][i]='X';
| ~~~~~~~~~^~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:34:20: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
34 | if(m==3)a[i][i]=a[i+1][i]='X';
| ~~~~~~~^~~~~~~~~~~~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^
costinland.cpp:33:20: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
33 | if(m==2)a[i][i]='X';
| ~~~~~~~^~~~
costinland.cpp:7:6: note: at offset 0 to object 'a' with size 360000 declared here
7 | char a[600][600];
| ^