Language: C++

#include <iostream>
using namespace std;
 
int N;
int A[210];
 
 
int main() {
    cin >> N;
    for (int i = 0; i < N; ++i) cin >> A[i]:
  
  
    int res = 0;
  
  
   while (true) {
       bool exist_odd = false;
       for (int i = 0;i < N; ++i) {
           if (A[i] % 2 != 0) exist_odd = true;
       }
     
     
       if(exist_odd9 break;
          
       for (int i = 0;i < N; ++i) {
           A[i] /= 2;
       }
       ++res;
}
          
cout << res << endl;
#include <iostream>
using namespace std;

int N;
int A[210];


int main() [
    cin >> N;
    for (int i = 0; i < N; ++i) cin >> A[i]:
  
  
    int res = 0;
  
  
   while (true) {
       bool exist_odd = false;
       for (int i = 0;i < N; ++i) {
           if (A[i] % 2 != 0) exist_odd = true;
       }
     
     
       if(exist_odd9 break;
          
       for (int i = 0;i < N; ++i) {
           A[i] /= 2;
       }
       ++res;
          }
          
cout << res << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:44: error: expected ';' before ':' token
   10 |     for (int i = 0; i < N; ++i) cin >> A[i]:
      |                                            ^
      |                                            ;
a.cc:23:11: error: 'exist_odd9' was not declared in this scope; did you mean 'exist_odd'?
   23 |        if(exist_odd9 break;
      |           ^~~~~~~~~~
      |           exist_odd
a.cc:25:8: error: expected primary-expression before 'for'
   25 |        for (int i = 0;i < N; ++i) {
      |        ^~~
a.cc:23:28: error: expected ')' before 'for'
   23 |        if(exist_odd9 break;
      |          ~                 ^
      |                            )
   24 | 
   25 |        for (int i = 0;i < N; ++i) {
      |        ~~~                  
a.cc:25:23: error: 'i' was not declared in this scope
   25 |        for (int i = 0;i < N; ++i) {
      |                       ^
a.cc:28:10: error: 'res' was not declared in this scope
   28 |        ++res;
      |          ^~~
a.cc:31:9: error: 'res' was not declared in this scope
   31 | cout << res << endl;
      |         ^~~
a.cc:40:13: error: expected ']' before ';' token
   40 |     cin >> N;
      |             ^
      |             ]
a.cc:41:44: error: expected ';' before ':' token
   41 |     for (int i = 0; i < N; ++i) cin >> A[i]:
      |                                            ^
      |                                            ;
a.cc:54:11: error: 'exist_odd9' was not declared in this scope; did you mean 'exist_odd'?
   54 |        if(exist_odd9 break;
      |           ^~~~~~~~~~
      |           exist_odd
a.cc:56:8: error: expected primary-expression before 'for'
   56 |        for (int i = 0;i < N; ++i) {
      |        ^~~
a.cc:54:28: error: expected ')' before 'for'
   54 |        if(exist_odd9 break;
      |          ~                 ^
      |                            )
   55 | 
   56 |        for (int i = 0;i < N; ++i) {
      |        ~~~                  
a.cc:56:23: error: 'i' was not declared in this scope
   56 |        for (int i = 0;i < N; ++i) {
      |                       ^
a.cc:62:21: error: expected '}' at end of input
   62 | cout << res << endl;
      |                     ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^