`std::cerr` makes more sense. And if you use `<iostream>`, please use `std::endl` instead of "\n".