Problem | medianstring |
---|---|
User | penguin1234 |
Submission Time | 2024-07-15 09:15:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianstring.cpp:2:7: error: expected nested-name-specifier before ‘namspace’
2 | using namspace std;
| ^~~~~~~~
medianstring.cpp: In function ‘int main()’:
medianstring.cpp:5:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> N;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from medianstring.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
medianstring.cpp:6:3: error: ‘vector’ was not declared in this scope
6 | vector<int> numbers(N);
| ^~~~~~
medianstring.cpp:6:3: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm