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

#include <stdio.h>

int main(void)
{
	int n,j;
	int min,max;
	long int sum;
	inta[10000];

	scanf("%d",&n);

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

	min = a[0];

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

	max = a[0];

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

	sum = 0;

	for (j = 0; j < i; j++)
	{
		sum += a[j];
	}

	printf("%d %d %d\n",min,max,sum );

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    8 |         inta[10000];
      |         ^~~~
      |         int
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:29: error: 'a' undeclared (first use in this function)
   14 |                 scanf("%d",&a[j]);
      |                             ^
main.c:19:25: error: 'i' undeclared (first use in this function)
   19 |         for (j = 0; j < i; j++)
      |                         ^
Language: C

#include<stdio.h>

int main(){
	int n,i, sum=0;
	scanf("%d",&n);
	
	int a[n];
	
	for(i=0;i < n;i++){
		scanf("%d",&a[i]);
	}
	/*
	min = a[0]; //?????????
	for(i = 1;i < n;i++)if(a[i] < min)min = a[i];
	printf("%d\n", min);
	
	*/
	int c = a[0];
	int b = a[1];
	int d = a[0];
	int e = a[1];
	

	

	
	for(i = 0;i < n-2;i++){
		if(d < e){
			d = a[i+2];
		}else if(c > e){
			e = a[i+2];
		}
	}
	printf(" %d ",b);
	
		for(i = 0;i < n-2;i++){
		if(c < b){
			b = a[i+2];
		}else if(c > b){
			c = a[i+2];
		}
	}
	printf("%d",c);
	
	for(i = 0;i < n;i++){
		sum+=a[i];
		}
	printf(" %d\n",sum);
	
	
	
	
	return 0;

Compiler output:
main.c: In function 'main':
main.c:53:9: error: expected declaration or statement at end of input
   53 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>
int main(void){
    // Here your code !
    
int min=0,max=0,sum=0,n,i,a[9999]={0};
scanf("%d",&n);
for(i=0;i < n;i++){
scanf("%d",&a[i]);
sum += a[i];
if(i=0){min = a[i]}if(min >= a[i])min = a[i];
if(i=0){max = a[i]}if(max <= a[i])max = a[i];
}
printf("%d %d %d\n",min,max,sum);
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ';' before '}' token
   10 | if(i=0){min = a[i]}if(min >= a[i])min = a[i];
      |                   ^
      |                   ;
main.c:11:19: error: expected ';' before '}' token
   11 | if(i=0){max = a[i]}if(max <= a[i])max = a[i];
      |                   ^
      |                   ;
Language: C

#include <stdio.h>
int main(void){
// Here your code !
    int n,a,i;
    longlong sum=0,min,max;
    scanf("%d",&n);
    for(i = 0;i < n;i++)
    {
        scanf("%d",&a);
        sum += a;
        if(i == 0)
        {
            min = a;
            max = a;
        }
        else
        if(min >= a)
        {
            min = a;
        }
        if(max <= a)
        {
            max = a;
        }
    }
    printf("%d %d %d\n",min,max,sum);return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'longlong'
    5 |     longlong sum=0,min,max;
      |     ^~~~~~~~
Language: C

#include <stdio.h>
int main(void){
    // Here your code !
    int n,max,min,a[10000]={0},i;
    long sum=0,r=0;
    unsigned long summer=0;
    scanf("%d",&n);
    for(i = 0;i < n;i++)
    {
        scanf("%d",&a[i]);
        if(i == 0)
        {
            max = a[i];
            min = a[i];
        }
        if(max <= a[i])
        {
            max = a[i];
        }
        if(min >= a[i])
        {
            min = a[i];
        }
        sum += a[i];
        if(sum > 2147483647)
        {
            if(summer == 0)
            {
                r = a[i];
            }
            summer += a[i];
        }
    }
    sum -= r;
    printf("%d %d %lu\n",min,max,(unsigned long)sum+summer);
    return 0;
}
    printf("%d %d %d\n",min,max,sum);
    return 0;
}

Compiler output:
main.c:38:12: error: expected declaration specifiers or '...' before string constant
   38 |     printf("%d %d %d\n",min,max,sum);
      |            ^~~~~~~~~~~~
main.c:38:25: error: unknown type name 'min'
   38 |     printf("%d %d %d\n",min,max,sum);
      |                         ^~~
main.c:38:29: error: unknown type name 'max'
   38 |     printf("%d %d %d\n",min,max,sum);
      |                             ^~~
main.c:38:33: error: unknown type name 'sum'
   38 |     printf("%d %d %d\n",min,max,sum);
      |                                 ^~~
main.c:39:5: error: expected identifier or '(' before 'return'
   39 |     return 0;
      |     ^~~~~~
main.c:40:1: error: expected identifier or '(' before '}' token
   40 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int n, i, temp, sum = 0, min, max;

	scanf_s("%d", &n);

	for (i = 0; i < n; i++) {
		scanf("%d", &temp);

		if (i == 0) {
			max = temp;
			min = temp;
		}

		sum += temp;

		if (temp > max) {
			max = temp;
		}

		if (temp < min) {
			min = temp;
		}
	}

	printf("%d %d %d\n", min, max, sum);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: 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() {
   
   long long int n,i;
   long long int N;
   long long int sum=0,max=-100001,min=100001;

   scanf("%lld",&n);
   
   for (i=0; i<n; i++) {
      scanf("%lld",&N);
      if (max<N) {
         max=N];
      }
      if (min>N)  {
         min=N;
      }
      sum=sum+N;
   }
   
   printf("%lld %lld %lld\n",min,max,sum);
   
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: expected ';' before ']' token
   14 |          max=N];
      |               ^
      |               ;
main.c:14:15: error: expected statement before ']' token
Language: C

#include<stdio.h>

int main(void){
	
	int n,i;
	int a[10000];
	int SUM,MIN,MAX;

	SUM=0;
	scanf("%d",&n);

	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		SUM=a[i]+SUM
	}
	
	MAX=a[0];
	MIN=a[0];
	
	for(i=1;i<n;i++){
		if(a[i]>MAX)MAX=a[i];
		if(a[i]<MIN)MIN=a[i];
	}
	
	printf("%d %d %d\n",MIN,MAX,SUM);

	return 0;	


}

Compiler output:
main.c: In function 'main':
main.c:14:29: error: expected ';' before '}' token
   14 |                 SUM=a[i]+SUM
      |                             ^
      |                             ;
   15 |         }
      |         ~
Language: C

#include<stdio.h>

int main(void){
	
	int n,i;
	int a[10000];
	longlong SUM,MIN,MAX;

	SUM=0;
	scanf("%d",&n);

	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		SUM=a[i]+SUM;
	}
	
	MAX=-10000000;
	MIN=100000000;
	
	for(i=0;i<n;i++){
		if(a[i]>MAX)MAX=a[i];
		if(a[i]<MIN)MIN=a[i];
	}
	
	printf("%d %d %d\n",MIN,MAX,SUM);

	return 0;	

}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'longlong'
    7 |         longlong SUM,MIN,MAX;
      |         ^~~~~~~~
Language: C

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
int main() {
	int n, i, 
	long long int sum = 0, max, min;
	int *array;
	scanf("%d", &n);
	array = (int *)malloc(sizeof(int)*n);
	
	for (i = 0; i < n; i++) {
		scanf("%d", &array[i]);
		if (i == 0) max = min = array[i];
		sum += array[i];
		if (max < array[i])max = array[i];
		if (array[i] < min)min = array[i];
	}
	printf("%d %d %d\n", min, max, sum);
	free(array);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected identifier or '(' before 'long'
    7 |         long long int sum = 0, max, min;
      |         ^~~~
main.c:14:29: error: 'max' undeclared (first use in this function)
   14 |                 if (i == 0) max = min = array[i];
      |                             ^~~
main.c:14:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:35: error: 'min' undeclared (first use in this function); did you mean 'main'?
   14 |                 if (i == 0) max = min = array[i];
      |                                   ^~~
      |                                   main
main.c:15:17: error: 'sum' undeclared (first use in this function)
   15 |                 sum += array[i];
      |                 ^~~
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(m==0){
			
			max =ai;

		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			nin = ai;
			
		}
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:17:20: error: 'm' undeclared (first use in this function)
   17 |                 if(m==0){
      |                    ^
main.c:17:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:25: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   31 |                         nin = ai;
      |                         ^~~
      |                         min
main.c:39:9: error: expected declaration or statement at end of input
   39 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(m==0){
			
			max =ai;

		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			nin = ai;
			
		}
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:17:20: error: 'm' undeclared (first use in this function)
   17 |                 if(m==0){
      |                    ^
main.c:17:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:25: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   31 |                         nin = ai;
      |                         ^~~
      |                         min
main.c:39:9: error: expected declaration or statement at end of input
   39 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(m==0){
			
			max = ai;
                        nin = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			nin = ai;
			
		}
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:17:20: error: 'm' undeclared (first use in this function)
   17 |                 if(m==0){
      |                    ^
main.c:17:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:25: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   20 |                         nin = ai;
      |                         ^~~
      |                         min
main.c:41:9: error: expected declaration or statement at end of input
   41 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(m==0){
			
			max = ai;
                        min = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			min = ai;
			
		}
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:17:20: error: 'm' undeclared (first use in this function)
   17 |                 if(m==0){
      |                    ^
main.c:17:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:37:38: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   37 |                 printf("%d %d %d\n" ,nin ,max ,sum);
      |                                      ^~~
      |                                      min
main.c:41:9: error: expected declaration or statement at end of input
   41 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(i==0){
			
			max = ai;
                        min = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			min = ai;
			
		}
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:37:38: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   37 |                 printf("%d %d %d\n" ,nin ,max ,sum);
      |                                      ^~~
      |                                      min
main.c:37:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:9: error: expected declaration or statement at end of input
   41 |         }
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(i==0){
			
			max = ai;
                        min = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			min = ai;
			
		}

          }
		
		printf("%d %d %d\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:39:38: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   39 |                 printf("%d %d %d\n" ,nin ,max ,sum);
      |                                      ^~~
      |                                      min
main.c:39:38: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(i==0){
			
			max = ai;
                        min = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			min = ai;
			
		}

          }
		
		printf("%d %d %lld\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:39:40: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   39 |                 printf("%d %d %lld\n" ,nin ,max ,sum);
      |                                        ^~~
      |                                        min
main.c:39:40: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int n ,ai ,i ,max ,min;
	
	long long int sum = 0;
	
	scanf("%d" ,&n);
	
	for(i=0;i<n;i++){
		
		scanf("%d" ,&ai);
		
		sum += ai;
		
		if(i==0){
			
			max = ai;
                        min = ai;


		}
		
		else if(ai>max){
			
			max = ai;
		
		}
		
		else if(ai<min){
			
			min = ai;
			
		}

          }
		
		printf("%d %d %ld\n" ,nin ,max ,sum);
		
		return 0;
		
	}
		
	

Compiler output:
main.c: In function 'main':
main.c:39:39: error: 'nin' undeclared (first use in this function); did you mean 'min'?
   39 |                 printf("%d %d %ld\n" ,nin ,max ,sum);
      |                                       ^~~
      |                                       min
main.c:39:39: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)

{ 

 int i, n, a[10000];

 scanf("%d",&n);





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


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


}





int min = a[0];


 long long int sum = 0;


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


  if( a[i] < min){


   min = a[i];


}else if( a[i] > max){


  max = a[i];


}


  sum += a[i];


}





printf("%d %d %lld\n",min,max,sum);


return 0;


}





for(i = 1 ; i <= 1000 ; i++){


   printf("Hello World\n");


}


 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:42:18: error: 'max' undeclared (first use in this function)
   42 | }else if( a[i] > max){
      |                  ^~~
main.c:42:18: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:72:1: error: expected identifier or '(' before 'for'
   72 | for(i = 1 ; i <= 1000 ; i++){
      | ^~~
main.c:72:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
   72 | for(i = 1 ; i <= 1000 ; i++){
      |               ^~
main.c:72:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   72 | for(i = 1 ; i <= 1000 ; i++){
      |                          ^~
main.c:81:2: error: expected identifier or '(' before 'return'
   81 |  return 0;
      |  ^~~~~~
main.c:83:1: error: expected identifier or '(' before '}' token
   83 | }
      | ^
Language: C

#include <stdio.h>
int main (void){
int a,n,i,max,min,sum=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[n]);
}
for(i=1;i<=n;i++){
 sum+=a[i];
}
max=a[1];
for(i=2;i<=n;i++){
if(max<a[i]){
max=a[i];
}
min=a[1];
for(i=2;i<=n;i++){
if(min>a[i]){
min=a[i];
}


printf("%d %d %d\n",max,min,sum) ;
return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: subscripted value is neither array nor pointer nor vector
    6 | scanf("%d",&a[n]);
      |              ^
main.c:9:8: error: subscripted value is neither array nor pointer nor vector
    9 |  sum+=a[i];
      |        ^
main.c:11:6: error: subscripted value is neither array nor pointer nor vector
   11 | max=a[1];
      |      ^
main.c:13:9: error: subscripted value is neither array nor pointer nor vector
   13 | if(max<a[i]){
      |         ^
main.c:14:6: error: subscripted value is neither array nor pointer nor vector
   14 | max=a[i];
      |      ^
main.c:16:6: error: subscripted value is neither array nor pointer nor vector
   16 | min=a[1];
      |      ^
main.c:18:9: error: subscripted value is neither array nor pointer nor vector
   18 | if(min>a[i]){
      |         ^
main.c:19:6: error: subscripted value is neither array nor pointer nor vector
   19 | min=a[i];
      |      ^
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
main.c:25:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main (void){
int a,n,i,max,min,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[n]);
}
for(i=0;i<=n;i++){
 sum+=a[i];
}
max=a[0];
for(i=1;i<n;i++){
if(max<a[i]){
max=a[i];
}}
min=a[0];
for(i=1;i<n;i++){
if(min>a[i]){
min=a[i];
}}


printf("%d %d %d\n",max,min,sum) ;
return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: subscripted value is neither array nor pointer nor vector
    6 | scanf("%d",&a[n]);
      |              ^
main.c:9:8: error: subscripted value is neither array nor pointer nor vector
    9 |  sum+=a[i];
      |        ^
main.c:11:6: error: subscripted value is neither array nor pointer nor vector
   11 | max=a[0];
      |      ^
main.c:13:9: error: subscripted value is neither array nor pointer nor vector
   13 | if(max<a[i]){
      |         ^
main.c:14:6: error: subscripted value is neither array nor pointer nor vector
   14 | max=a[i];
      |      ^
main.c:16:6: error: subscripted value is neither array nor pointer nor vector
   16 | min=a[0];
      |      ^
main.c:18:9: error: subscripted value is neither array nor pointer nor vector
   18 | if(min>a[i]){
      |         ^
main.c:19:6: error: subscripted value is neither array nor pointer nor vector
   19 | min=a[i];
      |      ^
Language: C

#include<stdio.h>

int main(void)

{

int i,n;

int number;

long long int sum=0;

int min=0;

int max=0;


scanf("%d",&n);


for(i=0;i<n;I++)

{

scanf("%d",&number);


if(i==0)

{

min = number;

max = number;

}

if(number<min) min = number;

if(number<max) max = number;


sum += number;

}


printf("%d %d %lld\n",min,max,sum);


return 0;

}

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

include<stdio.h>

int main(void)

{

int i,n;

int number;

long long int sum=0;

int min=0;

int max=0;


scanf("%d",&n);


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

{

scanf("%d",&number);


if(i==0)

{

min = number;

max = number;

}

if(number<min) min = number;

if(number>max) max = number;


sum += number;

}


printf("%d %d %lld\n",min,max,sum);


return 0;

}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>

int main(void)

{

int i,n;

int number;

long long int sum=0;

int min=0;

int max=0;

 

scanf("%d",&n);

 

for(i=0;i<n;I++)

{

scanf("%d",&number);

 

if(i==0)

{

min = number;

max = number;

}

if(number<min) min = number;

if(number<max) max = number;

 

sum += number;

}

 

printf("%d %d %lld\n",min,max,sum);

 

return 0;

}

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

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

int main(void){
	int num_data;
	int *data;
	int i;
	unsigned???int min, max, sum;
	
	scanf("%d", &num_data);
	
	data = malloc(sizeof(int) * num_data);
	
	for(i=0 ; i < num_data ; i++){
		scanf("%d", &data[i]);
	}
	
	min = data[0];
	max = data[0];
	sum = data[0];
	for(i=1 ; i < num_data ; i++){
		if(min > data[i]){
			min = data[i];
		}
		if(max < data[i]){
			max = data[i];
		}
		sum += data[i];
	}
	
	printf("%d %d %d\n", min, max, sum);
	
	free(data);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected identifier or '(' before '?' token
    8 |         unsigned???int min, max, sum;
      |                 ^
main.c:18:9: error: 'min' undeclared (first use in this function); did you mean 'main'?
   18 |         min = data[0];
      |         ^~~
      |         main
main.c:18:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:9: error: 'max' undeclared (first use in this function)
   19 |         max = data[0];
      |         ^~~
main.c:20:9: error: 'sum' undeclared (first use in this function)
   20 |         sum = data[0];
      |         ^~~
Language: C

#include<stdio.h>
 int main(void)
{

 int i,n;
  int number;
  int sum=0;
  int min=0; 
 int max=0;
    scanf("%d",&n);
    for(i=0;i<n;i++)
  { 
     scanf("%d",&number); 
    if(i==0)
  { 
  min = number; 
  max = number;
  } 
  if(number<min){
 min = number;}
   if(number>max){
 max = number; 
     sum += number;
     } 
   printf("%d %d %d\n",min,max,sum);
      return 0;
 }
 

Compiler output:
main.c: In function 'main':
main.c:27:2: error: expected declaration or statement at end of input
   27 |  }
      |  ^
Language: C

#include<stdio.h>
 int main(void)
{

 int i,n;
  lomg long int number;
  int sum=0;
  int min=0; 
 int max=0;
    scanf("%d",&n);
    for(i = 0;i<n;i++)
  { 
     scanf("%d",&number); 
    if(i == 0)
  { 
  min = number; 
  max = number;
  } 
  if(number<min){
 min = number;
}
   if(number>max){
 max = number; 
     sum += number;
     } 
   printf("%d %d %d\n",min,max,sum);
     } return 0;
 }
 

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'lomg' undeclared (first use in this function)
    6 |   lomg long int number;
      |   ^~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: expected ';' before 'long'
    6 |   lomg long int number;
      |       ^~~~~
      |       ;
main.c:13:18: error: 'number' undeclared (first use in this function)
   13 |      scanf("%d",&number);
      |                  ^~~~~~
Language: C

#include<stdio.h>
 int main(void)
{

 int i,n;
  int number;
  long long int sum=0;
  int min=0; 
  int max=0;
    scanf("%d",&n);
    for(i=0;i<n;i++)
  { 
     scanf("%d",&number); 
    if(i==0)
  { 
  min = number; 
  max = number;
  } 
  if(number<min) min = number;
   if(number>max) max = number; 
     sum += number;
     } 
   printf("%d %d %d\n",min,max,sum);
     } return 0;
 }
 

Compiler output:
main.c:24:8: error: expected identifier or '(' before 'return'
   24 |      } return 0;
      |        ^~~~~~
main.c:25:2: error: expected identifier or '(' before '}' token
   25 |  }
      |  ^
Language: C

#include<stdio.h>
int main(void)
{
	int x,min,max,sum,a,i ;
	scanf("%d",&x);
	max=0;
	min=0;
	sum=0;
	for(i=0;i<x;i++){
		scanf("%d",&a);
		sun+=a;
		if(a<min){
			min=a;
		}
		if(a>max){
			max=a;
		}
	}
	printf("%d %d %d\n",min,max,sum);
	return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: 'sun' undeclared (first use in this function); did you mean 'sum'?
   11 |                 sun+=a;
      |                 ^~~
      |                 sum
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
	
	int n;
	int a;
        int i;
	int max=0;
	int min=0;
	long murakami=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		scanf("%d",&a);
		
		murakami=murakami+a;
		

                if(i==0){
                        max=a;
                }
		else(max<a){
			max=a;
		}
		if(i==0){
			min=a;
		}
		else{
			if(min>a){
				min=a;
			}
		}
	}
		
		printf("%d %d %d\n",min,max,murakami);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:28: error: expected ';' before '{' token
   22 |                 else(max<a){
      |                            ^
      |                            ;
Language: C

#include <stdio.h>
int main(void){
	
	long n;
	long a;
        lomg i;
	long max=0;
	long min=0;
	long murakami=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		scanf("%d",&a);
		
		murakami=murakami+a;
		

                if(i==0){
                        max=a;
                        min=a;
                }
		if(max<a){
			max=a;
		}
	        if(min>a){
		        min=a;
		}
	}
		
		printf("%d %d %d\n",min,max,murakami);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name 'lomg'; did you mean 'long'?
    6 |         lomg i;
      |         ^~~~
      |         long
Language: C

#include<stdio.h>
int main(void){
	int i,n,,min,max,sum ;
	int a[] ;
	min = 0 ;
	max = 0 ;
	sum = 0 ;
	scanf("%d",&n) ;
	for(i = 1 ;i<=n ;i++){
		scanf("%d",&a[i]) ;
		if(i == 1){
			min = a[i] ;
			max = a[i] ;
			sum = a[i] ;
		}
		if(min>a[i]){
			min = a[i] ;
		}
		if(max<a[i]){
			max = a[i] ;
		}
		if(i>1){
			sum+=a[i] ;
		}
	}
	printf("%d %d %d\n",min,max,sum) ;
	return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected identifier or '(' before ',' token
    3 |         int i,n,,min,max,sum ;
      |                 ^
main.c:4:13: error: array size missing in 'a'
    4 |         int a[] ;
      |             ^
main.c:5:9: error: 'min' undeclared (first use in this function); did you mean 'main'?
    5 |         min = 0 ;
      |         ^~~
      |         main
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'max' undeclared (first use in this function)
    6 |         max = 0 ;
      |         ^~~
main.c:7:9: error: 'sum' undeclared (first use in this function)
    7 |         sum = 0 ;
      |         ^~~
Language: C

#include<stdio.h>
int main(void){
	int i,n,,min,max,sum ;
	int a[] ;
	min = 0 ;
	max = 0 ;
	sum = 0 ;
	scanf("%d",&n) ;
	for(i = 1 ;i<=n ;i++){
		scanf("%d",&a[i]) ;
		if(i == 1){
			min = a[i] ;
			max = a[i] ;
			sum = a[i] ;
		}
		if(min>a[i]){
			min = a[i] ;
		}
		if(max<a[i]){
			max = a[i] ;
		}
			sum+=a[i] ;
	}
	printf("%d %d %d\n",min,max,sum) ;
	return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected identifier or '(' before ',' token
    3 |         int i,n,,min,max,sum ;
      |                 ^
main.c:4:13: error: array size missing in 'a'
    4 |         int a[] ;
      |             ^
main.c:5:9: error: 'min' undeclared (first use in this function); did you mean 'main'?
    5 |         min = 0 ;
      |         ^~~
      |         main
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'max' undeclared (first use in this function)
    6 |         max = 0 ;
      |         ^~~
main.c:7:9: error: 'sum' undeclared (first use in this function)
    7 |         sum = 0 ;
      |         ^~~
Language: C

#include<stdio.h>
int main(void){
	int i,n,,min,max,sum ;
	int a[] ;
	min = 0 ;
	max = 0 ;
	sum = 0 ;
	scanf("%d",&n) ;
	for(i = 0 ;i<n ;i++){
		scanf("%d",&a[i]) ;
		if(i == 0){
			min = a[i] ;
			max = a[i] ;
			sum = a[i] ;
		}
		if(min>a[i]){
			min = a[i] ;
		}
		if(max<a[i]){
			max = a[i] ;
		}
			sum+=a[i] ;
	}
	printf("%d %d %d\n",min,max,sum) ;
	return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected identifier or '(' before ',' token
    3 |         int i,n,,min,max,sum ;
      |                 ^
main.c:4:13: error: array size missing in 'a'
    4 |         int a[] ;
      |             ^
main.c:5:9: error: 'min' undeclared (first use in this function); did you mean 'main'?
    5 |         min = 0 ;
      |         ^~~
      |         main
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'max' undeclared (first use in this function)
    6 |         max = 0 ;
      |         ^~~
main.c:7:9: error: 'sum' undeclared (first use in this function)
    7 |         sum = 0 ;
      |         ^~~
Language: C

#include<stdio.h>
 int main(void){
  int n,i,number;
  long long int sum=0;
  int min=0,max=0;
    scanf("%d",&n);
    for(i=0;i<=n;i++){
   scanf("%d",&number);
      if(i==0){
    min=number;
    max=number;
   }else   if(number<min){
 min=number;
   }else if(number>max){
      max=number;
      sum+=number;
  }
  printf("%d %d %lld\n",min,max,sum);    return 0; }

Compiler output:
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
   18 |   printf("%d %d %lld\n",min,max,sum);    return 0; }
      |   ^~~~~~
Language: C

#include<stdio.h>
 int main(void){
  int n,i,number;
  long long int sum=0;
  int min=0,max=0;
    scanf("%d",&n);
    for(i=0;i<=n;i++){
   scanf("%d",&number);
      if(i==0){
    min=number;
    max=number;
   }else   if(number<min){
 min=number;
   }else{
      max=number;
      sum+=number;
  }
  printf("%d %d %lld\n",min,max,sum);
    return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:20:2: error: expected declaration or statement at end of input
   20 |  }
      |  ^
Language: C

#include<stdio.h>
 int main(void){
  int n,i,number;
  long long int sum=0;
  int min=0,max=0;
    scanf("%d",&n);
    for(i=0;i<=n;i++){
   scanf("%d",&number);
      if(i==0){
    min=number;
    max=number;
   }else   if(number<min){
 min=number;
   }else{
      max=number;
   }
      sum+=number;
  printf("%d %d %lld\n",min,max,sum);
    return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:20:2: error: expected declaration or statement at end of input
   20 |  }
      |  ^
Language: C

#include <stdio.h>

int main()
{
	int n,i;
	long long int a[10000],min=1000000,max=-1000000,sum=0;
	scanf("%d",&n);
	
	for(i=0;i<n+i++){
		
		scanf("%lld",&a[i]);
		
		if(a[i] >= max){
			
			max = a[i];
			
		}
		
		if(a[i] <= min){
			
			min = a[i];
			
		}
		
		sum+=a[i];
		
	}
	
	
	printf("%lld %lld %lld\n",min,max,sum);
	
	
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before ')' token
    9 |         for(i=0;i<n+i++){
      |                        ^
      |                        ;
Language: C

#include<stdio.h>

int main(void){


    long long int a[10000], min=1000000, max=-1000000, sum=0;


    int i, n=0;


    scanf("%d",&n);


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


        scanf("%lld",&a[i]);


        if(a[i] <=min){


            min=a[i];


        }


        if(a[i]>=max){


            max=a[i];


        }


        sum+=a[i];


    }


    printf("%lld %lld %lld",min,max,sum);


    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:20: error: expected ';' before ')' token
   15 |     for(i=0,i<n;i++){
      |                    ^
      |                    ;
Language: C

#include <stdio.h>
int main (void){
int n=0;int p=0;int s=0;int b=0;int sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++){scanf("%d,&p");if(s>p||s=0;){s=p;}if(b<p){b=p;}sum+=p;}
printf("%d %d %d",s,b,sum);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:46: error: lvalue required as left operand of assignment
    5 | for(int i=0;i<n;i++){scanf("%d,&p");if(s>p||s=0;){s=p;}if(b<p){b=p;}sum+=p;}
      |                                              ^
main.c:5:48: error: expected ')' before ';' token
    5 | for(int i=0;i<n;i++){scanf("%d,&p");if(s>p||s=0;){s=p;}if(b<p){b=p;}sum+=p;}
      |                                       ~        ^
      |                                                )
Language: C

#include<stdio.h>

int main(){

  int n, max, min, a[10000];
  long int sum = 0;
  
  scanf("%d", &n);
  scanf("%d", &a[0]);

  max = a[0];
  min = a[0];
  for ( i = 1; i < n; i++){
    scanf("%d", &a[i]);
  
    if ( max < a[i] ){
      max = a[i];
    }
    if ( min > a[i] ){
      min = a[i];
    }
  }

  printf("%d %d %d", min, max, sum);

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |   for ( i = 1; i < n; i++){
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
   int a[10000], n, i, min, max, sum;

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

   max = a[0];
   min = a[0];
   sum = 0;
   for (i = 0; i < n; i++) {
      if (a[i] > max) {
         max = a[i];
      }
      if (a[i] < mix) {
         min = a[i];
      }
      sum = sum + a[i];
   }

   printf("%d %d %d\n", min, max, sum);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:18: error: 'mix' undeclared (first use in this function); did you mean 'max'?
   18 |       if (a[i] < mix) {
      |                  ^~~
      |                  max
main.c:18:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
    int n, n[10000];
    int min, max, sum;
    int i;

    scanf("%d", n);
    scanf("%d", n[0]);
    
    min = n[0];
    max = n[0];
    sum = n[0];

    for (i = 0; i < n; i++) {
        scanf("%d", n[i]);
        
        if (min > n[i]) {
            min = n[i];
        }
        if (max < n[i]) {
            max = n[i];
        }

        sum += n[i];
    }

    prinf("%d %d %d\n", min, max, sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: conflicting types for 'n'; have 'int[10000]'
    4 |     int n, n[10000];
      |            ^
main.c:4:9: note: previous declaration of 'n' with type 'int'
    4 |     int n, n[10000];
      |         ^
main.c:28:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   28 |     prinf("%d %d %d\n", min, max, sum);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main() {
    int n; 
    int n[10000];
    int min, max, sum;
    int i;

    scanf("%d", n);
    scanf("%d", n[0]);
    
    min = n[0];
    max = n[0];
    sum = n[0];

    for (i = 0; i < n; i++) {
        scanf("%d", n[i]);
        
        if (min > n[i]) {
            min = n[i];
        }
        if (max < n[i]) {
            max = n[i];
        }

        sum += n[i];
    }

    prinf("%d %d %d\n", min, max, sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: conflicting types for 'n'; have 'int[10000]'
    5 |     int n[10000];
      |         ^
main.c:4:9: note: previous declaration of 'n' with type 'int'
    4 |     int n;
      |         ^
main.c:29:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   29 |     prinf("%d %d %d\n", min, max, sum);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main() {
    int n; 
    int n[10000] = {0};
    int min, max, sum;
    int i;

    scanf("%d", n);
    scanf("%d", n[0]);
    
    min = n[0];
    max = n[0];
    sum = n[0];

    for (i = 0; i < n; i++) {
        scanf("%d", n[i]);
        
        if (min > n[i]) {
            min = n[i];
        }
        if (max < n[i]) {
            max = n[i];
        }

        sum += n[i];
    }

    prinf("%d %d %d\n", min, max, sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: conflicting types for 'n'; have 'int[10000]'
    5 |     int n[10000] = {0};
      |         ^
main.c:4:9: note: previous declaration of 'n' with type 'int'
    4 |     int n;
      |         ^
main.c:29:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   29 |     prinf("%d %d %d\n", min, max, sum);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main() {
    int number; 
    int number1[10000] = {0};
    int min, max, sum;
    int i;

    scanf("%d", number);
    scanf("%d", number1[0]);
    
    min = number1[0];
    max = number1[0];
    sum = number1[0];

    for (i = 0; i < n; i++) {
        scanf("%d", number1[i]);
        
        if (min > number1[i]) {
            min = number1[i];
        }
        if (max < number1[i]) {
            max = number1[i];
        }

        sum += number1[i];
    }

    prinf("%d %d %d\n", min, max, sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:21: error: 'n' undeclared (first use in this function)
   16 |     for (i = 0; i < n; i++) {
      |                     ^
main.c:16:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   29 |     prinf("%d %d %d\n", min, max, sum);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main() {
    int number; 
    int number1[10000] = {0};
    int min, max, sum;
    int i;

    scanf("%d", number);
    scanf("%d", number1[0]);
    
    min = number1[0];
    max = number1[0];
    sum = number1[0];

    for (i = 0; i < number; i++) {
        scanf("%d", number1[i]);
        
        if (min > number1[i]) {
            min = number1[i];
        }
        if (max < number1[i]) {
            max = number1[i];
        }

        sum += number1[i];
    }

    prinf("%d %d %d\n", min, max, sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   29 |     prinf("%d %d %d\n", min, max, sum);
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>
int main(void)
{
  int n,x,y,z,i,m;
  x=-100000,y=100000;
  long int z;
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
     scanf("%d",&m);
     x=0,y=100000,z=0;
     if(x<m)x=m;
     if(y>m)y=m;
     z=z+m;
     }
 
  printf("%d %d %ld\n",y,x,z);
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:6:12: error: conflicting types for 'z'; have 'long int'
    6 |   long int z;
      |            ^
main.c:4:13: note: previous declaration of 'z' with type 'int'
    4 |   int n,x,y,z,i,m;
      |             ^
Language: C

#include<stdio.h>
int main(void)
{
  int n,x,y,z,i,m;
  x=-100000,y=100000;
  long int z;
  z=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
     scanf("%d",&m);
          if(x<m)x=m;
     if(y>m)y=m;
     z=z+m;
     }
 
  printf("%d %d %ld\n",y,x,z);
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:6:12: error: conflicting types for 'z'; have 'long int'
    6 |   long int z;
      |            ^
main.c:4:13: note: previous declaration of 'z' with type 'int'
    4 |   int n,x,y,z,i,m;
      |             ^
Language: C

include<stdio.h>

int main()
{
	int a[10000];
	int i,x,min,max,sum;
	
	scanf("%d\n",&x);
	
	for(i=0;i<x;i++){
	scanf("%d",&a[i]);
	}
	puts("\n");
	
	min=a[0];
	max=a[0];
	sum=0;
	
	for(i=0;i<x;i++){
		if(min>a[i]){
			min=a[i];}
		if(max<a[i]){
			max=a[i];}
		sum=sum+a[i];
	}
	printf("%d %d %d",min,max,sum);
	return 0;
	
	}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

int main(){
 int n, i, max, min, sum;
 
 scanf("%d",&n);
 for(i = 0; i < n; i++)
  scanf("%d",&a[i]);
 
 max = a[0];
 min = a[0];
 sum = a[0];

 for(i = 1; i < n; i++){
  if(a[i] > max)
    max = a[i];
  if(a[i] < min)
    min = a[i];

  sum = sum + a[i];
 } 
 printf("%d %d %d\n",min, max, sum);
 
 return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'a' undeclared (first use in this function)
    8 |   scanf("%d",&a[i]);
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

int Min, Max, Sum, n, a[], i=0;

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

Max = a[0];
Min = a[0];

for(i=0;i<n;i++){
   if(Max<a[i+1])
      Max = a[i+1];
   Sum = Sum + a[i];
   if(Min>[i+1])
    Min = a[i+1];
}

printf("%d %d %d \n", Min, Max, Sum);

return 0;
}


 
     

Compiler output:
main.c: In function 'main':
main.c:5:23: error: array size missing in 'a'
    5 | int Min, Max, Sum, n, a[], i=0;
      |                       ^
main.c:17:11: error: expected expression before '[' token
   17 |    if(Min>[i+1])
      |           ^
Language: C

#include<stdio.h>

int main()
{
   int n, i, a[100], sum, max, min;

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

   max = a[0];
   for(i=1; i<=n; i++) {
      if(a[i]>a[i-1]) {
         max = a[i];
      }
   }
   min = a[0];
   for(i=1; i<=n; i++) {
      if(a[i]<a[i-1]) {
         min = a[i];
      }
   }
   for(i=0; i<n; i++) {
      temp = a[i];
      sum = temp + a[i-1];
   }

   printf("%d %d %d", min, max, sum);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:7: error: 'temp' undeclared (first use in this function)
   23 |       temp = a[i];
      |       ^~~~
main.c:23:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

int Min, Max, Sum, n, i=0;
int a[2000000];

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

Max = a[0];
Min = a[0];

for(i=0;i<n;i++){
   if(Max<a[i+1])
      Max = a[i+1];
   Sum = Sum + a[i];
   if(Min>[i+1])
    Min = a[i+1];
}

printf("%d %d %d \n", Min, Max, Sum);

return 0;
}


 
     

Compiler output:
main.c: In function 'main':
main.c:18:11: error: expected expression before '[' token
   18 |    if(Min>[i+1])
      |           ^
Language: C

#include<stdio.h>

int main(){

int Min, Max, Sum, n, i=0;
int a[];
scanf("%d", &n);
for(i=0;i<n;i++) scanf("%d ", &a[i]);

Max = a[0];
Min = a[0];

for(i=0;i<n;i++){
   if(Max < a[i+1])
      Max = a[i+1];
   Sum = Sum + a[i];
   if(Min > a[i+1])
    Min = a[i+1];
}

printf("%d %d %d \n", Min, Max, Sum);

return 0;
}


 
     

Compiler output:
main.c: In function 'main':
main.c:6:5: error: array size missing in 'a'
    6 | int a[];
      |     ^
Language: C

#include<stdio.h>

int main(){

int Min, Max, n, i=0;
lon long int Sum;

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

Max = a[0];
Min = a[0];
Sum = 0;

for(i=0;i<n;i++){
   if(Max <= a[i+1])
      Max = a[i+1];
   Sum = Sum + a[i];
   if(Min >= a[i+1])
    Min = a[i+1];
}

printf("%d %d %||d \n", Min, Max, Sum);

return 0;
}


 
     

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'lon' undeclared (first use in this function)
    6 | lon long int Sum;
      | ^~~
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:4: error: expected ';' before 'long'
    6 | lon long int Sum;
      |    ^~~~~
      |    ;
main.c:14:1: error: 'Sum' undeclared (first use in this function)
   14 | Sum = 0;
      | ^~~
Language: C

#include <stdio.h>
 
int main(){
 
   int box[10000];
   int i, n, max, min;
   long int max = 0;
 
   scanf("%d", &n);
   for (i = 0; i < n; i++){
      scanf("%d", &box[i]);
      max = max + box[i];
   }
 
   max = box[0];
   min = box[0];
 
   for (i = 0; i < n; i++){
      if (max < box[i])
        max = box[i];
      if (min > box[i])
        min = box[i];
   }
 
   printf("%d %d %ld\n", min, max, box);
 
   return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: conflicting types for 'max'; have 'long int'
    7 |    long int max = 0;
      |             ^~~
main.c:6:14: note: previous declaration of 'max' with type 'int'
    6 |    int i, n, max, min;
      |              ^~~
Language: C

#include<stdio.h>


int main(void)


{


int i,n;


int number;


long long int sum=0;


int min=0;


int max=0;


scanf("%d",&n);


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


{


scanf("%d",&summer);


if(i==0)


{


min=number;


max=number;


}


if(number<min)min=number;


if(number>max)max=number;


sum+=number;


}


printf("%d %d %lld\n",min,max,sum);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:34:13: error: 'summer' undeclared (first use in this function); did you mean 'number'?
   34 | scanf("%d",&summer);
      |             ^~~~~~
      |             number
main.c:34:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (void){

int n;

int a[i];
int max=0;

int min=0;

int totall=o;

scanf("%d",&n);

i=n;

max=a[0];

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

if(max<a[i]){

max=a[i];

}

if(min<a[i]){

min=a[i];

}

totall=totall+a[i];

}

printf("%d,%d,%d\n",max,min,totall);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 | int a[i];
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:12: error: 'o' undeclared (first use in this function)
   12 | int totall=o;
      |            ^
Language: C

\#include <stdio.h>

int main (void){

int n;

int i;

int a[i];
int max=0;

int min=0;

int totall=o;

scanf("%d",&n);

i=n;

max=a[0];

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

if(max<a[i]){

max=a[i];

}

if(min<a[i]){

min=a[i];

}

totall=totall+a[i];

}

printf("%d,%d,%d\n",max,min,totall);

return 0;

}

Compiler output:
main.c:1:1: error: stray '\' in program
    1 | \#include <stdio.h>
      | ^
main.c:1:2: error: stray '#' in program
    1 | \#include <stdio.h>
      |  ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | \#include <stdio.h>
      |           ^
Language: C

#include <stdio.h>

int main (void){

int n;

int i;

int a[i];
int max=0;

int min=0;

int totall=o;

scanf("%d",&n);

i=n;

max=a[0];

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

if(max<a[i]){

max=a[i];

}

if(min<a[i]){

min=a[i];

}

totall=totall+a[i];

}

printf("%d,%d,%d\n",max,min,totall);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:12: error: 'o' undeclared (first use in this function)
   14 | int totall=o;
      |            ^
main.c:14:12: note: each undeclared identifier is reported only once for each function it appears in