Language: C

#include <stdio.h>
#include <stdlib.h>
int checkarray[100][3];
int counter;

void checkset(int x, int y, int z);

int main(int argv, char *argc[]){
    int input, target, x, y ,z;
    
    while(1){
        scanf("%d %d\n", &input, &target);
        if(0 == input && 0 == target) break;
        
        for(x=1;input-2>=x; x++){
            for(y=x+1; input-1>=y; y++){
                for(z=y+1; input>=z; z++){
                    checkset(x, y, z);
                }
            }
        }
        
        
    }
    
    return 0;
}

void checkset(int min, int mid, int max){
    int buf, loop, flag;
    
    while(!(min <= mid && mid <= max)){
        if(min > mid){
            buf = min;
            min = mid;
            mid = buf;
        }
        if(mid > max){
            buf = mid;
            mid = max;
            max = buf;
        }
    }
    
    for(loop=0; 100>loop; loop++){
        if(max == checkarray[loop][0]){
            if(mid == checkarray[loop][1])
                if(min == checkarray[loop][2])
                    return;
                }
            }
        
        }
    }
    checkarray[0] = max;
    checkarray[1] = mid;
    checkarray[2] = min;
    counter += 1
    return;
}

Compiler output:
main.c:54:5: error: expected identifier or '(' before '}' token
   54 |     }
      |     ^
main.c:55:5: warning: data definition has no type or storage class
   55 |     checkarray[0] = max;
      |     ^~~~~~~~~~
main.c:55:5: error: type defaults to 'int' in declaration of 'checkarray' [-Wimplicit-int]
main.c:55:5: error: conflicting types for 'checkarray'; have 'int[0]'
main.c:3:5: note: previous declaration of 'checkarray' with type 'int[100][3]'
    3 | int checkarray[100][3];
      |     ^~~~~~~~~~
main.c:55:21: error: 'max' undeclared here (not in a function)
   55 |     checkarray[0] = max;
      |                     ^~~
main.c:56:5: warning: data definition has no type or storage class
   56 |     checkarray[1] = mid;
      |     ^~~~~~~~~~
main.c:56:5: error: type defaults to 'int' in declaration of 'checkarray' [-Wimplicit-int]
main.c:56:5: error: conflicting types for 'checkarray'; have 'int[1]'
main.c:3:5: note: previous declaration of 'checkarray' with type 'int[100][3]'
    3 | int checkarray[100][3];
      |     ^~~~~~~~~~
main.c:56:21: error: 'mid' undeclared here (not in a function)
   56 |     checkarray[1] = mid;
      |                     ^~~
main.c:57:5: warning: data definition has no type or storage class
   57 |     checkarray[2] = min;
      |     ^~~~~~~~~~
main.c:57:5: error: type defaults to 'int' in declaration of 'checkarray' [-Wimplicit-int]
main.c:57:5: error: conflicting types for 'checkarray'; have 'int[2]'
main.c:3:5: note: previous declaration of 'checkarray' with type 'int[100][3]'
    3 | int checkarray[100][3];
      |     ^~~~~~~~~~
main.c:57:21: error: 'min' undeclared here (not in a function); did you mean 'main'?
   57 |     checkarray[2] = min;
      |                     ^~~
      |                     main
main.c:58:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+=' token
   58 |     counter += 1
      |             ^~
main.c:60:1: error: expected identifier or '(' before '}' token
   60 | }
      | ^