Problem | 3nplus1II |
---|---|
User | cfcreeper9000 |
Submission Time | 2023-03-05 21:39:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:3:10: error: ‘string’ is not a member of ‘std’
3 | std::string input;
| ^~~~~~
3nplus1II.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 |
3nplus1II.cpp:4:10: error: ‘getline’ is not a member of ‘std’
4 | std::getline(std::cin, input);
| ^~~~~~~
3nplus1II.cpp:4:23: error: ‘cin’ is not a member of ‘std’
4 | std::getline(std::cin, input);
| ^~~
3nplus1II.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
3nplus1II.cpp:4:28: error: ‘input’ was not declared in this scope; did you mean ‘int’?
4 | std::getline(std::cin, input);
| ^~~~~
|