Problem | moneychanger |
---|---|
User | yongteckrice |
Submission Time | 2024-02-28 09:55:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp:2:7: error: expected nested-name-specifier before ‘namesapce’
2 | using namesapce std;
| ^~~~~~~~~
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:7:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
7 | cin >> N >> M;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from moneychanger.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
moneychanger.cpp:9:2: error: ‘vector’ was not declared in this scope
9 | vector<int> mtypes;
| ^~~~~~
moneychanger.cpp:9:2: 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_algo