/in/foo.cc: In function 'int main()':
/in/foo.cc:12:42: warning: iteration 100000 invokes undefined behavior [-Waggressive-loop-optimizations]
12 | for(int i = 1; i <= 100001; i++)b[i] = false;
| ~~~~~^~~~~~~
/in/foo.cc:12:22: note: within this loop
12 | for(int i = 1; i <= 100001; i++)b[i] = false;
| ~~^~~~~~~~~
/in/foo.cc:12:42: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 100001 is out of the bounds [0, 100001] of object 'b' with type 'bool [100001]' [-Warray-bounds]
12 | for(int i = 1; i <= 100001; i++)b[i] = false;
| ~~~~~^~~~~~~
/in/foo.cc:3:6: note: 'b' declared here
3 | bool b[100001];
| ^