pyramids.cpp:4:2: error: 'vector' does not name a type
4 | vector<int>A,B;
| ^~~~~~
pyramids.cpp: In function 'void init(std::vector<int>, std::vector<int>)':
pyramids.cpp:7:5: error: 'A' was not declared in this scope
7 | a=A;
| ^
pyramids.cpp:8:5: error: 'B' was not declared in this scope
8 | b=B;
| ^
pyramids.cpp: In function 'bool can_transform(int, int, int, int)':
pyramids.cpp:13:29: error: 'A' was not declared in this scope
13 | int sum=std::accumulate(A.begin()+L,A.begin()+R,0);
| ^
pyramids.cpp:14:30: error: 'B' was not declared in this scope
14 | int sum2=std::accumulate(B.begin()+X,B.begin()+y,0);
| ^
pyramids.cpp:14:52: error: 'y' was not declared in this scope
14 | int sum2=std::accumulate(B.begin()+X,B.begin()+y,0);
| ^