| Problem | scicom |
|---|---|
| User | mynas111 |
| Submission Time | 2026-02-02 16:09:01 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
scicom.cpp: In function ‘int main()’:
scicom.cpp:4:2: error: ‘string’ was not declared in this scope
4 | string name;
| ^~~~~~
scicom.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 |
scicom.cpp:5:2: error: ‘cout’ was not declared in this scope
5 | cout << "What is the name of the person?\n";
| ^~~~
scicom.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
scicom.cpp:6:10: error: ‘cin’ was not declared in this scope
6 | getline(cin.name);
| ^~~
scicom.cpp:6:10: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
scicom.cpp:6:2: error: ‘getline’ was not declared in this scope
6 | getline(cin.name);
| ^~~~~~~