prog.cpp: In function ‘int main()’:
prog.cpp:13:3: error: expected ‘;’ before ‘int’
int val;
^
prog.cpp:15:3: error: ‘foo’ was not declared in this scope
foo >> val; std::cout << "ss val: " << val << '\n';
^
prog.cpp:15:10: error: ‘val’ was not declared in this scope
foo >> val; std::cout << "ss val: " << val << '\n';
^