Language: C++

#include<iostream>
using namespace std;
int prime(long int n);

int main(){
        long int n;
        long int num;
        long int count=0;
????????????long int i;
        cin>>n;
        for(i=0;i<n;i++){
                cin>>num;
                if(prime(num)==1){
                        count++;
                }
        }
        cout<<count<<endl;
        return 0;
     
}

int prime(long int n){
        long int i;
        long int sqrt;
        for(i=1;i<n;i++){
                if(n<i*i){
                        sqrt=i;
                        break;
                }
        }
        for(i=2;i<=sqrt;i++){
                if(n%i==0){
                        return 0;
                }
        }
        return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |   ^
a.cc:9:4: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |     ^
a.cc:9:6: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |      ^
a.cc:9:7: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |       ^
a.cc:9:8: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |        ^
a.cc:9:9: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |         ^
a.cc:9:10: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |          ^
a.cc:9:11: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |           ^
a.cc:9:12: error: expected primary-expression before '?' token
    9 | ????????????long int i;
      |            ^
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:9:13: error: expected ':' before 'long'
    9 | ????????????long int i;
      |             ^~~~
      |             :
a.cc:9:13: error: expected primary-expression before 'long'
    9 | ????????????long int i;
      |             ^~~~
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=0;i<n;i++){
      |             ^