10 | if (cin >> word) | ^~~ ./test4.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? 2 | #include <string> +++ |+#include <iostream> 3 | ./test4.cpp:20:17: error: ‘cout’ was not declared in this scope ...