Language: C++

#include<iostream>

using namespace std;

int main () {

  while (true){

    int n;
    int i;
    int s = 0;
    int mi = 0;
    int ma = 0;
    cin >> n;

    if (n == 0)
      break;
??????
??????int p[100];

    for (i=0,i<n,i++){
      cin >> p[i];

      if (p[i] < mi)
        mi << p[i];

      if (p[i] > ma)
        ma << p[i];

      s += p[i];

    }

    cout << (s - mi - ma) / (n-2)

  }

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: expected primary-expression before '?' token
   18 | ??????
      | ^
a.cc:18:2: error: expected primary-expression before '?' token
   18 | ??????
      |  ^
a.cc:18:3: error: expected primary-expression before '?' token
   18 | ??????
      |   ^
a.cc:18:4: error: expected primary-expression before '?' token
   18 | ??????
      |    ^
a.cc:18:5: error: expected primary-expression before '?' token
   18 | ??????
      |     ^
a.cc:18:6: error: expected primary-expression before '?' token
   18 | ??????
      |      ^
a.cc:19:1: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      | ^
a.cc:19:2: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      |  ^
a.cc:19:3: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      |   ^
a.cc:19:4: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      |    ^
a.cc:19:5: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      |     ^
a.cc:19:6: error: expected primary-expression before '?' token
   19 | ??????int p[100];
      |      ^
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:19:7: error: expected ':' before 'int'
   19 | ??????int p[100];
      |       ^~~
      |       :
a.cc:19:7: error: expected primary-expression before 'int'
   19 | ??????int p[100];
      |       ^~~
a.cc:21:21: error: expected ';' before ')' token
   21 |     for (i=0,i<n,i++){
      |                     ^
      |                     ;
a.cc:34:34: error: expected ';' before '}' token
   34 |     cout << (s - mi - ma) / (n-2)
      |                                  ^
      |                                  ;
   35 | 
   36 |   }
      |   ~                               
a.cc:36:3: error: expected primary-expression before '}' token
   36 |   }
      |   ^
a.cc:34:34: error: expected ')' before '}' token
   34 |     cout << (s - mi - ma) / (n-2)
      |                                  ^
      |                                  )
   35 | 
   36 |   }
      |   ~                               
a.cc:21:9: note: to match this '('
   21 |     for (i=0,i<n,i++){
      |         ^
a.cc:36:3: error: expected primary-expression before '}' token
   36 |   }
      |   ^