Problem | slimes |
---|---|
User | Red123 |
Submission Time | 2025-07-09 14:30:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
slimes.cpp:3:7: error: expected nested-name-specifier before ‘namesapce’
3 | using namesapce std;
| ^~~~~~~~~
slimes.cpp: In function ‘int main()’:
slimes.cpp:7:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
7 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from slimes.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
slimes.cpp:9:2: error: ‘string’ was not declared in this scope
9 | string arr[n];
| ^~~~~~
slimes.cpp:9:2: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,