Problem rmaxq
User ZivTheONe
Submission Time 2024-10-05 19:05:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In member function ‘void Solution::poklon()’:
rmaxq.cpp:100:29: error: no matching function for call to ‘SegmentTree::SegmentTree(std::vector<int>&)’
100 | cin >> M; SegmentTree st(A);
| ^
rmaxq.cpp:84:3: note: candidate: ‘SegmentTree::SegmentTree(const vi&)’
84 | SegmentTree(const vi &initialA) : SegmentTree((int)initialA.size()) {
| ^~~~~~~~~~~
rmaxq.cpp:84:25: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘const vi&’ {aka ‘const std::vector<long long int>&’}
84 | SegmentTree(const vi &initialA) : SegmentTree((int)initialA.size()) {
| ~~~~~~~~~~^~~~~~~~
rmaxq.cpp:82:3: note: candidate: ‘SegmentTree::SegmentTree(int)’
82 | SegmentTree(int sz) : n(sz), A(n), st(4*n), lazy(4*n, -1) {}
| ^~~~~~~~~~~
rmaxq.cpp:82:19: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘int’
8