| Problem | peakfinding |
|---|---|
| User | hitarthdangra |
| Submission Time | 2026-02-21 12:26:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
peakfinding.cpp:2:17: error: ‘srd’ is not a namespace-name
2 | using namespace srd;
| ^~~
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> N;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:6:9: error: ‘N’ was not declared in this scope
6 | cin >> N;
| ^
peakfinding.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector <int> a(N);
| ^~~~~~
peakfinding.cpp:8:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/inclu