pipes.cpp: In function 'void __static_initialization_and_destruction_0(int, int)':
pipes.cpp:28:41: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~~~~~^~~~
pipes.cpp:28:25: note: within this loop
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~^~~~~~
pipes.cpp:28:41: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~~~~~^~~~
pipes.cpp:28:25: note: within this loop
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~^~~~~~
In constructor 'DSU::DSU()',
inlined from 'void __static_initialization_and_destruction_0(int, int)' at pipes.cpp:44:2,
inlined from '(static initializers for pipes.cpp)' at pipes.cpp:75:1:
pipes.cpp:28:41: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'v1' with type 'DSU' [-Warray-bounds]
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~~~~~^~~~
pipes.cpp: In function '(static initializers for pipes.cpp)':
pipes.cpp:44:2: note: 'v1' declared here
44 | }v1,v2;
| ^~
In constructor 'DSU::DSU()',
inlined from 'void __static_initialization_and_destruction_0(int, int)' at pipes.cpp:44:5,
inlined from '(static initializers for pipes.cpp)' at pipes.cpp:75:1:
pipes.cpp:28:41: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'v2' with type 'DSU' [-Warray-bounds]
28 | for (int i = 0;i<=maxN;i++)p[i] = -1;
| ~~~~~^~~~
pipes.cpp: In function '(static initializers for pipes.cpp)':
pipes.cpp:44:5: note: 'v2' declared here
44 | }v1,v2;
| ^~