Fix error ‘cout’ was not declared in this scope