Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
????int n;
????while( cin >> n, n ) {
????????int cnt = 0,v;
    bool flag = false;
????????for(int i=0;i<n;++i) {
????????????cin >> v;
????????????if( v >= 2 ) flag = true;
      if( v >= 1 ) ++cnt;
????????}
????????if( !flag ) puts("NA");
????????else cout << cnt + 1 << endl;
????}
????return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????int n;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????int n;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????int n;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????int n;
      |    ^
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int n;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int n;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int n;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int n;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int n;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int n;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int n;
      |     ^~~
a.cc:4:5: error: expected ':' before 'int'
    4 | ????int n;
      |     ^~~
      |     :
a.cc:4:5: error: expected primary-expression before 'int'
    4 | ????int n;
      |     ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????while( cin >> n, n ) {
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????while( cin >> n, n ) {
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????while( cin >> n, n ) {
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????while( cin >> n, n ) {
      |    ^
a.cc:5:5: error: expected primary-expression before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
a.cc:5:5: error: expected ':' before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
a.cc:5:5: error: expected ':' before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
a.cc:5:5: error: expected ':' before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
a.cc:5:5: error: expected ':' before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
      |     :
a.cc:5:5: error: expected primary-expression before 'while'
    5 | ????while( cin >> n, n ) {
      |     ^~~~~
a.cc:16:1: error: expected primary-expression before '?' token
   16 | ????return 0;
      | ^
a.cc:16:2: error: expected primary-expression before '?' token
   16 | ????return 0;
      |  ^
a.cc:16:3: error: expected primary-expression before '?' token
   16 | ????return 0;
      |   ^
a.cc:16:4: error: expected primary-expression before '?' token
   16 | ????return 0;
      |    ^
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~
a.cc:16:5: error: expected ':' before 'return'
   16 | ????return 0;
      |     ^~~~~~
      |     :
a.cc:16:5: error: expected primary-expression before 'return'
   16 | ????return 0;
      |     ^~~~~~