运行 ID: 41081

Main.cc: In function ‘int main()’:
Main.cc:5:2: error: ‘INT’ was not declared in this scope
  INT N,A[10],cnt=0,ans;
  ^~~
Main.cc:5:2: note: suggested alternative: ‘EINTR’
  INT N,A[10],cnt=0,ans;
  ^~~
  EINTR
Main.cc:6:7: error: ‘n’ was not declared in this scope
  cin>>n;
       ^
Main.cc:10:3: error: ‘cnt’ was not declared in this scope
   cnt=0;
   ^~~
Main.cc:10:3: note: suggested alternative: ‘int’
   cnt=0;
   ^~~
   int
Main.cc:12:4: error: ‘a’ was not declared in this scope
    a[cn++]=num%10;
    ^
Main.cc:12:6: error: ‘cn’ was not declared in this scope
    a[cn++]=num%10;
      ^~
Main.cc:16:7: error: ‘a’ was not declared in this scope
    if(a[i]