synchronization.cpp: In function 'int main()':
synchronization.cpp:77:28: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'P' {aka 'struct std::pair<int, int>'} with no trivial copy-assignment [-Wclass-memaccess]
77 | memset(le,-1,sizeof(le));
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from synchronization.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'P' {aka 'struct std::pair<int, int>'} declared here
211 | struct pair
| ^~~~
synchronization.cpp:78:28: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'P' {aka 'struct std::pair<int, int>'} with no trivial copy-assignment [-Wclass-memaccess]
78 | memset(ri,-1,sizeof(ri));
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from synchronization.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'P' {aka 'struct std::pair<int, int>'} declared here
211 | struct pair
| ^~~~
synchronization.cpp:80:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for(int j=0;j<put[i].size();j++) {
| ~^~~~~~~~~~~~~~
synchronization.cpp:87:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for(int j=0;j<er[i].size();j++) {
| ~^~~~~~~~~~~~~
synchronization.cpp:44:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d %d %d",&n,&m,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
synchronization.cpp:47:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d %d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~
synchronization.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%d",&x);
| ~~~~~^~~~~~~~~
synchronization.cpp:119:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
119 | scanf("%d",&st);
| ~~~~~^~~~~~~~~~