criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;
	public class B {
	private static Scanner scanner;
	public static void main(String args[]) {

		scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int[] b = new int[a];
		int minj,count = 0;
		for(int i=0;i < a;i++) b[i] = scanner.nextInt();

		for(int i = 0;i < a;i++) {
			for(int j = i;j < a;j++) {
				minj = i;
				if(b[j] < b[minj]) {
					minj = j;
				}
				if(minj != i) {
					int tmp = b[i];
					b[i] = b[minj];
					b[minj] = tmp;
					count++;
				}
		}
		}
		for(int i=0;i < a;i++) {
			System.out.print(b[i]);
			if(i == a-1) System.out.println("");
			else System.out.print(" ");
		}
		count /= 3;
		System.out.println(count);
	}
	}



Compiler output:
Main.java:2: error: class B is public, should be declared in a file named B.java
	public class B {
	       ^
1 error
Language: Java

#include <stdio.h>

int x[100];

int main(){
  int i,j;
  int tem;
  int n;
  int cnt = 0;
  int minj;

  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&x[i]);
  }
  
 

    for(i=0;i<n-1;i++){
      minj = i;

      for(j=i;j<n-1;j++){
	if(x[j] < x[minj]){
	  minj = j;
	}
      }
      tem = x[i];
      x[i] = x[minj];
      x[minj] = tem;
      cnt++;
    
    }


    for(i=0;i<n;i++){
      printf("%d",x[i]);
      if(i<n-1){
	printf(" ");
      }
    }
    printf("\n%d\n",cnt);
    
    return 0;
  }
 



Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: illegal start of expression
  scanf("%d",&n);
             ^
Main.java:15: error: illegal start of expression
    scanf("%d",&x[i]);
               ^
5 errors
Language: Java

#include <stdio.h>

int x[100];

int main(){
  int i,j;
  int tem;
  int n;
  int cnt = 0;
  int minj;

  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&x[i]);
  }
  
 

    for(i=0;i<n-2;i++){
      minj = i;

      for(j=i;j<n-1;j++){
	if(x[j] < x[minj]){
	  minj = j;
	}
      }
      tem = x[i];
      x[i] = x[minj];
      x[minj] = tem;
      cnt++;
    
    }


    for(i=0;i<n;i++){
      printf("%d",x[i]);
      if(i<n-1){
	printf(" ");
      }
    }
    printf("\n%d\n",cnt);
    
    return 0;
  }
 



Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: illegal start of expression
  scanf("%d",&n);
             ^
Main.java:15: error: illegal start of expression
    scanf("%d",&x[i]);
               ^
5 errors
Language: Java

import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] args) throws Exception{
	int i=0;
	int tmp;
	int[] A;
	int Count_Sort = 0;
	
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N_str = br.readLine();
	String A_str = br.readLine();


	int N = Integer.parseInt(N_str);
	Scanner sc = new Scanner(A_str).useDelimiter("//s* //s*");
	
	A = new int[N];

	while(sc.hasNext()){
	    A[i] = sc.nextInt();
	    i++;
	}

	for(i=0;i<N-1;i++){
	    int minj = i;
	    for(j=i;j<N-1;j++){
		if(A[j]<A[minj]){
		    minj = j;
		    Count_Sort++;
		}
	    }
	    tmp = A[i];
	    A[i] = A[minj];
	    A[minj] = temp;
	}
	    

	for(i=0;i<N;i++){
	    Syhstem.out.print(A[i]);
	    if(i!=N) System.out.print(" ");
	}
	System.out.println("");
	System.out.println(Count_Sort);
    }
}



Compiler output:
Main.java:29: error: cannot find symbol
	    for(j=i;j<N-1;j++){
	        ^
  symbol:   variable j
  location: class Main
Main.java:29: error: cannot find symbol
	    for(j=i;j<N-1;j++){
	            ^
  symbol:   variable j
  location: class Main
Main.java:29: error: cannot find symbol
	    for(j=i;j<N-1;j++){
	                  ^
  symbol:   variable j
  location: class Main
Main.java:30: error: cannot find symbol
		if(A[j]<A[minj]){
		     ^
  symbol:   variable j
  location: class Main
Main.java:31: error: cannot find symbol
		    minj = j;
		           ^
  symbol:   variable j
  location: class Main
Main.java:37: error: cannot find symbol
	    A[minj] = temp;
	              ^
  symbol:   variable temp
  location: class Main
Main.java:42: error: package Syhstem does not exist
	    Syhstem.out.print(A[i]);
	           ^
7 errors
Language: Java

import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] args) throws Exception{
	int i=0,j=0;
	int tmp;
	int[] A;
	int Count_Sort = 0;
	
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N_str = br.readLine();
	String A_str = br.readLine();


	int N = Integer.parseInt(N_str);
	Scanner sc = new Scanner(A_str).useDelimiter("//s* //s*");
	
	A = new int[N];

	while(sc.hasNext()){
	    A[i] = sc.nextInt();
	    i++;
	}

	for(i=0;i<N-1;i++){
	    int minj = i;
	    for(j=i;j<N-1;j++){
		if(A[j]<A[minj]){
		    minj = j;
		    Count_Sort++;
		}
	    }
	    tmp = A[i];
	    A[i] = A[minj];
	    A[minj] = temp;
	}
	    

	for(i=0;i<N;i++){
	    Syhstem.out.print(A[i]);
	    if(i!=N) System.out.print(" ");
	}
	System.out.println("");
	System.out.println(Count_Sort);
    }
}



Compiler output:
Main.java:37: error: cannot find symbol
	    A[minj] = temp;
	              ^
  symbol:   variable temp
  location: class Main
Main.java:42: error: package Syhstem does not exist
	    Syhstem.out.print(A[i]);
	           ^
2 errors
Language: Java

import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] args) throws Exception{
	int i=0;
	int j=0;
	int tmp;
	int Count_Sort = 0;
	
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N_str = br.readLine();
	int N = Integer.parseInt(N_str);
	
	int[] A;
	A = new int[N];
	
	String A_str = br.readLine();
	Scanner sc = new Scanner(A_str).useDelimiter("\\s* \\s*");
	
	while(sc.hasNext()){
	    A[i] = sc.nextInt();
	    i++;
	}

	for(i=0;i<N-1;i++){
	    int minj = i;
	    for(j=i;j<N-1;j++){
		if(A[j]<A[minj]){
		    minj = j;
		}
	    }
	    tmp = A[i];
	    A[i] = A[minj];
	    A[minj] = tmp;
	    Count_Sort++:
	}
	    

	for(i=0;i<N;i++){
	    System.out.print(A[i]);
	    if(i!=N-1) System.out.print(" ");
	}
	System.out.println("");
	System.out.println(Count_Sort);
	sc.close();
    }
}


Compiler output:
Main.java:37: error: ';' expected
	    Count_Sort++:
	                ^
1 error
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class SelectionSort {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int elementNum = Integer.parseInt(br.readLine());
		String line = br.readLine();
		int[] numArray = parseInt(getSplitLine(line));

		int i = numArray.length - 1;
		int count = 0;
		while (i > 0) {
			for (int j = i - 1; j >= 0; j--) {
				if (numArray[i] < numArray[j]) {
					int tmpNum = numArray[i];
					numArray[i] = numArray[j];
					numArray[j] = tmpNum;
					count++;
				}
			}
			i--;
		}
		System.out.println(Arrays.toString(numArray)
				.replaceAll("[\\[\\],]", ""));
		System.out.println(count);
	}

	private static String[] getSplitLine(String line) {
		return line.split("\\s");
	}

	private static int[] parseInt(String[] line) {
		int[] numArray = new int[line.length];
		for (int i = 0; i < line.length; i++) {
			numArray[i] = Integer.parseInt(line[i]);
		}
		return numArray;
	}

}

Compiler output:
Main.java:7: error: class SelectionSort is public, should be declared in a file named SelectionSort.java
public class SelectionSort {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class SelectionSort {
	public static void main(String args[]) throws IOException {
		// ??\????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int elementNum = Integer.parseInt(br.readLine());
		String line = br.readLine();
		int[] numArray = parseInt(getSplitLine(line));

		// ???????????????????????????
		int count = 0;
		for (int i = 0; i < numArray.length - 1; i++) {
			for (int j = i + 1; j < numArray.length; j++) {
				if (numArray[i] > numArray[j]) {
					int temp = numArray[j];
					numArray[j] = numArray[i];
					numArray[i] = temp;
					count++;
				}
			}
		}

		System.out.println(Arrays.toString(numArray)
				.replaceAll("[\\[\\],]", ""));
		System.out.println(count);
	}

	private static String[] getSplitLine(String line) {
		return line.split("\\s");
	}

	private static int[] parseInt(String[] line) {
		int[] numArray = new int[line.length];
		for (int i = 0; i < line.length; i++) {
			numArray[i] = Integer.parseInt(line[i]);
		}
		return numArray;
	}

}

Compiler output:
Main.java:6: error: class SelectionSort is public, should be declared in a file named SelectionSort.java
public class SelectionSort {
       ^
1 error
Language: C

#include <stdio.h>

int main () {
	int n,o.minj,j,x,count = 0;

	scanf("%d", &n);
	int a[n];

	for (i = 0; i < n; i++) {
			minj = i;

			for (j = i; j < (n -1); j++) {
				if (a[j] < a[minj]) {
					minj = j;
					x = i;
					a[i] = a[minj];
					a[minj] = a[x];
					count++;
				}
			}

	}

	for (i = 0; i < n; i++) {
		if (i != (n -1)) printf("%d ", a[n]);
		else printf("%d\n", a[n]);
	}

	printf("%d\n", count);


	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |         int n,o.minj,j,x,count = 0;
      |                ^
main.c:9:14: error: 'i' undeclared (first use in this function)
    9 |         for (i = 0; i < n; i++) {
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:25: error: 'minj' undeclared (first use in this function)
   10 |                         minj = i;
      |                         ^~~~
main.c:12:30: error: 'j' undeclared (first use in this function)
   12 |                         for (j = i; j < (n -1); j++) {
      |                              ^
main.c:15:41: error: 'x' undeclared (first use in this function)
   15 |                                         x = i;
      |                                         ^
main.c:18:41: error: 'count' undeclared (first use in this function)
   18 |                                         count++;
      |                                         ^~~~~
Language: C

#include <stdio.h>

int main()
{
  int N;
  scanf("%d\n",&N);
  int i;
  int j;
  char c;
  int nums[N];
  for(i=0;i<N;i++){
    if(i==N-1){
      scanf("%d\n",&nums[i]);
    }else{
      scanf("%d ",&nums[i]);
    }
  }
  int mini;
  int temp;
  int count=0;
  for(i=0;i<N;i++){
    mini=i
    for(j=0;j<N;j++){
      if(nums[j]<nums[mini]){
        mini=j;
      }
      temp=nums[i];
      nums[i]=nums[mini];
      nums[mini]=temp;
      count++;
    }
  }
  for(i=0;i<N;i++){
    c=N-1?'\n':' ';
    printf("%d%c",&nums[i],c);
  }
}


Compiler output:
main.c: In function 'main':
main.c:22:11: error: expected ';' before 'for'
   22 |     mini=i
      |           ^
      |           ;
   23 |     for(j=0;j<N;j++){
      |     ~~~
Language: C

#include <stdio.h>

int selection_sort(int n,int *a)
{
  int i,j,minj,x;
  int  ans=0;

  for(i=0;i<n;i++){
    mini=i;
    for(j=i;j<n;j++){
      if(a[j]<a[minj]) minj=j;
    }
    if(i!=minj){
      x=a[i],a[i]=a[minj],a[minj]=x;
      ans++;
    }
  }
  return ans;
}

int in()
{
  int n=0,c=getchar_unlocked();
  do n=10*n+(c&0xf),c=getchar_unlocked();while(c>='0');
  return n;
}

int a[102];

int main()
{
  int N,i,k;

  N=in();
  for(i=0;i<N;i++)a[i]=in();
  k=selection_sort("%d",a[0]);
  printf("%d",a[0]);
  for(i=1;i<N;i++)printf(" %d",a[i]);
  putchar('\n');
  printf("%d\n",k);
  return 0;
}



Compiler output:
main.c: In function 'selection_sort':
main.c:9:5: error: 'mini' undeclared (first use in this function); did you mean 'minj'?
    9 |     mini=i;
      |     ^~~~
      |     minj
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:36:20: error: passing argument 1 of 'selection_sort' makes integer from pointer without a cast [-Wint-conversion]
   36 |   k=selection_sort("%d",a[0]);
      |                    ^~~~
      |                    |
      |                    char *
main.c:3:24: note: expected 'int' but argument is of type 'char *'
    3 | int selection_sort(int n,int *a)
      |                    ~~~~^
main.c:36:26: error: passing argument 2 of 'selection_sort' makes pointer from integer without a cast [-Wint-conversion]
   36 |   k=selection_sort("%d",a[0]);
      |                         ~^~~
      |                          |
      |                          int
main.c:3:31: note: expected 'int *' but argument is of type 'int'
    3 | int selection_sort(int n,int *a)
      |                          ~~~~~^
Language: C

#include <stdio.h>

int main()
{
    int N, i, j, flag = 0, mini;
    int x[105];
    scanf_s("%d",&N);
    for(i = 0;i < N;i++)
        scanf_s("%d",&x[i]);
    for(i = 0;i < N - 1;i++)
    {
        mini = i;
        for(j = i;j < N;j++)
        {
            if(x[j] < x[mini])
                mini = j;
        }
        int t = x[i];
        x[i] = x[mini];
        x[mini] = t;
        if(i != mini)
            flag++;
    }
    for(i = 0;i < N;i++)
    {
        if(i > 0) printf(" ");
        printf("%d",x[i]);
    }
    printf("\n%d",flag);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |     scanf_s("%d",&N);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>

int main()
{
    int N, i, j, flag = 0, mini;
    int x[105];
    scanf("%d",&N);
    for(i = 0;i < N;i++)
        scanf_s("%d",&x[i]);
    for(i = 0;i < N - 1;i++)
    {
        mini = i;
        for(j = i;j < N;j++)
        {
            if(x[j] < x[mini])
                mini = j;
        }
        int t = x[i];
        x[i] = x[mini];
        x[mini] = t;
        if(i != mini)
            flag++;
    }
    for(i = 0;i < N;i++)
    {
        if(i > 0) printf(" ");
        printf("%d",x[i]);
    }
    printf("\n%d",flag);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         scanf_s("%d",&x[i]);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

void bubbleSort(int a[100], int N);
void swap(int *a, int *b){
    int c;
    c=*a;
    *a=*b;
    *b=c;

}

int main(void){
    int a[100],N,i,j;
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        scanf("%d ",&a[i]);
    }

    selectionSort(a,N);


}

void selectionSort(int a[100], int N){
    int i,j,minj,count;
    count = 0;

    for(i=0;i<N;i++){
        minj = i;
        for(j=i;i<N;j++){
            if(a[j]<a[minj])
                minj=i;
        }
        swap(a[i],a[minj])
    }

    printf("%d",a[0]);
    if(N>1){
        for(i=1;i<N;i++)
            printf(" %d",a[i]);
    }
    printf("\n"); 
    printf("%d",count);
}


Compiler output:
main.c: In function 'main':
main.c:20:5: error: implicit declaration of function 'selectionSort' [-Wimplicit-function-declaration]
   20 |     selectionSort(a,N);
      |     ^~~~~~~~~~~~~
main.c: At top level:
main.c:25:6: warning: conflicting types for 'selectionSort'; have 'void(int *, int)'
   25 | void selectionSort(int a[100], int N){
      |      ^~~~~~~~~~~~~
main.c:20:5: note: previous implicit declaration of 'selectionSort' with type 'void(int *, int)'
   20 |     selectionSort(a,N);
      |     ^~~~~~~~~~~~~
main.c: In function 'selectionSort':
main.c:35:15: error: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   35 |         swap(a[i],a[minj])
      |              ~^~~
      |               |
      |               int
main.c:4:16: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |           ~~~~~^
main.c:35:20: error: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   35 |         swap(a[i],a[minj])
      |                   ~^~~~~~
      |                    |
      |                    int
main.c:4:24: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |                   ~~~~~^
main.c:35:27: error: expected ';' before '}' token
   35 |         swap(a[i],a[minj])
      |                           ^
      |                           ;
   36 |     }
      |     ~
Language: C

#include<stdio.h>

void selectionSort(int a[100], int N);
void swap(int *a, int *b){
    int c;
    c=*a;
    *a=*b;
    *b=c;
}

int main(void){
    int a[100],N,i,j;
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        scanf("%d ",&a[i]);
    }

    selectionSort(a,N);
}

void selectionSort(int a[100], int N){
    int i,j,minj,c,count;
    count = 0;

    if(N==1)
        printf("%d\n%d\n",a[0],0);
        
        return;

    for(i=0;i<N;i++){
        minj = i;
        for(j=i;i<N;j++){
            if(a[j]<a[minj])
                minj=j;
        }
        if(i!=minj){
            swap(a[i],a[minj])
            count++;
        }
        
    }

    printf("%d",a[0]);
    if(N>1){
        for(i=1;i<N;i++)
            printf(" %d",a[i]);
    }
    printf("\n%d\n",count); 
}


Compiler output:
main.c: In function 'selectionSort':
main.c:38:19: error: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   38 |             swap(a[i],a[minj])
      |                  ~^~~
      |                   |
      |                   int
main.c:4:16: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |           ~~~~~^
main.c:38:24: error: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   38 |             swap(a[i],a[minj])
      |                       ~^~~~~~
      |                        |
      |                        int
main.c:4:24: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |                   ~~~~~^
main.c:38:31: error: expected ';' before 'count'
   38 |             swap(a[i],a[minj])
      |                               ^
      |                               ;
   39 |             count++;
      |             ~~~~~
Language: C

#include<stdio.h>

void selectionSort(int a[100], int N);
void swap(int *a, int *b){
    int c;
    c=*a;
    *a=*b;
    *b=c;
}

int main(void){
    int a[100],N,i,j;
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        scanf("%d ",&a[i]);
    }

    selectionSort(a,N);
}

void selectionSort(int a[100], int N){
    int i,j,minj,count;
    count = 0;

    if(N==1)
        printf("%d\n%d\n",a[0],0);
        
        return;

    for(i=0;i<N;i++){
        minj = i;
        for(j=i;j<N;j++){
            if(a[j]<a[minj])
                minj=j;
        }

        swap(a[i],a[minj]);
        if(i!=minj){
            count++;
        }  
      }
    }

    printf("%d",a[0]);
    if(N>1){
        for(i=1;i<N;i++)
            printf(" %d",a[i]);
    }
    printf("\n%d\n",count); 
}


Compiler output:
main.c: In function 'selectionSort':
main.c:38:15: error: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   38 |         swap(a[i],a[minj]);
      |              ~^~~
      |               |
      |               int
main.c:4:16: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |           ~~~~~^
main.c:38:20: error: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
   38 |         swap(a[i],a[minj]);
      |                   ~^~~~~~
      |                    |
      |                    int
main.c:4:24: note: expected 'int *' but argument is of type 'int'
    4 | void swap(int *a, int *b){
      |                   ~~~~~^
main.c: At top level:
main.c:45:12: error: expected declaration specifiers or '...' before string constant
   45 |     printf("%d",a[0]);
      |            ^~~~
main.c:45:17: error: unknown type name 'a'
   45 |     printf("%d",a[0]);
      |                 ^
main.c:46:5: error: expected identifier or '(' before 'if'
   46 |     if(N>1){
      |     ^~
main.c:50:12: error: expected declaration specifiers or '...' before string constant
   50 |     printf("\n%d\n",count);
      |            ^~~~~~~~
main.c:50:21: error: unknown type name 'count'
   50 |     printf("\n%d\n",count);
      |                     ^~~~~
main.c:51:1: error: expected identifier or '(' before '}' token
   51 | }
      | ^
Language: C

#include <stdio.h>

int selection_sort(int n, int A[])
{
    int i, j, mini, v, count;

    for (i=0; i<n; i++){
        mini = i;

        for (j=i; j<n; j++){

            if (A[j] < mini){
                mini = j;
            }
            v = A[i];
            A[i] = A[mini];
            A[mini] = v;
            count++;
        }
    return count;
    }
}

int main(void)
{
    int n;
    scanf("%d", &n);

    int A[n];
    for (i=0: i<n; i++)
        scanf("%d", &A[i]);

    int count;
    count = selection_sort(n, A);

    for (i=0; i<n-1; i++)
        printf("%d ", &A[i]);
    printf("d\n", A[n-1]);

    printf("d\n", count);

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:30:10: error: 'i' undeclared (first use in this function)
   30 |     for (i=0: i<n; i++)
      |          ^
main.c:30:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:13: error: expected ';' before ':' token
   30 |     for (i=0: i<n; i++)
      |             ^
      |             ;
main.c:30:23: error: expected ';' before ')' token
   30 |     for (i=0: i<n; i++)
      |                       ^
      |                       ;
Language: C

#include<stdio.h>

int selectionSort(int A[],int N)
{
int i,minj,j,a,sw=0;
for(i=0;i<N-1;i++){
    minj = i;
        for(j=i;j<N-1;j++){
            if(A[j]<A[minj]){
                minj=j;
            }
            a=A[i];
            A[i]=A[minj];
            A[minj]=a;
        }
    }
    return sw;
}
int main(void)
{
    int sw,A[100],i,N;
    scanf("%d".&N);
    for(i=0;i<N;i++){
        scanf("%d",&A[i]);
    }
    sw = selectionSort(A,N);
    for(i=0;i<N;i++){
        printf("%d ",A[i]);
    }
    printf("\n");
    printf("%d\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:16: error: expected identifier before '&' token
   22 |     scanf("%d".&N);
      |                ^
Language: C

#include<stdio.h>

int selectionSort(int A[],int N)
{
int i,minj,j,a,sw=0;
for(i=0;i<N-1;i++){
    minj = i;
        for(j=i;j<N-1;j++){
            if(A[j]<A[minj]){
                minj=j;
            }
            a=A[i];
            A[i]=A[minj];
            A[minj]=a;
        }
    }
    return sw;
}
int main(void)
{
    int sw,A[100],i,N;
    scanf("%d".&N);
    for(i=0;i<N;i++){
        scanf("%d",&A[i]);
    }
    sw = selectionSort(A,N);
    for(i=0;i<N;i++){
        printf("%d ",A[i]);
    }
    printf("\n");
    printf("%d\n",sw);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:16: error: expected identifier before '&' token
   22 |     scanf("%d".&N);
      |                ^
Language: C

#include<stdio.h>

int selectionSort(int A[],int N)
{
int i,minj,j,a,sw=0;
for(i=0;i<N-1;i++){
    minj = i;
        for(j=i;j<N-1;j++){
            if(A[j]<A[minj]){
                minj=j;
            }
        }
            a=A[i];
            A[i]=A[minj];
            A[minj]=a;
            if(i　!=minj){
                sw++;
            }
    }
    return sw;
}
int main(void)
{
    int sw,A[100],i,N;
    scanf("%d",&N);
    for(i=0;i<N;i++){
        scanf("%d",&A[i]);
    }
    sw = selectionSort(A,N);
    for(i=0;i<N;i++){
        if(i>0){
            printf(" ");
        }
        printf("%d",A[i]);
    }
    printf("\n");
    printf("%d\n",sw);
    return 0;
}


Compiler output:
main.c: In function 'selectionSort':
main.c:16:17: error: stray '\343' in program
   16 |             if(i<U+3000>!=minj){
      |                 ^~~~~~~~
Language: C

#include <iostream>
#include <cstdio>
using namespace std;

int selectionSort(int A[], const int N)
{
    int cnt = 0;

    for( int i = 0; i < N; ++i ){
        int min = i;

	//iより後でA[i]より最も小さい値の添字を求める
        for( int j = i; j < N; ++j )
            if( A[j] < A[min] )
                min = j;

	//iとminが異なれば交換
        if( i != min ){
	   swap(A[i], A[min]);
	   ++cnt;
	}
    }

    return cnt;
}

int main()
{
    int N;
    scanf("%d", &N);
    int A[N];
    for( int i = 0; i < N; ++i )
        scanf("%d", &A[i]);

    int cnt = selectionSort(A, N);

    for( int i = 0; i < N; ++i ){
        if( i ) printf(" ");
        printf("%d", A[i]);
    }
    printf("\n%d\n", cnt);

    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

main(){
  int A[100];
  int i, j, n, x, minj, count;

  scanf("%d", &n);

  for( i = 0; i < n; ++i){
    scanf("%d", &A[i]);
  }

  count = 0;

  for( i = 0; i < n; i++){
    minj = i;

    for( j = i; j < n; j++){

      if( A[j] < A[minj] ) minj = j;

    }
    
    if( A[i] != A[minj] ){
    x = A[i];
    A[i] = A[minj];
    A[minj] = x;

    count++;

    }

  }

  for( i = 0; i < n; i++){
    if( i == n-1 ) printf("%d\n", A[i]);
    else printf("%d ", A[i]);
  }

  printf("%d\n", count);
　
  return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:41:1: error: stray '\343' in program
   41 | <U+3000>
      | ^~~~~~~~
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,miji
    for(i = 0 ; i < N - 1 ; i++)
      {
	miji = 1;
	for(j = i ; j < N ; j++){
	  if(A[j] < a[miji])miji = j;
	}
	t = A[i];
	A[i] = A[miji];
	A[miji] = t;
	if(i!=miji)sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf("");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,miji
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |            ^~
main.c:4:17: error: 'miji' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |                 ^~~~
main.c:4:21: error: expected ';' before 'for'
    4 |   inti,j,t,sw=0,miji
      |                     ^
      |                     ;
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |     ~~~
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,miji
    for(i = 0 ; i < N - 1 ; i++)
      {
	miji = 1;
	for(j = i ; j < N ; j++){
	  if(A[j] < a[miji])miji = j;
	}
	t = A[i];
	A[i] = A[miji];
	A[miji] = t;
	if(i!=miji)sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++)scanf("%d",&A[i]);

  sw = selectionSort(A,N);
  
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf(" ");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,miji
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |            ^~
main.c:4:17: error: 'miji' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |                 ^~~~
main.c:4:21: error: expected ';' before 'for'
    4 |   inti,j,t,sw=0,miji
      |                     ^
      |                     ;
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |     ~~~
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,miji
    for(i = 0 ; i < N - 1 ; i++)
      {
	miji = 1;
	for(j = i ; j < N ; j++){
	  if(A[j] < A[miji])miji = j;
	}
	t = A[i];
	A[i] = A[miji];
	A[miji] = t;
	if(i!=miji)sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++)scanf("%d",&A[i]);

  sw = selectionSort(A,N);
  
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf(" ");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,miji
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |            ^~
main.c:4:17: error: 'miji' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji
      |                 ^~~~
main.c:4:21: error: expected ';' before 'for'
    4 |   inti,j,t,sw=0,miji
      |                     ^
      |                     ;
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |     ~~~
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,miji;
    for(i = 0 ; i < N - 1 ; i++)
      {
	miji = 1;
	for(j = i ; j < N ; j++){
	  if(A[j] < A[miji])miji = j;
	}
	t = A[i];
	A[i] = A[miji];
	A[miji] = t;
	if(i!=miji)sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++)scanf("%d",&A[i]);

  sw = selectionSort(A,N);
  
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf(" ");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,miji;
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |            ^~
main.c:4:17: error: 'miji' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |                 ^~~~
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |         ^
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,miji;
    for(i = 0 ; i < N - 1 ; i++)
      {
	miji = 1;
	for(j = i ; j < N ; j++){
	  if(A[j] < A[miji])miji = j;
	}
	t = A[i];
	A[i] = A[miji];
	A[miji] = t;
	if(i!=miji) sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++) scanf("%d",&A[i]);

  sw = selectionSort(A,N);
  
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf(" ");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,miji;
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |            ^~
main.c:4:17: error: 'miji' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,miji;
      |                 ^~~~
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |         ^
Language: C

#include<stdio.h>

int selectionSort(int A[], int N){
  inti,j,t,sw=0,minj;
    for(i = 0 ; i < N - 1 ; i++)
      {
	minj = i;
	for(j = i ; j < N ; j++){
	  if(A[j] < A[minj])minj = j;
	}
	t = A[i];
	A[i] = A[minj];
	A[minj] = t;
	if(i!=minj) sw++;
      }
  return sw;
}

int main(){
  int A[100],N,i,sw;
  
  scanf("%d",&N);
  for(i = 0 ; i < N ; i++) scanf("%d",&A[i]);

  sw = selectionSort(A,N);
  
  for(i = 0 ; i < N ; i++){
    if(i > 0)printf(" ");
    printf("%d",A[i]);
  }
  printf("\n");
  printf("%d\n", sw);
  
  return 0;
}

Compiler output:
main.c: In function 'selectionSort':
main.c:4:3: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 |   inti,j,t,sw=0,minj;
      |   ^~~~
      |   int
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'j' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,minj;
      |        ^
main.c:4:10: error: 't' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,minj;
      |          ^
main.c:4:12: error: 'sw' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,minj;
      |            ^~
main.c:4:17: error: 'minj' undeclared (first use in this function)
    4 |   inti,j,t,sw=0,minj;
      |                 ^~~~
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i = 0 ; i < N - 1 ; i++)
      |         ^
Language: C

#include<stdio.h>
void SelectionSort(int,int);
#define N 100 



main(){
  int i,A[N],n;
  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&A[i]);
  selectionSort(&A,n);

}

void SelectionSort(int *a,int num){
  int i,j,minj,con=0;
  for(i=1;i<num;i++){
    minj = i;
    con++;
    for(j=0;j<num;j++) if(a[j]<a[minj]) minj = j;    

    a[i] = a[minj];
  }

  for(i=0;i<num-1;i++)
    printf("%d ",a[i]);
  printf("%d\n",a[num-1]);  
  printf("%d\n",con);
}

Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'selectionSort'; did you mean 'SelectionSort'? [-Wimplicit-function-declaration]
   11 |   selectionSort(&A,n);
      |   ^~~~~~~~~~~~~
      |   SelectionSort
main.c: At top level:
main.c:15:6: error: conflicting types for 'SelectionSort'; have 'void(int *, int)'
   15 | void SelectionSort(int *a,int num){
      |      ^~~~~~~~~~~~~
main.c:2:6: note: previous declaration of 'SelectionSort' with type 'void(int,  int)'
    2 | void SelectionSort(int,int);
      |      ^~~~~~~~~~~~~
Language: C

#include<stdio.h>
#define A 100;

main()
{

  int num[100], t = 0;
  int i,j;
  int max, mini, s

  scanf("%d", &max);

 for(i = 0; i < max; i++){

    scanf("%d", &num[i]);

  }


 for(i = 0; i < max; i++){
   
   mini = i;
   
   for(j = i; j < max; j++){
     
     if(num[j] < num[mini]) mini = j;
     
   }
   
     if(mini != i){
       s = num[i];
       num[i] = num[mini];
       num[mini] = sav;
       t++;
     } 
 }
 for(i = 0; i < max; i++){

   if(i>0) printf(" ");

   printf("%d",num[i]);

 }

 printf("\n%d\n",t);


}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |   scanf("%d", &max);
      |   ^~~~~
main.c:31:8: error: 's' undeclared (first use in this function)
   31 |        s = num[i];
      |        ^
main.c:31:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:20: error: 'sav' undeclared (first use in this function)
   33 |        num[mini] = sav;
      |                    ^~~
Language: C

#include<stdio.h>
#define A 100;
 
main()
{
 
  int num[100], t = 0;
  int i,j;
  int max, mini, s
 
  scanf("%d", &max);
 
 for(i = 0; i < max; i++){
 
    scanf("%d", &num[i]);
 
  }
 
 
 for(i = 0; i < max; i++){
    
   mini = i;
    
   for(j = i; j < max; j++){
      
     if(num[j] < num[mini]) mini = j;
      
   }
    
     if(mini != i){
       s = num[i];
       num[i] = num[mini];
       num[mini] = sav;
       t++;
     }
 }
 for(i = 0; i < max; i++){
 
   if(i>0) printf(" ");
 
   printf("%d",num[i]);
 
 }
 
 printf("\n%d\n",t);
 
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |   scanf("%d", &max);
      |   ^~~~~
main.c:31:8: error: 's' undeclared (first use in this function)
   31 |        s = num[i];
      |        ^
main.c:31:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:20: error: 'sav' undeclared (first use in this function)
   33 |        num[mini] = sav;
      |                    ^~~
Language: C

#include<stdio.h>
#define A 100;
 
main()
{
 
  int num[100], t = 0;
  int i,j;
  int max, mini, s;
 
  scanf("%d", &max);
 
 for(i = 0; i < max; i++){
 
    scanf("%d", &num[i]);
 
  }
 
 
 for(i = 0; i < max; i++){
    
   mini = i;
    
   for(j = i; j < max; j++){
      
     if(num[j] < num[mini]) mini = j;
      
   }
    
     if(mini != i){
       s = num[i];
       num[i] = num[mini];
       num[mini] = sav;
       t++;
     }
 }
 for(i = 0; i < max; i++){
 
   if(i>0) printf(" ");
 
   printf("%d",num[i]);
 
 }
 
 printf("\n%d\n",t);
 
 
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main()
      | ^~~~
main.c: In function 'main':
main.c:33:20: error: 'sav' undeclared (first use in this function)
   33 |        num[mini] = sav;
      |                    ^~~
main.c:33:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define A 100;
 
main()
{
 
  int num[100], t = 0;
  int i,j;
  int max, mini, s
 
  scanf("%d", &max);
 
 for(i = 0; i < max; i++){
 
    scanf("%d", &num[i]);
 
  }
 
 
 for(i = 0; i < max; i++){
    
   mini = i;
    
   for(j = i; j < max; j++){
      
     if(num[j] < num[mini]) mini = j;
      
   }
    
     if(mini != i){
       s = num[i];
       num[i] = num[mini];
       num[mini] = s;
       t++;
     }
 }
 for(i = 0; i < max; i++){
 #include<stdio.h>
#define A 100;
 
main()
{
 
  int num[100], t = 0;
  int i,j;
  int max, mini, s;
 
  scanf("%d", &max);
 
 for(i = 0; i < max; i++){
 
    scanf("%d", &num[i]);
 
  }
 
 
 for(i = 0; i < max; i++){
    
   mini = i;
    
   for(j = i; j < max; j++){
      
     if(num[j] < num[mini]) mini = j;
      
   }
    
     if(mini != i){
       s = num[i];
       num[i] = num[mini];
       num[mini] = sav;
       t++;
     }
 }
 for(i = 0; i < max; i++){
 
   if(i>0) printf(" ");
 
   printf("%d",num[i]);
 
 }
 
 printf("\n%d\n",t);
 
 
}
   if(i>0) printf(" ");
 
   printf("%d",num[i]);
 
 }
 
 printf("\n%d\n",t);
 
 
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main()
      | ^~~~
main.c: In function 'main':
main.c:11:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |   scanf("%d", &max);
      |   ^~~~~
main.c:31:8: error: 's' undeclared (first use in this function)
   31 |        s = num[i];
      |        ^
main.c:31:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:7: error: expected ';' before '{' token
   41 | main()
      |       ^
      |       ;
   42 | {
      | ~
Language: C

#define <stdio.h>

#define LOOP_INIT 0
#define TESTCASE_ARRAY_MAX 100
#define EXIT_SUCCESS 0
#define PREV_ITEM( x ) x - 1

int main( void )
{
	unsigned char aubW_Dtestcase[ TESTCASE_ARRAY_MAX ];
	unsigned char ubW_Dtc_cnt;
	unsigned char ubW_Dtc_min;
	unsigned char ubW_Dtrade;
	unsigned char ubW_Carray_cnt;
	unsigned char ubW_Carray_sub_cnt;
	unsigned short usW_Csort_cnt;

	scanf( "%d", &ubW_Dtc_cnt );
	for( ubW_Carray_cnt = INIT_LOOP; ubW_Carray_cnt < ubW_Dtc_cnt; ubW_Carray_cnt++){
		scanf( "%d", &aubW_Dtestcase[ ubW_Carray_cnt ] );
	}

	for( ubW_Carray_cnt = LOOP_INIT; ubW_Carray_cnt < ubW_Dtc_cnt; ubW_Carray_cnt++ ){
		ubW_Dtc_min = ubW_Carray_cnt;
		for( ubW_Carray_sub_cnt = ubW_Carray_cnt; ubW_Carray_sub_cnt < ubW_Dtc_cnt; ubW_Carray_sub_cnt++){
			if( aubW_Dtestcase[ ubW_Carray_sub_cnt ] < aubW_Dtestcase[ ubW_Dtc_min ] ){
				ubW_Dtc_min = ubW_Carray_cnt;
				ubW_Dtrade = aubW_Dtestcase[ ubW_Carray_sub_cnt ];
				aubW_Dtestcase[ ubW_Carray_sub_cnt ] = aubW_Dtestcase[ ubW_Dtc_min ];
				aubW_Dtestcase[ ubW_Dtc_min ] = ubW_Dtrade;
				usW_Csort_cnt++;
			}
		}
	}

	for( ubW_Carray_cnt = LOOP_INIT; ubW_Carray_cnt < PREV_ITEM( ubW_Dtc_cnt ); ubW_Carray_cnt++ ){
		printf( "%d ", aubW_Dtestcase[ ubW_Carray_cnt ] );
	}
	printf( "%d\n", aubW_Dtestcase[ PREV_ITEM( ubW_Dtc_cnt ) ] );
	printf( "%d\n", usW_Csort_cnt );

	return EXIT_SUCCESS;
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
main.c: In function 'main':
main.c:18:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   18 |         scanf( "%d", &ubW_Dtc_cnt );
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define <stdio.h>
main.c:18:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   18 |         scanf( "%d", &ubW_Dtc_cnt );
      |         ^~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:31: error: 'INIT_LOOP' undeclared (first use in this function)
   19 |         for( ubW_Carray_cnt = INIT_LOOP; ubW_Carray_cnt < ubW_Dtc_cnt; ubW_Carray_cnt++){
      |                               ^~~~~~~~~
main.c:19:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:37:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   37 |                 printf( "%d ", aubW_Dtestcase[ ubW_Carray_cnt ] );
      |                 ^~~~~~
main.c:37:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:37:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:37:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:39:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   39 |         printf( "%d\n", aubW_Dtestcase[ PREV_ITEM( ubW_Dtc_cnt ) ] );
      |         ^~~~~~
main.c:39:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#define <stdio.h>

#define LOOP_INIT 0
#define TESTCASE_ARRAY_MAX 100
#define EXIT_SUCCESS 0
#define PREV_ITEM( x ) x - 1

int main( void )
{
	unsigned char aubW_Dtestcase[ TESTCASE_ARRAY_MAX ];
	unsigned char ubW_Dtc_cnt;
	unsigned char ubW_Dtc_min;
	unsigned char ubW_Dtrade;
	unsigned char ubW_Carray_cnt;
	unsigned char ubW_Carray_sub_cnt;
	unsigned short usW_Csort_cnt;

	scanf( "%d", &ubW_Dtc_cnt );
	for( ubW_Carray_cnt = LOOP_INIT; ubW_Carray_cnt < ubW_Dtc_cnt; ubW_Carray_cnt++){
		scanf( "%d", &aubW_Dtestcase[ ubW_Carray_cnt ] );
	}

	for( ubW_Carray_cnt = LOOP_INIT; ubW_Carray_cnt < ubW_Dtc_cnt; ubW_Carray_cnt++ ){
		ubW_Dtc_min = ubW_Carray_cnt;
		for( ubW_Carray_sub_cnt = ubW_Carray_cnt; ubW_Carray_sub_cnt < ubW_Dtc_cnt; ubW_Carray_sub_cnt++){
			if( aubW_Dtestcase[ ubW_Carray_sub_cnt ] < aubW_Dtestcase[ ubW_Dtc_min ] ){
				ubW_Dtc_min = ubW_Carray_cnt;
				ubW_Dtrade = aubW_Dtestcase[ ubW_Carray_sub_cnt ];
				aubW_Dtestcase[ ubW_Carray_sub_cnt ] = aubW_Dtestcase[ ubW_Dtc_min ];
				aubW_Dtestcase[ ubW_Dtc_min ] = ubW_Dtrade;
				usW_Csort_cnt++;
			}
		}
	}

	for( ubW_Carray_cnt = LOOP_INIT; ubW_Carray_cnt < PREV_ITEM( ubW_Dtc_cnt ); ubW_Carray_cnt++ ){
		printf( "%d ", aubW_Dtestcase[ ubW_Carray_cnt ] );
	}
	printf( "%d\n", aubW_Dtestcase[ PREV_ITEM( ubW_Dtc_cnt ) ] );
	printf( "%d\n", usW_Csort_cnt );

	return EXIT_SUCCESS;
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
main.c: In function 'main':
main.c:18:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   18 |         scanf( "%d", &ubW_Dtc_cnt );
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define <stdio.h>
main.c:18:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   18 |         scanf( "%d", &ubW_Dtc_cnt );
      |         ^~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:37:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   37 |                 printf( "%d ", aubW_Dtestcase[ ubW_Carray_cnt ] );
      |                 ^~~~~~
main.c:37:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:37:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:37:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:39:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   39 |         printf( "%d\n", aubW_Dtestcase[ PREV_ITEM( ubW_Dtc_cnt ) ] );
      |         ^~~~~~
main.c:39:9: note: include '<stdio.h>' or provide a declaration of 'printf'