Language: C++

int main()
{
    int a;
    
    std::cin>>a;
    
    if(a<105)  std::cout << 0 << std::endl;
     else if(a<135) std::cout << 1 << std::endl;
    else if(a<165) std::cout << 2 << std::endl;
    else if(a<189) std::cout << 3 << std::endl;
    else if(a<195) std::cout << 4 << std::endl;
    else if(a<=200) std::cout << 5 << std::endl;
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' is not a member of 'std'
    5 |     std::cin>>a;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:7:21: error: 'cout' is not a member of 'std'
    7 |     if(a<105)  std::cout << 0 << std::endl;
      |                     ^~~~
a.cc:7:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:39: error: 'endl' is not a member of 'std'
    7 |     if(a<105)  std::cout << 0 << std::endl;
      |                                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
a.cc:8:26: error: 'cout' is not a member of 'std'
    8 |      else if(a<135) std::cout << 1 << std::endl;
      |                          ^~~~
a.cc:8:26: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:44: error: 'endl' is not a member of 'std'
    8 |      else if(a<135) std::cout << 1 << std::endl;
      |                                            ^~~~
a.cc:8:44: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:25: error: 'cout' is not a member of 'std'
    9 |     else if(a<165) std::cout << 2 << std::endl;
      |                         ^~~~
a.cc:9:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:43: error: 'endl' is not a member of 'std'
    9 |     else if(a<165) std::cout << 2 << std::endl;
      |                                           ^~~~
a.cc:9:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:25: error: 'cout' is not a member of 'std'
   10 |     else if(a<189) std::cout << 3 << std::endl;
      |                         ^~~~
a.cc:10:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:43: error: 'endl' is not a member of 'std'
   10 |     else if(a<189) std::cout << 3 << std::endl;
      |                                           ^~~~
a.cc:10:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:25: error: 'cout' is not a member of 'std'
   11 |     else if(a<195) std::cout << 4 << std::endl;
      |                         ^~~~
a.cc:11:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:43: error: 'endl' is not a member of 'std'
   11 |     else if(a<195) std::cout << 4 << std::endl;
      |                                           ^~~~
a.cc:11:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:26: error: 'cout' is not a member of 'std'
   12 |     else if(a<=200) std::cout << 5 << std::endl;
      |                          ^~~~
a.cc:12:26: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:44: error: 'endl' is not a member of 'std'
   12 |     else if(a<=200) std::cout << 5 << std::endl;
      |                                            ^~~~
a.cc:12:44: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'