Language: C++

#include<iostream>

using namespace std;

void show(int arr[], int N){
    for(int i=0; i<N; i++)
        cout<<arr[i]<<' '<<flush;
    cout<<endl;
}


void swap(int& a, int& b){
    int t=a;
    a=b;
    b=t;
}


int InsertSort(int[], int);

int main()
{
    int N;
    cin>>N;
    int arr[100];

    for(int i=0; i<N; i++)
        cin>>arr[i];
    show(arr, N);

    InsertSort(arr, N);




}

int InsertSort(int arr[], int N)
{

    int counter=0;
    int compindex;
    int comp;
    int j;
    for( int i=1; i < N; i++ ){

        compindex=i;
        comp=arr[compindex];
        j=1;
        for( ; compindex-j > -1; j++ ) {

                                                                            1,1          ??????

Compiler output:
a.cc: In function 'int InsertSort(int*, int)':
a.cc:52:91: error: expected primary-expression before '?' token
   52 |                                                                             1,1          ??????
      |                                                                                           ^
a.cc:52:92: error: expected primary-expression before '?' token
   52 |                                                                             1,1          ??????
      |                                                                                            ^
a.cc:52:93: error: expected primary-expression before '?' token
   52 |                                                                             1,1          ??????
      |                                                                                             ^
a.cc:52:94: error: expected primary-expression before '?' token
   52 |                                                                             1,1          ??????
      |                                                                                              ^
a.cc:52:95: error: expected primary-expression before '?' token
   52 |                                                                             1,1          ??????
      |                                                                                               ^
a.cc:52:96: error: expected primary-expression at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected ':' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
      |                                                                                                :
a.cc:52:96: error: expected primary-expression at end of input
a.cc:52:96: error: expected '}' at end of input
a.cc:50:40: note: to match this '{'
   50 |         for( ; compindex-j > -1; j++ ) {
      |                                        ^
a.cc:52:96: error: expected '}' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
a.cc:45:31: note: to match this '{'
   45 |     for( int i=1; i < N; i++ ){
      |                               ^
a.cc:52:96: error: expected '}' at end of input
   52 |                                                                             1,1          ??????
      |                                                                                                ^
a.cc:39:1: note: to match this '{'
   39 | {
      | ^
a.cc:52:96: warning: no return statement in function returning non-void [-Wreturn-type]
   52 |                                                                             1,1          ??????
      |                                                                                                ^