Language: C++

#include<iostream>
#include<vector>
using namespace std;
 
int main() {
    int size;
    cin >> size;
    int* A  = new int[10];
    for(int i = 0; i < size; ++i) {
        cin >> A[i];
        cout << A[i];
????????????if(i!=size-1) cout<<" ";
    }
    cout << endl;
     
    int key;
    for(int i = 1; i < size; ++i) {
        for(int j = i - 1; j >= 0; --j) {
            key = A[j + 1];
            if(A[j] <= A[j + 1]) break;
            A[j + 1] = A[j];
            A[j] = key;
             
        }
        for(int j = 0; j < size; ++j) {
            if(j == size - 1) cout << A[j];
            else cout << A[j] << " ";
        }
        cout << endl;
    }
    delete[] A;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      | ^
a.cc:12:2: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |  ^
a.cc:12:3: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |   ^
a.cc:12:4: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |    ^
a.cc:12:5: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |     ^
a.cc:12:6: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |      ^
a.cc:12:7: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |       ^
a.cc:12:8: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |        ^
a.cc:12:9: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |         ^
a.cc:12:10: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |          ^
a.cc:12:11: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |           ^
a.cc:12:12: error: expected primary-expression before '?' token
   12 | ????????????if(i!=size-1) cout<<" ";
      |            ^
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
a.cc:12:13: error: expected ':' before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~
      |             :
a.cc:12:13: error: expected primary-expression before 'if'
   12 | ????????????if(i!=size-1) cout<<" ";
      |             ^~