Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(void)
{
	int i = 0, j = 0, n, count = 0;
	int seisu[20];
	char str[20];
	char tok[20][20];
	scanf("%d", &n);
	while (getchar() != '\n');
	fgets(str, sizeof(str), stdin);

	char *p = str;


	strtok(p, " ");
	strcpy(tok[i], p);

	while (1) {
		i++;
		p = strtok(NULL, " ");
		if (p == NULL)
			break;
		strcpy(tok[i], p);
	}

	for (i = 0; i < n; i++) {
		seisu[i] = atoi(tok[i]);
	}


	int irekae;

	for (i = 0; i < n; i++) {
		for (j = n - 1; 0 < j; j--) {
			if (seisu[j] < seisu[j - 1]) {
				irekae = seisu[j];
				seisu[j] = seisu[j - 1];
				seisu[j - 1] = irekae;
				count++;
			}
		}
	}

	for (i = 0; i < n; i++)
		printf("%d ", seisu[i]);

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

	return 0;

}
		if (p == NULL)
			break;
		strcpy(tok[i], p);
	}

	for (i = 0; i < n; i++) {
		seisu[i] = atoi(tok[i]);
	}


	int irekae;

	for (i = 0; i < n; i++) {
		for (j = n - 1; 0 < j; j--) {
			if (seisu[j] < seisu[j - 1]) {
				irekae = seisu[j];
				seisu[j] = seisu[j - 1];
				seisu[j - 1] = irekae;
				count++;
			}
		}
	}

	for (i = 0; i < n; i++)
		printf("%d ", seisu[i]);

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

	return 0;

}


Compiler output:
main.c:56:17: error: expected identifier or '(' before 'if'
   56 |                 if (p == NULL)
      |                 ^~
main.c:58:24: error: unknown type name 'tok'
   58 |                 strcpy(tok[i], p);
      |                        ^~~
main.c:58:32: error: unknown type name 'p'
   58 |                 strcpy(tok[i], p);
      |                                ^
main.c:59:9: error: expected identifier or '(' before '}' token
   59 |         }
      |         ^
main.c:61:9: error: expected identifier or '(' before 'for'
   61 |         for (i = 0; i < n; i++) {
      |         ^~~
main.c:61:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   61 |         for (i = 0; i < n; i++) {
      |                       ^
main.c:61:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   61 |         for (i = 0; i < n; i++) {
      |                             ^~
main.c:68:9: error: expected identifier or '(' before 'for'
   68 |         for (i = 0; i < n; i++) {
      |         ^~~
main.c:68:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   68 |         for (i = 0; i < n; i++) {
      |                       ^
main.c:68:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   68 |         for (i = 0; i < n; i++) {
      |                             ^~
main.c:79:9: error: expected identifier or '(' before 'for'
   79 |         for (i = 0; i < n; i++)
      |         ^~~
main.c:79:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   79 |         for (i = 0; i < n; i++)
      |                       ^
main.c:79:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   79 |         for (i = 0; i < n; i++)
      |                             ^~
main.c:82:16: error: expected declaration specifiers or '...' before string constant
   82 |         printf("\n%d", count);
      |                ^~~~~~
main.c:82:24: error: unknown type name 'count'
   82 |         printf("\n%d", count);
      |                        ^~~~~
main.c:84:9: error: expected identifier or '(' before 'return'
   84 |         return 0;
      |         ^~~~~~
main.c:86:1: error: expected identifier or '(' before '}' token
   86 | }
      | ^