Language: C++

include<bits/stdc++.h>
using namespace std;
int main()
{
    unsigned long long int n;
    cin>>n;
    if(n<111) cout<<"111"<<endl;
    else if((n>111) && (n<=222)) cout<<"222"<<endl;
    else if((n>222) && (n<=333)) cout<<"333"<<endl;
    else if((n>333) && (n<=444)) cout<<"444"<<endl;
    else if((n>444) && (n<=555)) cout<<"555"<<endl;
    else if((n>555) && (n<=666)) cout<<"666"<<endl;
    else if((n>666) && (n<=777)) cout<<"777"<<endl;
    else if((n>777) && (n<=888)) cout<<"888"<<endl;
    else if(n>888 && n<=999) cout<<"999"<<endl;

    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>n;
      |     ^~~
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |     if(n<111) cout<<"111"<<endl;
      |               ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |     if(n<111) cout<<"111"<<endl;
      |                            ^~~~
a.cc:8:34: error: 'cout' was not declared in this scope
    8 |     else if((n>111) && (n<=222)) cout<<"222"<<endl;
      |                                  ^~~~
a.cc:8:47: error: 'endl' was not declared in this scope
    8 |     else if((n>111) && (n<=222)) cout<<"222"<<endl;
      |                                               ^~~~
a.cc:9:34: error: 'cout' was not declared in this scope
    9 |     else if((n>222) && (n<=333)) cout<<"333"<<endl;
      |                                  ^~~~
a.cc:9:47: error: 'endl' was not declared in this scope
    9 |     else if((n>222) && (n<=333)) cout<<"333"<<endl;
      |                                               ^~~~
a.cc:10:34: error: 'cout' was not declared in this scope
   10 |     else if((n>333) && (n<=444)) cout<<"444"<<endl;
      |                                  ^~~~
a.cc:10:47: error: 'endl' was not declared in this scope
   10 |     else if((n>333) && (n<=444)) cout<<"444"<<endl;
      |                                               ^~~~
a.cc:11:34: error: 'cout' was not declared in this scope
   11 |     else if((n>444) && (n<=555)) cout<<"555"<<endl;
      |                                  ^~~~
a.cc:11:47: error: 'endl' was not declared in this scope
   11 |     else if((n>444) && (n<=555)) cout<<"555"<<endl;
      |                                               ^~~~
a.cc:12:34: error: 'cout' was not declared in this scope
   12 |     else if((n>555) && (n<=666)) cout<<"666"<<endl;
      |                                  ^~~~
a.cc:12:47: error: 'endl' was not declared in this scope
   12 |     else if((n>555) && (n<=666)) cout<<"666"<<endl;
      |                                               ^~~~
a.cc:13:34: error: 'cout' was not declared in this scope
   13 |     else if((n>666) && (n<=777)) cout<<"777"<<endl;
      |                                  ^~~~
a.cc:13:47: error: 'endl' was not declared in this scope
   13 |     else if((n>666) && (n<=777)) cout<<"777"<<endl;
      |                                               ^~~~
a.cc:14:34: error: 'cout' was not declared in this scope
   14 |     else if((n>777) && (n<=888)) cout<<"888"<<endl;
      |                                  ^~~~
a.cc:14:47: error: 'endl' was not declared in this scope
   14 |     else if((n>777) && (n<=888)) cout<<"888"<<endl;
      |                                               ^~~~
a.cc:15:30: error: 'cout' was not declared in this scope
   15 |     else if(n>888 && n<=999) cout<<"999"<<endl;
      |                              ^~~~
a.cc:15:43: error: 'endl' was not declared in this scope
   15 |     else if(n>888 && n<=999) cout<<"999"<<endl;
      |                                           ^~~~