pyramids.cpp:4:1: error: 'vector' does not name a type
4 | vector<int> robi1, robi2;
| ^~~~~~
pyramids.cpp: In function 'void init(std::vector<int>, std::vector<int>)':
pyramids.cpp:7:5: error: 'robi1' was not declared in this scope
7 | robi1 = A;
| ^~~~~
pyramids.cpp:8:5: error: 'robi2' was not declared in this scope
8 | robi2 = B;
| ^~~~~
pyramids.cpp: In function 'bool can_transform(int, int, int, int)':
pyramids.cpp:13:38: error: 'robi1' was not declared in this scope
13 | for (int i = L; i <= R; ++i) sum1+=robi1[i];
| ^~~~~
pyramids.cpp:14:32: error: 'sum2' was not declared in this scope; did you mean 'sum1'?
14 | for (int i = X; i <= Y; ++i) sum2+=robi2[i];
| ^~~~
| sum1
pyramids.cpp:14:38: error: 'robi2' was not declared in this scope
14 | for (int i = X; i <= Y; ++i) sum2+=robi2[i];
| ^~~~~
pyramids.cpp:15:17: error: 'sum2' was not declared in this scope; did you mean 'sum1'?
15 | return (sum1==sum2);
| ^~~~
| sum1