Problem | catdog |
---|---|
User | Sans12345 |
Submission Time | 2024-01-22 19:43:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catdog.cpp: In member function ‘std::pair<long long int, long long int> Segmenttree::RMQ()’:
catdog.cpp:46:18: error: ‘i’ was not declared in this scope
46 | ll a = min(seg[i][0][0],seg[i][0][1]);
| ^
catdog.cpp: In function ‘void initialize(int, std::vector<int>, std::vector<int>)’:
catdog.cpp:97:62: error: no matching function for call to ‘Segmenttree::Segmenttree(int, ll)’
97 | for(int i=0;i<cur;i++) ST[i] = new Segmenttree(0,gsz[i]-1);
| ^
catdog.cpp:10:5: note: candidate: ‘Segmenttree::Segmenttree(int)’
10 | Segmenttree(int _n){
| ^~~~~~~~~~~
catdog.cpp:10:5: note: candidate expects 1 argument, 2 provided
catdog.cpp:9:5: note: candidate: ‘Segmenttree::Segmenttree()’
9 | Segmenttree(){}
| ^~~~~~~~~~~
catdog.cpp:9:5: note: candidate expects 0 arguments, 2 provided
catdog.cpp:6