popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:38:36: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
38 | memset(divleft, 0, sizeof(divleft)), memset(divright, 0, sizeof(divright)), memset(revdivleft, 0, sizeof(revdivleft)), memset(revdivright, 0, sizeof(revdivright));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~
popa.cpp:38:75: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
38 | memset(divleft, 0, sizeof(divleft)), memset(divright, 0, sizeof(divright)), memset(revdivleft, 0, sizeof(revdivleft)), memset(revdivright, 0, sizeof(revdivright));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~
popa.cpp:38:118: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
38 | memset(divleft, 0, sizeof(divleft)), memset(divright, 0, sizeof(divright)), memset(revdivleft, 0, sizeof(revdivleft)), memset(revdivright, 0, sizeof(revdivright));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~
popa.cpp:38:163: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
38 | memset(divleft, 0, sizeof(divleft)), memset(divright, 0, sizeof(divright)), memset(revdivleft, 0, sizeof(revdivleft)), memset(revdivright, 0, sizeof(revdivright));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~
popa.cpp:39:38: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
39 | memset(leftgood, 0, sizeof(leftgood)), memset(rightgood, 0, sizeof(rightgood));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~
popa.cpp:39:79: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class std::bitset<1005>'; use assignment or value-initialization instead [-Wclass-memaccess]
39 | memset(leftgood, 0, sizeof(leftgood)), memset(rightgood, 0, sizeof(rightgood));
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66,
from popa.cpp:1:
/usr/include/c++/10/bitset:751:11: note: 'class std::bitset<1005>' declared here
751 | class bitset
| ^~~~~~