Problem | childsetter4 |
---|---|
User | god |
Submission Time | 2025-06-17 09:30:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
childsetter4.cpp: In function ‘int main()’:
childsetter4.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> num_of_prob;
| ^~~
| std::cin
In file included from childsetter4.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
childsetter4.cpp:7:2: error: ‘string’ was not declared in this scope
7 | string a[num_of_prob];
| ^~~~~~
childsetter4.cpp:7: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/ostream:38,
from /usr/include/c++/9/iostream:39,
from childsetter4.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;