prog.cpp: In function 'int main()':
prog.cpp:11:23: error: expected primary-expression before '>' token
while((std::cout <> num) && !(is >> line)) //re-using `line` to test for extra stuff after the number
^
prog.cpp:11:35: error: 'is' was not declared in this scope
while((std::cout <> num) && !(is >> line)) //re-using `line` to test for extra stuff after the number
^