communication.cpp:1:1: error: 'vector' does not name a type
1 | vector<int> use(vector<int> a,vector<int> b,int x,int t){
| ^~~~~~
communication.cpp: In function 'void encode(int, int)':
communication.cpp:124:5: error: 'vector' was not declared in this scope
124 | vector<int> v(max(3,N/Bd+2));
| ^~~~~~
communication.cpp:124:12: error: expected primary-expression before 'int'
124 | vector<int> v(max(3,N/Bd+2));
| ^~~
communication.cpp:125:10: error: 'v' was not declared in this scope
125 | iota(v.begin(),v.end(),0);
| ^
communication.cpp:125:5: error: 'iota' was not declared in this scope
125 | iota(v.begin(),v.end(),0);
| ^~~~
communication.cpp:126:25: error: expected primary-expression before 'int'
126 | auto e=use(v,vector<int>(),a,0);
| ^~~
communication.cpp:126:12: error: 'use' was not declared in this scope
126 | auto e=use(v,vector<int>(),a,0);
| ^~~
communication.cpp:127:12: error: expected primary-expression before 'int'
127 | vector<int> w(Bd);
| ^~~
communication.cpp:128:10: error: 'w' was not declared in this scope
128 | iota(w.begin(),w.end(),0);
| ^
communication.cpp:129:25: error: expected primary-expression before 'int'
129 | auto f=use(w,vector<int>(),c,0);
| ^~~
communication.cpp:130:5: error: 'assert' was not declared in this scope
130 | assert(e.size()==3 && f.size()==3);
| ^~~~~~
communication.cpp:1:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
+++ |+#include <cassert>
1 | vector<int> use(vector<int> a,vector<int> b,int x,int t){
communication.cpp:131:12: error: expected primary-expression before 'int'
131 | vector<int> z;
| ^~~
communication.cpp:137:13: error: 'z' was not declared in this scope
137 | z.push_back(h*Bd+y);
| ^
communication.cpp:140:9: error: 'z' was not declared in this scope
140 | use(z,vector<int>(),x,1);
| ^
communication.cpp:140:18: error: expected primary-expression before 'int'
140 | use(z,vector<int>(),x,1);
| ^~~
communication.cpp: At global scope:
communication.cpp:143:1: error: 'pair' does not name a type
143 | pair<int,int> decode(int N){
| ^~~~