pipes.cpp: In function 'int main()':
pipes.cpp:24:49: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
24 | for(int i = 0; i < eax; i++) nxt[i] = start[i] = -1;
| ~~~~~~~~~^~~~
pipes.cpp:24:19: note: within this loop
24 | for(int i = 0; i < eax; i++) nxt[i] = start[i] = -1;
| ~~^~~~~
pipes.cpp:24:49: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 48000019] is out of the bounds [0, 400020] of object 'start' with type 'int [100005]' [-Warray-bounds]
24 | for(int i = 0; i < eax; i++) nxt[i] = start[i] = -1;
| ~~~~~~~~~^~~~
pipes.cpp:19:15: note: 'start' declared here
19 | int nxt[nax], start[nax];
| ^~~~~
pipes.cpp:24:38: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 48000019] is out of the bounds [0, 400020] of object 'nxt' with type 'int [100005]' [-Warray-bounds]
24 | for(int i = 0; i < eax; i++) nxt[i] = start[i] = -1;
| ~~~~~~~^~~~~~~~~~~~~~~
pipes.cpp:19:5: note: 'nxt' declared here
19 | int nxt[nax], start[nax];
| ^~~