How to make Visual Studio not let use functions without including headers

Asked

Viewed 53 times

1

In C++, the printf() and scanf() command needs the cstdio library to work, but in Visual Studio I can run without including them. As I send my programs to a site that doesn’t allow this, I wanted Visual Studio to keep an eye on these little things and warn me that the printf(), for example, not included.

  • Apart from the fact of wearing printf() in C++, even more so in 14 being something highly undesirable, not to know what is the doubt in the exposed form. You could improve this so that we can help. Detail more the problem, put what is happening in what situation. There are parts of the text that don’t even make sense.

  • I like to solve issues in the URI and there has an efficiency rank(time 0,000) always issues with printf and scanf have more efficiency. I realized that when I include the iostream, it’s as if the scanf and the printf were inside the iostream, I wanted him to disregard that.

  • http://answall.com/q/126240/101

  • This probably appears in the compiler alerts log. Look for things like "implicit statement in line...".

  • Oops! I have a print here showing the difference you made at runtime in a URI Online Judge issue: https://uploaddeimagens.com.br/imagens/sem_titulo-png-16717

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.