Problem giselle
User Henries
Submission Time 2024-12-21 10:20:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

giselle.cpp: In function ‘int main()’:
giselle.cpp:94:50: error: no matching function for call to ‘node::node(int, int, std::vector<int>&, std::vector<int>&)’
94 | node* segtree = new node(0, n - 1, stan, pre2);
| ^
giselle.cpp:28:5: note: candidate: ‘node::node(int, int, std::vector<long long int>&, std::vector<long long int>&)’
28 | node(int s, int e, vector<long long>& stan, vector<long long>& pre2) : S(s), E(e) {
| ^~~~
giselle.cpp:28:43: note: no known conversion for argument 3 from ‘std::vector<int>’ to ‘std::vector<long long int>&’
28 | node(int s, int e, vector<long long>& stan, vector<long long>& pre2) : S(s), E(e) {
| ~~~~~~~~~~~~~~~~~~~^~~~
giselle.cpp:22:8: note: candidate: ‘constexpr node::node(const node&)’
22 | struct node {
| ^~~~
giselle.cpp