Language: C++

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

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