Language: C++

int main(){
    int a,min,max,sum=0;
    int ai[1000]={};
??????int i=0;
    while(cin>>a){
          sum+=a;
???????????????ai[i]=a;
          if(i==0){
             min=a[0];
             max=a[0];
          }
          if(min>a[i]){
             min=a[i];
          }
          if(max<a[i]){
             max=a[i];
          }
          i++;
    } 
    cout<<min<<' '<<max<<' '<<sum<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      |    ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 | ??????int i=0;
      |      ^
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int i=0;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int i=0;
      |       ^~~
a.cc:5:11: error: 'cin' was not declared in this scope; did you mean 'min'?
    5 |     while(cin>>a){
      |           ^~~
      |           min
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |    ^
a.cc:7:5: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |     ^
a.cc:7:6: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |      ^
a.cc:7:7: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |       ^
a.cc:7:8: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |        ^
a.cc:7:9: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |         ^
a.cc:7:10: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |          ^
a.cc:7:11: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |           ^
a.cc:7:12: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |            ^
a.cc:7:13: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |             ^
a.cc:7:14: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |              ^
a.cc:7:15: error: expected primary-expression before '?' token
    7 | ???????????????ai[i]=a;
      |               ^
a.cc:7:19: error: 'i' was not declared in this scope; did you mean 'ai'?
    7 | ???????????????ai[i]=a;
      |                   ^
      |                   ai
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:7:23: error: expected ':' before ';' token
    7 | ???????????????ai[i]=a;
      |                       ^
      |                       :
a.cc:7:23: error: expected primary-expression before ';' token
a.cc:9:19: error: invalid types 'int[int]' for array subscript
    9 |              min=a[0];
      |                   ^
a.cc:10:19: error: invalid types 'int[int]' for array subscript
   10 |              max=a[0];
      |                   ^
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout<<min<<' '<<max<<' '<<sum<<endl;
      |     ^~~~
a.cc:20:36: error: 'endl' was not declared in this scope
   20 |     cout<<min<<' '<<max<<' '<<sum<<endl;
      |                                    ^~~~