| Problem | peakfinding |
|---|---|
| User | onion |
| Submission Time | 2026-03-15 16:37:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:4:5: error: ‘ios’ has not been declared
4 | ios::sync_with_stdio(false);
| ^~~
peakfinding.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin.tie(nullptr);
| ^~~
| std::cin
In file included from peakfinding.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
peakfinding.cpp:15:21: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
15 | maxHeight = max(maxHeight, h);
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,