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:125:5: error: 'vector' was not declared in this scope
125 | vector<int> v(n/B+1);
| ^~~~~~
communication.cpp:125:12: error: expected primary-expression before 'int'
125 | vector<int> v(n/B+1);
| ^~~
communication.cpp:126:10: error: 'v' was not declared in this scope
126 | iota(v.begin(),v.end(),0);
| ^
communication.cpp:126:5: error: 'iota' was not declared in this scope
126 | iota(v.begin(),v.end(),0);
| ^~~~
communication.cpp:127:25: error: expected primary-expression before 'int'
127 | auto e=use(v,vector<int>(),a,0);
| ^~~
communication.cpp:127:12: error: 'use' was not declared in this scope
127 | auto e=use(v,vector<int>(),a,0);
| ^~~
communication.cpp:128:12: error: expected primary-expression before 'int'
128 | vector<int> w(B);
| ^~~
communication.cpp:129:10: error: 'w' was not declared in this scope
129 | iota(w.begin(),w.end(),0);
| ^
communication.cpp:130:25: error: expected primary-expression before 'int'
130 | auto f=use(w,vector<int>(),c,0);
| ^~~
communication.cpp:131:5: error: 'assert' was not declared in this scope
131 | 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:132:12: error: expected primary-expression before 'int'
132 | vector<int> z;
| ^~~
communication.cpp:138:13: error: 'z' was not declared in this scope
138 | z.push_back(h*B+y);
| ^
communication.cpp:141:16: error: 'z' was not declared in this scope
141 | auto t=use(z,vector<int>(),x,1);
| ^
communication.cpp:141:25: error: expected primary-expression before 'int'
141 | auto t=use(z,vector<int>(),x,1);
| ^~~
communication.cpp: At global scope:
communication.cpp:150:1: error: 'pair' does not name a type
150 | pair<int,int> decode(int N){
| ^~~~