costinland.cpp: In function 'int main()':
costinland.cpp:32:15: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations]
32 | if(x == 1) for(int i = 0; i >= 0; i++) x++;
| ^~~
costinland.cpp:32:32: note: within this loop
32 | if(x == 1) for(int i = 0; i >= 0; i++) x++;
| ~~^~~~
costinland.cpp: In function 'void f(long long int, long long int)':
costinland.cpp:16:33: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
16 | if(op < 4) a[idx + 1][idx + 2] = 'd';
| ~~~~~~~~~~~~~~~~~~~~^~~~~
costinland.cpp:8:6: note: at offset 0 to object 'a' with size 10000 declared here
8 | char a[mxN][mxN];
| ^
costinland.cpp:17:33: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
17 | if(op < 2) a[idx + 2][idx + 1] = 'r';
| ~~~~~~~~~~~~~~~~~~~~^~~~~
costinland.cpp:8:6: note: at offset 0 to object 'a' with size 10000 declared here
8 | char a[mxN][mxN];
| ^