communication.cpp: In function 'void encode(int, int)':
communication.cpp:15:9: warning: unused variable 'v' [-Wunused-variable]
15 | int v;
| ^
communication.cpp:16:10: warning: unused variable 'floog' [-Wunused-variable]
16 | bool floog;
| ^~~~~
communication.cpp: In function 'std::pair<int, int> decode(int)':
communication.cpp:43:5: error: 'vector' was not declared in this scope
43 | vector<int> v;
| ^~~~~~
communication.cpp:43:12: error: expected primary-expression before 'int'
43 | vector<int> v;
| ^~~
communication.cpp:44:5: error: 'v' was not declared in this scope
44 | v.push_back(recieve());
| ^
communication.cpp:44:17: error: 'recieve' was not declared in this scope; did you mean 'receive'?
44 | v.push_back(recieve());
| ^~~~~~~
| receive
communication.cpp:48:13: error: expected primary-expression before '{' token
48 | if(v == {1,1,1}){
| ^
communication.cpp:48:12: error: expected ')' before '{' token
48 | if(v == {1,1,1}){
| ~ ^~
| )
communication.cpp:49:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
49 | return make_pair(1,2);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:51:18: error: expected primary-expression before '{' token
51 | else if(v == {0,1,1}){
| ^
communication.cpp:51:17: error: expected ')' before '{' token
51 | else if(v == {0,1,1}){
| ~ ^~
| )
communication.cpp:52:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
52 | return make_pair(1,2);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:54:18: error: expected primary-expression before '{' token
54 | else if(v == {0,1,0}){
| ^
communication.cpp:54:17: error: expected ')' before '{' token
54 | else if(v == {0,1,0}){
| ~ ^~
| )
communication.cpp:55:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
55 | return make_pair(1,3);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:57:18: error: expected primary-expression before '{' token
57 | else if(v == {1,0,1}){
| ^
communication.cpp:57:17: error: expected ')' before '{' token
57 | else if(v == {1,0,1}){
| ~ ^~
| )
communication.cpp:58:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
58 | return make_pair(1,3);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:60:18: error: expected primary-expression before '{' token
60 | else if(v == {1,1,0}){
| ^
communication.cpp:60:17: error: expected ')' before '{' token
60 | else if(v == {1,1,0}){
| ~ ^~
| )
communication.cpp:61:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
61 | return make_pair(1,2);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:63:18: error: expected primary-expression before '{' token
63 | else if(v == {0,0,1}){
| ^
communication.cpp:63:17: error: expected ')' before '{' token
63 | else if(v == {0,0,1}){
| ~ ^~
| )
communication.cpp:64:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
64 | return make_pair(2,3);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:66:18: error: expected primary-expression before '{' token
66 | else if(v == {0,0,0}){
| ^
communication.cpp:66:17: error: expected ')' before '{' token
66 | else if(v == {0,0,0}){
| ~ ^~
| )
communication.cpp:67:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
67 | return make_pair(2,3);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
communication.cpp:70:16: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
70 | return make_pair(2,3);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/10/utility:70,
from communication.h:1,
from communication.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: 'std::make_pair' declared here
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~