Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
	char inputa[65535];
	char inputb[6553500];
	char numbuff[1000];
	int numbers[1000];
	int numnum;
	int match;

	gets( inputa );
	gets( inputb );

	numnum = 0;
	for( int i=0; inputb[i] !=0; i++ ) {
		if( inputb[i] == ' ' ) }
			continue;
		}
	
		int j=0;
		while( inputb[i] != 0 && inputb[i] != ' ' ) {
			numbuff[j++] = inputb[i++];
		}
		numbuff[j]=0;
		numbers[numnum++] = atoi(numbuff);

		if( inputb[i-1] == 0 ) {
			i--;
		}

	}


	match=0;
	for( int i =0; i < atoi(inputa) -2; i++ ) {
		if( numbers[i] < numbers[i+1] && numbers[i+1] < numbers[i+2]  ) {
			match++;
		}
	}

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

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   13 |         gets( inputa );
      |         ^~~~
      |         fgets
main.c:18:40: error: expected expression before '}' token
   18 |                 if( inputb[i] == ' ' ) }
      |                                        ^
main.c:19:25: error: continue statement not within a loop
   19 |                         continue;
      |                         ^~~~~~~~
main.c: At top level:
main.c:23:17: error: expected identifier or '(' before 'while'
   23 |                 while( inputb[i] != 0 && inputb[i] != ' ' ) {
      |                 ^~~~~
main.c:26:17: warning: data definition has no type or storage class
   26 |                 numbuff[j]=0;
      |                 ^~~~~~~
main.c:26:17: error: type defaults to 'int' in declaration of 'numbuff' [-Wimplicit-int]
main.c:26:17: error: variably modified 'numbuff' at file scope
main.c:26:28: error: invalid initializer
   26 |                 numbuff[j]=0;
      |                            ^
main.c:27:25: error: 'numnum' undeclared here (not in a function)
   27 |                 numbers[numnum++] = atoi(numbuff);
      |                         ^~~~~~
main.c:27:17: warning: data definition has no type or storage class
   27 |                 numbers[numnum++] = atoi(numbuff);
      |                 ^~~~~~~
main.c:27:17: error: type defaults to 'int' in declaration of 'numbers' [-Wimplicit-int]
main.c:27:42: error: passing argument 1 of 'atoi' from incompatible pointer type [-Wincompatible-pointer-types]
   27 |                 numbers[numnum++] = atoi(numbuff);
      |                                          ^~~~~~~
      |                                          |
      |                                          int *
In file included from main.c:2:
/usr/include/stdlib.h:105:30: note: expected 'const char *' but argument is of type 'int *'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
main.c:29:17: error: expected identifier or '(' before 'if'
   29 |                 if( inputb[i-1] == 0 ) {
      |                 ^~
main.c:33:9: error: expected identifier or '(' before '}' token
   33 |         }
      |         ^
main.c:36:9: warning: data definition has no type or storage class
   36 |         match=0;
      |         ^~~~~
main.c:36:9: error: type defaults to 'int' in declaration of 'match' [-Wimplicit-int]
main.c:37:9: error: expected identifier or '(' before 'for'
   37 |         for( int i =0; i < atoi(inputa) -2; i++ ) {
      |         ^~~
main.c:37:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   37 |         for( int i =0; i < atoi(inputa) -2; i++ ) {
      |                          ^
main.c:37:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   37 |         for( int i =0; i < atoi(inputa) -2; i++ ) {
      |                                              ^~
main.c:43:16: error: expected declaration specifiers or '...' before string constant
   43 |         printf("%d\n", match);
      |                ^~~~~~
main.c:43:24: error: expected declaration specifiers or '...' before 'match'
   43 |         printf("%d\n", match);
      |                        ^~~~~
main.c:45:9: error: expected identifier or '(' before 'return'
   45 |         return 0;
      |         ^~~~~~
main.c:47:1: error: expected identifier or '(' before '}' token
   47 | }
      | ^