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

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

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

include <stdio.h>

int main(void){
  int i, n, x, min, max;
  long long int sum = 0;
  scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%d", &x);
    if(i == 0){
      min = x;
      max = x;
    }
    else{
      if(x < min)
        min = x;
      if(max < x)
        max = x;
    }
    sum += x;
  }
  printf("%d %d %lld\n", min, max, sum);
  return 0;
}

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

include <stdio.h>

int main(void){
  int i, n, x, min, max;
  long long int sum = 0;
  scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%d", &x);
    if(sum == 0){
      min = x;
      max = x;
    }
    else{
      if(x < min)
        min = x;
      if(max < x)
        max = x;
    }
    sum += x;
  }
  printf("%d %d %lld\n", min, max, sum);
  return 0;
}

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: 'n' undeclared (first use in this function)
    4 | scanf("%d",n);
      |            ^
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:6: error: 'i' undeclared (first use in this function)
    5 | for( i = 0 ; i < n ; i++ )
      |      ^
main.c:6:13: error: 'a' undeclared (first use in this function)
    6 |  scanf("%d",a);
      |             ^
main.c:7:3: error: 'max' undeclared (first use in this function)
    7 |   max = a;
      |   ^~~
main.c:8:3: error: 'min' undeclared (first use in this function); did you mean 'main'?
    8 |   min = a;
      |   ^~~
      |   main
main.c:9:3: error: 'sum' undeclared (first use in this function)
    9 |   sum = a;
      |   ^~~
Language: C

#include <stdio.h>
int main (void)
{
int n,a,i;

scanf("%d",n);
for( i = 0 ; i < n ; i++ )
 scanf("%d",a);
  max = a;
  min = a;
  sum = a;
 if( a > max )
   max = a;
 if( a < min )
    min = a;
 sum += a;

return 0;
}

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

#include <stdio.h>
int main (void)
{
int n,a,i;

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

return 0;
}

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

#include <stdio.h>
int main(void)
{
int n,tmp;
int sum=0,max=0,min=0;

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

Compiler output:
main.c: In function 'main':
main.c:8:6: error: 'i' undeclared (first use in this function)
    8 | for (i = 0;i < n;i++)
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:18: error: expected ';' before 'sum'
   10 |  scanf("%d",&tmp)
      |                  ^
      |                  ;
   11 |   sum += tmp;
      |   ~~~             
main.c:18:1: error: expected expression before '?' token
   18 | ???
      | ^
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:73: error: conflicting types for 'd'; have 'long long int'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                                                         ^
main.c:5:37: note: previous declaration of 'd' with type 'long long int[10000]'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                     ^
main.c:16:9: error: expected '(' before 'for'
   16 |         for(i=0;i<a;i++){
      |         ^~~
      |         (
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:73: error: conflicting types for 'd'; have 'long long int'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                                                         ^
main.c:5:37: note: previous declaration of 'd' with type 'long long int[10000]'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:73: error: conflicting types for 'd'; have 'long long int'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                                                         ^
main.c:5:37: note: previous declaration of 'd' with type 'long long int[10000]'
    5 |         long long b[10000],c[10000],d[10000],i,max=-1000000,min=1000000,d=0;
      |                                     ^
Language: C

#include<stdio.h>
int main(){
  longlong a[10001],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(max<a[i]){
    max=a[i];
  }
  if(min>a[i]){
    min=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:3: error: unknown type name 'longlong'
    3 |   longlong a[10001],n,i,min,max,sum;
      |   ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  longlong a[10001],i,min,max,sum;
  int n;
 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(max<a[i]){
    max=a[i];
  }
  if(min>a[i]){
    min=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:3: error: unknown type name 'longlong'
    3 |   longlong a[10001],i,min,max,sum;
      |   ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  long int n;
  scan f("%d",&n);
  long int a[n],i;
  long int s=1000000,l=-1000000,ans=0;
  for(i=0;i<n;i++){
    scanf ("%d",&a[i]);
    if(s>a [i])s=a[i];
    if(l<a[ i])l=a[i];
    ans+=a[i];
  }
  printf("%d %d %d\n",s,l,ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'scan'
    4 |   scan f("%d",&n);
      |   ^~~~
main.c:4:10: error: expected declaration specifiers or '...' before string constant
    4 |   scan f("%d",&n);
      |          ^~~~
main.c:4:15: error: expected declaration specifiers or '...' before '&' token
    4 |   scan f("%d",&n);
      |               ^
Language: C

#include <stdio.h>

int main(void)
{
	int n,a,i,min,max,sum;
	int max = -10000000;
	int min = 10000000;
	int sum =0;
	scanf("%d",&n);
	for(a = 1;a <= n;a++){
		scanf("%d",&i);
		if (i < min) min = i;
		if (i > max) max = i;
		sum +=i;
	}
	printf("%d %d %d\n",min,max,sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: redeclaration of 'max' with no linkage
    6 |         int max = -10000000;
      |             ^~~
main.c:5:23: note: previous declaration of 'max' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                       ^~~
main.c:7:13: error: redeclaration of 'min' with no linkage
    7 |         int min = 10000000;
      |             ^~~
main.c:5:19: note: previous declaration of 'min' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                   ^~~
main.c:8:13: error: redeclaration of 'sum' with no linkage
    8 |         int sum =0;
      |             ^~~
main.c:5:27: note: previous declaration of 'sum' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                           ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: redeclaration of 'max' with no linkage
    6 |         int max = -1000000;
      |             ^~~
main.c:5:23: note: previous declaration of 'max' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                       ^~~
main.c:7:13: error: redeclaration of 'min' with no linkage
    7 |         int min = 1000000;
      |             ^~~
main.c:5:19: note: previous declaration of 'min' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                   ^~~
main.c:8:13: error: redeclaration of 'sum' with no linkage
    8 |         int sum =0;
      |             ^~~
main.c:5:27: note: previous declaration of 'sum' with type 'int'
    5 |         int n,a,i,min,max,sum;
      |                           ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: redeclaration of 'max' with no linkage
    6 |         long long int max = -1000000;
      |                       ^~~
main.c:5:33: note: previous declaration of 'max' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                                 ^~~
main.c:7:23: error: redeclaration of 'min' with no linkage
    7 |         long long int min = 1000000;
      |                       ^~~
main.c:5:29: note: previous declaration of 'min' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                             ^~~
main.c:8:23: error: redeclaration of 'sum' with no linkage
    8 |         long long int sum =0;
      |                       ^~~
main.c:5:37: note: previous declaration of 'sum' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                                     ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:6:23: error: redeclaration of 'max' with no linkage
    6 |         long long int max = -1000000;
      |                       ^~~
main.c:5:33: note: previous declaration of 'max' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                                 ^~~
main.c:7:23: error: redeclaration of 'min' with no linkage
    7 |         long long int min = 1000000;
      |                       ^~~
main.c:5:29: note: previous declaration of 'min' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                             ^~~
main.c:8:23: error: redeclaration of 'sum' with no linkage
    8 |         long long int sum =0;
      |                       ^~~
main.c:5:37: note: previous declaration of 'sum' with type 'long long int'
    5 |         long long int n,a,i,min,max,sum;
      |                                     ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:7:23: error: redeclaration of 'max' with no linkage
    7 |         long long int max = -1000000;
      |                       ^~~
main.c:6:27: note: previous declaration of 'max' with type 'long long int'
    6 |         long long int min,max,sum;
      |                           ^~~
main.c:8:23: error: redeclaration of 'min' with no linkage
    8 |         long long int min = 1000000;
      |                       ^~~
main.c:6:23: note: previous declaration of 'min' with type 'long long int'
    6 |         long long int min,max,sum;
      |                       ^~~
main.c:9:23: error: redeclaration of 'sum' with no linkage
    9 |         long long int sum =0;
      |                       ^~~
main.c:6:31: note: previous declaration of 'sum' with type 'long long int'
    6 |         long long int min,max,sum;
      |                               ^~~
Language: C

#include<stdio.h>
int main(){
    int n=0,i,j,p=0,x[10000];
    __int64 Sum=0;
    scanf("%d",&n);

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

    for(i=0;i<n;i++){
        for(j=n-1;j>i;j--){
            if(x[j]<x[j-1]){
                p=x[j-1];
                x[j-1]=x[j];
                x[j]=p;
            }
        }
    }

    for(i=0;i<n;i++){
        Sum+=x[i];
    }

    printf("%d %d %d\n",x[0],x[n-1],Sum);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |     __int64 Sum=0;
      |     ^~~~~~~
      |     __int64_t
Language: C

#include <stdio.h>

int main(void){
	
	int max=0,min=1000000,i,n,num[10000];
	long long to=0;

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:32: error: request for member 'max' in something not a structure or union
   16 |         printf("%d %d %d\n",min.max,to);
      |                                ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ??????min = max = NULL;
      | ^
main.c:8:17: error: assignment to 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | ??????min = max = NULL;
      |                 ^
Language: C

include<stdio.h>

int max(int a[],int n){
	int i;
	int max=a[0];
	for(i=0;i<n;i++){
		if(a[i]>max){
			max=a[i];
		}
	}
	return max;
}

int min(int a[],int n){
	int i;
	int min=a[0];
	for(i=0;i<n;i++){
		if(a[i]<min){
			min=a[i];
		}
	}
	return min;
}

int sum(int a[],int n){
	int i;
	int sum=0;
	for(i=0;i<n;i++){
		sum=sum+a[i];
	}
	return sum;
}

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:38:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   38 |         scanf("%d",&n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:38:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   38 |         scanf("%d",&n);
      |         ^~~~~
main.c:38:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:42:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   42 |         printf("%d %d %d\n",min(a,n),max(a,n),sum(a,n));
      |         ^~~~~~
main.c:42:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:42:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:42:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:42:38: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
   42 |         printf("%d %d %d\n",min(a,n),max(a,n),sum(a,n));
      |                                      ^~~
Language: C

#include <stdio.h>
main()
{
	int num[10000];
	int max, min, sum, count, target;

	max = 0;
	min = 10000;
	sum = 0;
	count = 0;

	scanf("%d", &target);

	while(count != target){

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

		if(num[count] >= max){

			max = num[count];

		}else if(num[count] <= min){

			min = num[count];

		}

		sum += num[count];

		count++;

	}

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

	return 0;

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:36:9: error: expected declaration or statement at end of input
   36 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>
main()
{

	int max, min, sum, a, n, i;

	max = -1000000;
	min = 1000000;
	sum = 0;

	scanf("%d", &n);

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

		scanf("%d", &a);

		if(a < min) min = a;
		if(a > min) max = a;

		sum += a;

	}

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

	return 0;

}

}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected identifier or '(' before '?' token
    7 |         long long???int sum=0;
      |                  ^
main.c:21:17: error: 'sum' undeclared (first use in this function)
   21 |                 sum += i;
      |                 ^~~
main.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
int n,i,x;
long long min=1000000,max=-1000000;
long long sum=0;

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

}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected expression before '<' token
    9 | for(i=0;i,<n;i++){
      |           ^
main.c:10:19: error: invalid operands to binary & (have 'char *' and 'int')
   10 |         scanf("%d"&x);
      |               ~~~~^
      |               |
      |               char *
Language: C

#include <iostream>
#include <stdio.h>
int min(int *p,int size){
  int min =0;
  min=p[0];
  
  for(int i=0;i<size;i++){
    if(min<p[i]){ min=p[i];}
  }
  return min;
}

int max(int *p,int size){
  int max = 0;
  max=p[0];
  for(int i=0;i<size;i++){
    if(max<p[i]){ max=p[i];}
  }
  return max;
}

int sum(int *p,int size){
  int sum =0;
  for(int i=0;i<size;i++){
    sum +=p[i];
  }
  return sum;
}
    


int main(){
  int size = 0;
  scanf("%d",&size);
  int numbers[size];
  for(int i=0;i<size;i++){
    scanf("%d",&numbers[i]);
  }
  int min=0,max=0,sum=0;
  min=min(numbers,size);
  max=max(numbers,size);
  sum=sum(numbers,size);
 
  printf("%d %d %d\n",min,max,sum);
  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>
int min(int *p,int size){
  int min =0;
  min=p[0];
  
  for(int i=0;i<size;i++){
    if(min<p[i]){ min=p[i];}
  }
  return min;
}

int max(int *p,int size){
  int max = 0;
  max=p[0];
  for(int i=0;i<size;i++){
    if(max<p[i]){ max=p[i];}
  }
  return max;
}

int sum(int *p,int size){
  int sum =0;
  for(int i=0;i<size;i++){
    sum +=p[i];
  }
  return sum;
}
    


int main(){
  int size = 0;
  scanf("%d",&size);
  int numbers[size];
  for(int i=0;i<size;i++){
    scanf("%d",&numbers[i]);
  }
  int min=0,max=0,sum=0;
  min=min(numbers,size);
  max=max(numbers,size);
  sum=sum(numbers,size);
 
  printf("%d %d %d\n",min,max,sum);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:40:7: error: called object 'min' is not a function or function pointer
   40 |   min=min(numbers,size);
      |       ^~~
main.c:39:7: note: declared here
   39 |   int min=0,max=0,sum=0;
      |       ^~~
main.c:41:7: error: called object 'max' is not a function or function pointer
   41 |   max=max(numbers,size);
      |       ^~~
main.c:39:13: note: declared here
   39 |   int min=0,max=0,sum=0;
      |             ^~~
main.c:42:7: error: called object 'sum' is not a function or function pointer
   42 |   sum=sum(numbers,size);
      |       ^~~
main.c:39:19: note: declared here
   39 |   int min=0,max=0,sum=0;
      |                   ^~~
Language: C

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

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

#include<stdio.h>

int main(void)
{
	int n,i,min,max;
	__int64 sum;
	int a[10000];
	scanf("%d",&n);
	if(0<n && n<=10000){
		for(i=0;i<n;i++){
			scanf("%7d",&a[i]);
			if(-1000000 >= a[i] && a[i]>=1000000) a[i]=0;
		}
		min=max=sum=a[0];
		for(i=1;i<n;i++){
			sum+=a[i];
			if(min>a[i]) min=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:6:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 |         __int64 sum;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>

int main (void){
  int n;
  int i;
  int max,min,
  long sum;
  long sum2=0;//int???????¶???????????????????

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


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

  min = a[0];
  max = a[0];
  sum = a[0];

  for(i=1;i<n;i++){
    if(min > a[i])
      min = a[i];
    if(max < a[i])
      max = a[i];
    if(sum <= 2147483647)
      sum += a[i];
    else
      sum2 += a[i];
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected identifier or '(' before 'long'
    7 |   long sum;
      |   ^~~~
main.c:19:3: error: 'sum' undeclared (first use in this function); did you mean 'sum2'?
   19 |   sum = a[0];
      |   ^~~
      |   sum2
main.c:19:3: 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 i;
  int max,min,
  long long int sum;

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


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

  min = a[0];
  max = a[0];
  sum = a[0];

  for(i=1;i<n;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:7:3: error: expected identifier or '(' before 'long'
    7 |   long long int sum;
      |   ^~~~
main.c:18:3: error: 'sum' undeclared (first use in this function)
   18 |   sum = a[0];
      |   ^~~
main.c:18:3: 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, num, min, max, sum;
    scanf("%d\n%d", &n, &num);
    min = num;
    max = num;
    sum = num;
    for (i = 1; i < n; i ++) {
        scanf("%d", &num) == 1);
        sum += num;
        if (num > max) max = num;
        if (num < min) min = num;
    }
    printf("%d %d %d", min, max, sum);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ';' before ')' token
    9 |         scanf("%d", &num) == 1);
      |                               ^
      |                               ;
main.c:9:31: error: expected statement before ')' token
main.c: At top level:
main.c:16:5: error: expected identifier or '(' before 'return'
   16 |     return 0;
      |     ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

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

Compiler output:
main.c:16:5: error: expected identifier or '(' before 'return'
   16 |     return 0;
      |     ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

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

Compiler output:
main.c:14:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   14 | }javascript:void(0)
      |            ^
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

int main(){

int n,a[10000],i,e,c;

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

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

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

}

for (i = 2; i >= 0; i--)
    {
        for (c = 0; c < i; c++)
        {
            if (a[c]>a[c+1])
            {
                c=0;
                c = a[b];
                a[c] = a[c+1];
                a[c+1] = c;
 
            }
        }
 
         
         
    }

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

printf("%d %d %d",a[0],a[n-1],a[n]);


return 0;
}

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

#include<stdio.h>

int main(){

int n,a[10000],i,e,c;

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

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

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

}

for (i = 2; i>= 0; i--)
    {
        for (c = 0; c < i; c++)
        {
            if (a[c]>a[c+1])
            {
                c=0;
                c = a[b];
                a[c] = a[c+1];
                a[c+1] = c;
 
            }
        }
 
         
         
    }

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

printf("%d %d %d",a[0],a[n-1],a[n]);


return 0;
}

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

#include<stdio.h>
#include<vector>
using namespace std;

int main()
{
	int n, i, j, sum, x;
	scanf("%d", &n);
	vector<int> a(n);
	for(i = 0;i < n; i++)
	{
		scanf("%d", &a[i]);
		sum = sum + a[i];
	}
	for(i = 0;i < n;i++)
	{
		for(j = n - 1; j > i; j--)
		{
			if(a[j] < a[j-1])
			{
				x = a[j];
				a[j] = a[j-1];
				a[j-1] = x;
			}
		}
	}
	printf("%d %d %d\n", a[0], a[n-1], sum);
}

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

#include <stdio.h>

int main(int argc, char **argv){
	int i;
	int len,val;
	int min,max,sum;
	
	// Input Length
	scanf("%d",&len);
	data = malloc( sizeof(int)*len);
	// Input First Number
	scanf("%d",&val);
	min = val;
	max = val;
	sum = val;
	
	// Input Rest Number
	for(i=1;i<len;i++){
		scanf("%d",&val);
		if( val < min ){
			min = val;
		}
		if( val > max ){
			max = val;
		}
		sum += val;
	}

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'data' undeclared (first use in this function)
   10 |         data = malloc( sizeof(int)*len);
      |         ^~~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:16: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   10 |         data = malloc( sizeof(int)*len);
      |                ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:16: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   10 |         data = malloc( sizeof(int)*len);
      |                ^~~~~~
main.c:10:16: note: include '<stdlib.h>' or provide a declaration of 'malloc'
Language: C

#include <stdio.h>

int main()
{
	int a[10000];
	int i, n, tmp;
	int sum = 0;

	scanf("%d", &n);

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

	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(a[i] > a[j]){
				tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}

	printf("%d %d %d\n", &a[0], &a[n-1], &sum);

	return 0;
}

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

#include <stdio.h>

int main()
{
	long int a[10000];
	int i, n, tmp;
	long int sum = 0;

	scanf("%d", &n);

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

	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(a[i] > a[j]){
				tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}

	printf("%d %d %d\n", &a[0], &a[n-1], &sum);

	return 0;
}

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

#include <stdio.h>

int main()
{

	int i, n, j, tmp;
	long int sum = 0;
	long int a[];

	scanf("%d", &n);

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

	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(a[i] > a[j]){
				tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}

	printf("%d %d %d\n", &a[0], &a[n-1], &sum);

	return 0;
}

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

#include <stdio.h>

int main()
{

	int i, n, tmp;
	long long int sum = 0;
	long long int a[n];

	scanf("%d", &n);

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

	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(a[i] > a[j]){
				tmp = a[i];
				a[i] = a[j];
				a[j] = tmp;
			}
		}
	}

	printf("%lld %lld %lld\n", &a[0], &a[n-1], &sum);

	return 0;
}

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

#include <stdio.h>
int main() {
    int max,min,sum,n,i,a[100] = {0};
    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 (max < a[i]) {
            max = a[i];
        }
        if (min > a[i]) {
            min = a[i];
        }
        sum += a[a];
    }
    printf("%d %d %d\n",min,max,sum);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: array subscript is not an integer
   18 |         sum += a[a];
      |                 ^
Language: C

#include <stdio.h>


long num,min=1000000,max=-1000000,sum=0;


scanf("%ld", &n);


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

  sum += num;

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

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

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

return 0;

}

Compiler output:
main.c:7:7: error: expected declaration specifiers or '...' before string constant
    7 | scanf("%ld", &n);
      |       ^~~~~
main.c:7:14: error: expected declaration specifiers or '...' before '&' token
    7 | scanf("%ld", &n);
      |              ^
main.c:10:1: error: expected identifier or '(' before 'for'
   10 | for(i=0;i<n;i++){
      | ^~~
main.c:10:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   10 | for(i=0;i<n;i++){
      |          ^
main.c:10:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   10 | for(i=0;i<n;i++){
      |              ^~
main.c:24:8: error: expected declaration specifiers or '...' before string constant
   24 | printf("%ld %ld %ld\n", min, max, sum);
      |        ^~~~~~~~~~~~~~~
main.c:24:25: error: expected declaration specifiers or '...' before 'min'
   24 | printf("%ld %ld %ld\n", min, max, sum);
      |                         ^~~
main.c:24:30: error: expected declaration specifiers or '...' before 'max'
   24 | printf("%ld %ld %ld\n", min, max, sum);
      |                              ^~~
main.c:24:35: error: expected declaration specifiers or '...' before 'sum'
   24 | printf("%ld %ld %ld\n", min, max, sum);
      |                                   ^~~
main.c:26:1: error: expected identifier or '(' before 'return'
   26 | return 0;
      | ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#pragma warning (disable:4996)
int main() {
	int n, i;
	scanf("%d", &n);
	int *c;
	c = malloc(sizeof(int)*n);
	int min = 1000001, max = -1000001;
	long long int sum = 0;
	for (i = 0; i < n; i++) {
		scanf("%d", &c[i]);
		min = min(c[i], min);
		max = max(c[i], max);
		sum += c[i];
	}
	printf("%d %d %lld\n", min, max, sum);
	free(c);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:23: error: called object 'min' is not a function or function pointer
   13 |                 min = min(c[i], min);
      |                       ^~~
main.c:9:13: note: declared here
    9 |         int min = 1000001, max = -1000001;
      |             ^~~
main.c:14:23: error: called object 'max' is not a function or function pointer
   14 |                 max = max(c[i], max);
      |                       ^~~
main.c:9:28: note: declared here
    9 |         int min = 1000001, max = -1000001;
      |                            ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    4 |         int a[10000],n,cnt;
      |         ^~~
main.c:5:21: error: 'n' undeclared (first use in this function)
    5 |         scanf("%d",&n);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
    6 |         for(cnt=0;cnt<n;cnt++){
      |             ^~~
      |             int
main.c:7:29: error: 'a' undeclared (first use in this function)
    7 |                 scanf("%d",&a[cnt]);
      |                             ^
main.c:18:17: error: 'sum' undeclared (first use in this function)
   18 |                 sum+=a[cnt];
      |                 ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:13: error: expected identifier or '(' before '?' token
    3 |         long???long sum;
      |             ^
main.c:18:17: error: 'sum' undeclared (first use in this function)
   18 |                 sum+=a[cnt];
      |                 ^~~
main.c:18:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	long long int sum = 0, min = 1000000,max = -1000000;
	int a,n,i;

	scanf("%d",&n);

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

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

	return 0;

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

#include<stdio.h>

int main(){
	long long int sum = 0, min = 1000000,max = -1000000;
	int a,n,i = 0;

	scanf("%d",&n);

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

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

	return 0;

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

include<stdio.h>

int main(){
	long min = 100001,max = -100001,sum = 0;
	int n , i, a;

	scanf("%d",&n);

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

	printf("%d %d %d\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(){
	long int a = 0,sum = 0;
	int n ,i, min = 1000001,max = -1000001;

	scanf("%d",&n);

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

	printf("%ld %ld %lld\n",min,max,sum);
	
	return 0;

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

#include <stdio.h>

int main()
{

long int a[10000];
long int max, min, sum;

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

max = a[0];
min = a[0];
sum = 0;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'i' undeclared (first use in this function)
    9 | for(i=0;i++;i<10000){
      |     ^
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>

int main()
{

long int a[10000];
long int max, min, sum;
int i;

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

max = a[0];
min = a[0];
sum = 0;

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

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

return 0;
}

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

#include <stdio.h>

int main()
{

long int a[10000];
long int max, min, sum;
int i;

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

max = a[0];
min = a[0];
sum = 0;

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

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

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

#include <stdio.h>
int main(void)
{
    int n;
    int a[1000];
    int min,max;
    int sum = 0;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<n;i++) scanf("%d",&a[i]);
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:31: error: expected ';' before '}' token
   14 |        if(min>a[i]) min = a[i]
      |                               ^
      |                               ;
   15 |     }
      |     ~                          
main.c:18:31: error: expected ';' before '}' token
   18 |        if(max<a[i]) max = a[i]
      |                               ^
      |                               ;
   19 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void)
{
    int n;
    int a[1000];
    int min,max;
    int sum = 0;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<n;i++) scanf("%d",&a[i]);
      |         ^
main.c:10:9: 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[1000] = {};
    int min,max;
    int sum = 0;

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

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

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

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

#include <stdio.h>
int main(void){
	int i,kazu
	long sum=0,a[10000],min=1000001,max=-1000001;
	scanf("%ld",&kazu);
	
	for(i=0;i<kazu;i++){
		scanf("%d",&a[i]);
		if(a[i]<=min){
		min=a[i];
		}
		if(a[i]>=max){
		max=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:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    4 |         long sum=0,a[10000],min=1000001,max=-1000001;
      |         ^~~~
main.c:5:22: error: 'kazu' undeclared (first use in this function)
    5 |         scanf("%ld",&kazu);
      |                      ^~~~
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:29: error: 'a' undeclared (first use in this function)
    8 |                 scanf("%d",&a[i]);
      |                             ^
main.c:9:26: error: 'min' undeclared (first use in this function); did you mean 'main'?
    9 |                 if(a[i]<=min){
      |                          ^~~
      |                          main
main.c:12:26: error: 'max' undeclared (first use in this function)
   12 |                 if(a[i]>=max){
      |                          ^~~
main.c:15:17: error: 'sum' undeclared (first use in this function)
   15 |                 sum=sum+a[i];
      |                 ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:23:9: error: expected expression at end of input
   23 |         printf("%d %d %d\n",
      |         ^~~~~~
main.c:23:9: error: expected declaration or statement at end of input