Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using extra space. You could also try reversing an integer......
./test4.cpp:10:9: error: ‘cin’ was not declared in this scope 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 | ....