Language: C++

#include <iostream>
using namespace std;
main(){
????int a,b,c,n,t[10001]={0},p=0,i,j;
????for(cin>>n>>a>>b,i=0;n--;)
????????for(cin>>c,j=c-a;j<=c+a-1&&j<b;)if(!(t[j++]++))p--;
????cout<<b+p<<endl;
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |     ^~~
a.cc:4:29: error: expected primary-expression before ',' token
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |                             ^
a.cc:4:30: error: 'p' was not declared in this scope
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |                              ^
a.cc:4:34: error: 'i' was not declared in this scope
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |                                  ^
a.cc:4:36: error: 'j' was not declared in this scope
    4 | ????int a,b,c,n,t[10001]={0},p=0,i,j;
      |                                    ^
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |    ^
a.cc:5:5: error: expected primary-expression before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
a.cc:5:5: error: expected ':' before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
a.cc:5:5: error: expected ':' before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
a.cc:5:5: error: expected ':' before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
a.cc:5:5: error: expected ':' before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
      |     :
a.cc:5:5: error: expected primary-expression before 'for'
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |     ^~~
a.cc:5:26: error: 'n' was not declared in this scope
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |                          ^
a.cc:5:30: error: expected primary-expression before ')' token
    5 | ????for(cin>>n>>a>>b,i=0;n--;)
      |                              ^
a.cc:6:29: error: 'c' was not declared in this scope
    6 | ????????for(cin>>c,j=c-a;j<=c+a-1&&j<b;)if(!(t[j++]++))p--;
      |                             ^
a.cc:6:31: error: 'a' was not declared in this scope
    6 | ????????for(cin>>c,j=c-a;j<=c+a-1&&j<b;)if(!(t[j++]++))p--;
      |                               ^
a.cc:6:38: error: 'b' was not declared in this scope
    6 | ????????for(cin>>c,j=c-a;j<=c+a-1&&j<b;)if(!(t[j++]++))p--;
      |                                      ^
a.cc:6:40: error: expected primary-expression before ')' token
    6 | ????????for(cin>>c,j=c-a;j<=c+a-1&&j<b;)if(!(t[j++]++))p--;
      |                                        ^
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????cout<<b+p<<endl;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????cout<<b+p<<endl;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????cout<<b+p<<endl;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????cout<<b+p<<endl;
      |    ^
a.cc:7:20: error: expected ':' before ';' token
    7 | ????cout<<b+p<<endl;
      |                    ^
      |                    :
a.cc:7:20: error: expected primary-expression before ';' token
a.cc:7:20: error: expected ':' before ';' token
    7 | ????cout<<b+p<<endl;
      |                    ^
      |                    :
a.cc:7:20: error: expected primary-expression before ';' token
a.cc:7:20: error: expected ':' before ';' token
    7 | ????cout<<b+p<<endl;
      |                    ^
      |                    :
a.cc:7:20: error: expected primary-expression before ';' token
a.cc:7:20: error: expected ':' before ';' token
    7 | ????cout<<b+p<<endl;
      |                    ^
      |                    :
a.cc:7:20: error: expected primary-expression before ';' token