Problem guanine
User TheFelixKS
Submission Time 2024-03-06 20:24:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘int main()’:
guanine.cpp:9:8: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
9 | int n;cin>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from guanine.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
guanine.cpp:12:3: error: ‘string’ was not declared in this scope
12 | string s;cin>>s;
| ^~~~~~
guanine.cpp:12:3: 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,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,<