CLion swears on fstream . I can not understand why. Connoisseurs help.

enter image description here

  • one
    Maybe he doesn’t have a namespace? ... - Harry
  • 3
    write std :: fstream and stop reading ancient books. - KoVadim
  • 6
    @ArtyOneSoul Not the best solution ... - Harry
  • 2
    @ArtyOneSoul Develops a bad habit :) - Harry
  • 2
    @ArtyOneSoul connoisseurs will come running now and say that it’s correct to write like this ::std::... Generally using namespace std can lead to interesting observations - stackoverflow.com/questions/393819/… - KoVadim

1 answer 1

It was enough to add the namespace:

 using namespace std; 

Thanks to the commentators: @Harry @ArtyOneSoul @KoVadim