| Problem | jumps |
|---|---|
| User | yc |
| Submission Time | 2026-04-10 13:55:54 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
jumps.cpp: In function ‘void init(int, std::vector<int>)’:
jumps.cpp:25:7: error: ‘class std::stack<std::pair<int, int> >’ has no member named ‘clear’
25 | s.clear();
| ^~~~~
jumps.cpp:27:17: error: ‘s1’ was not declared in this scope; did you mean ‘s’?
27 | while (!s1.empty() and s1.top().first<H[i]) s1.pop();
| ^~
| s
jumps.cpp:28:14: error: ‘s1’ was not declared in this scope; did you mean ‘s’?
28 | if (!s1.empty()) leftf[i] = s1.top().second;
| ^~
| s
jumps.cpp:29:9: error: ‘s1’ was not declared in this scope; did you mean ‘s’?
29 | s1.push(make_pair(H[i],i));
| ^~
| s