Azer.cpp: In function 'void ReceiveA(bool)':
Azer.cpp:53:5: error: reference to 'wait' is ambiguous
53 | if(wait==1){
| ^~~~
Azer.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Azer.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~
Azer.cpp:63:5: error: reference to 'wait' is ambiguous
63 | wait=2;
| ^~~~
Azer.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Azer.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~
Azer.cpp:68:11: error: reference to 'wait' is ambiguous
68 | }else if(wait==2){
| ^~~~
Azer.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Azer.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~
Baijan.cpp: In function 'void ReceiveB(bool)':
Baijan.cpp:53:5: error: reference to 'wait' is ambiguous
53 | if(wait==1){
| ^~~~
Baijan.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Baijan.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~
Baijan.cpp:63:5: error: reference to 'wait' is ambiguous
63 | wait=2;
| ^~~~
Baijan.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Baijan.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~
Baijan.cpp:68:11: error: reference to 'wait' is ambiguous
68 | }else if(wait==2){
| ^~~~
Baijan.cpp:25:6: note: candidates are: 'int {anonymous}::wait'
25 | int wait;
| ^~~~
In file included from /usr/include/stdlib.h:42,
from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from Baijan.cpp:2:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:66:7: note: 'union wait'
66 | union wait
| ^~~~