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

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


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum = 0;
      |         ^~~
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |         int arr[a];
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0,i<a,i++){
      |             ^
main.c:10:24: error: expected ';' before ')' token
   10 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:15:33: error: 'sum' undeclared (first use in this function)
   15 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:4:26: error: stray '\342' in program
    4 |   int a[10001],n,i,max = <U+2212>1000000,min = 1000000;
      |                          ^~~~~~~~
main.c:14:24: error: expected ')' before '{' token
   14 |   for(i = 0; i < n; i++{
      |      ~                 ^
      |                        )
main.c:26:1: error: expected expression before '}' token
   26 | }
      | ^
Language: C

#include <stdio.h>

#define NUMBER 10000

int main(void){

  double  i,num;

  double a[NUMBER];

  scanf("%lf",&num);

  printf("\n");

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

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

  }   double min,max,sum;

  min=max=sum=a[0];

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

      if(a[i]>max){

      max=a[i];}

      if(a[i]<min){

      min=a[i];}

      sum+=a[i];

  }

  printf("%.0lf %.0lf %.0lf\n",min,max,sum);

  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:17:22: error: array subscript is not an integer
   17 |       scanf("%lf ",&a[i]);
      |                      ^
main.c:25:11: error: array subscript is not an integer
   25 |       if(a[i]>max){
      |           ^
main.c:27:12: error: array subscript is not an integer
   27 |       max=a[i];}
      |            ^
main.c:29:11: error: array subscript is not an integer
   29 |       if(a[i]<min){
      |           ^
main.c:31:12: error: array subscript is not an integer
   31 |       min=a[i];}
      |            ^
main.c:33:13: error: array subscript is not an integer
   33 |       sum+=a[i];
      |             ^
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:7:7: error: array size missing in 'n'
    7 |   int n[];
      |       ^
main.c:13:1: error: stray '\343' in program
   13 | <U+3000>
      | ^~~~~~~~
Language: C



// ITP1_4_D: Min, Max and Sum #include <stdio.h> #include <stdlib.h> int main() { int n; int d, min, max; long long sum; scanf("%d%d", &n, &d); sum = min = max = d; while (--n > 0) { scanf("%d", &d); if (d < min) min = d; if (d > max) max = d; sum += d; } printf("%d %d %lld\n", min, max, sum); return 0; } 



 



Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

	return 0;
}


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

#include<stdio.h>
int main(void) {
	int n,x,max,min;
	long long int sum ;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf_s("%d", &n);
	for (int i = 1; i <= n; i++) {
		scanf_s("%d", &x);
		if (x < max)max = x;
		if (x > min)min = x;
		sum = sum + x;
	}
	printf("%d %d %lld\n", max, min, sum);

	return 0;
}


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

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

	return 0;
}


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

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

	return 0;
}


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

#include<stdio.h>
int main(void) {
	int i,n,x,max,min;
	long long int sum;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf_s("%d", &n);
	for (i = 1; i <= n; i++) {
		scanf_s("%d", &x);
		if (x < max)max = x;
		if (x > min)min = x;
		sum = sum + x;
	}
	printf("%d %d %lld\n", max, min, sum);

	return 0;
}


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

#include<stdio.h>
int main() {
	int i,n,x,max,min;
	long long int sum;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf("%d", &n);

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

	return 0;
}


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

#include<stdio.h>
int main(void) {
	int i,n,x,max,min;
	long long int sum;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf("%d", &n);

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

	return 0;
}


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

#include<stdio.h>
int main(void) {
	int i,n,x,max,min;
	long long int sum;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf("%d", &n);

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

	return 0;
}


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

#include<stdio.h>
int main(void) {
	int i,n,x,max,min;
	long long int sum;
	sum = 0;
	min = -1000000;
	max = 1000000;
	scanf("%d", &n);

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

	return 0;
}


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

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


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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d",&a[x]);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:18: error: expected ';' before '}' token
   22 |     tol += a[x+1]
      |                  ^
      |                  ;
   23 |   }
      |   ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:16: error: 'X' undeclared (first use in this function)
    9 |    for(x=0;x<n;X++){
      |                ^
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:42: error: expected ';' before 'return'
   19 |      printf("&lld &lld %d\n",min,max,sum)
      |                                          ^
      |                                          ;
   20 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:19:42: error: expected ';' before 'return'
   19 |      printf("&lld &lld %d\n",min,max,sum)
      |                                          ^
      |                                          ;
   20 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:18:44: error: expected ';' before 'return'
   18 |      printf("&lld &lld %lld\n",min,max,sum)
      |                                            ^
      |                                            ;
   19 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:18:44: error: expected ';' before 'return'
   18 |      printf("&lld &lld %lld\n",min,max,sum)
      |                                            ^
      |                                            ;
   19 | 
   20 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:19:44: error: expected ';' before 'return'
   19 |      printf("&lld &lld %lld\n",min,max,sum)
      |                                            ^
      |                                            ;
   20 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:19:44: error: expected ';' before 'return'
   19 |      printf("&lld &lld %lld\n",min,max,sum)
      |                                            ^
      |                                            ;
   20 |      return 0;
      |      ~~~~~~
Language: C

#include<stdio.h>

int main(){
  long long min,max,n,x,y,sum;
  max=-100000000
  min=100000000
  sum=0;
  scanf("%lld",&n);
   for(x=0;x<n;x++){
     scanf("%lld",&y);
     sum = sum+y;
     if(min>y){
       min=y;
     }
     if(max<y){
       max=y;
     }
   }
     printf("&lld &lld %lld\n",min,max,sum);
     return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'min'
    5 |   max=-100000000
      |                 ^
      |                 ;
    6 |   min=100000000
      |   ~~~
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:4:20: error: 'LONG_MIN' undeclared (first use in this function)
    4 |         long max = LONG_MIN;
      |                    ^~~~~~~~
main.c:2:1: note: 'LONG_MIN' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
    1 | #include<stdio.h>
  +++ |+#include <limits.h>
    2 | int main(){
main.c:4:20: note: each undeclared identifier is reported only once for each function it appears in
    4 |         long max = LONG_MIN;
      |                    ^~~~~~~~
main.c:5:20: error: 'LONG_MAX' undeclared (first use in this function)
    5 |         long min = LONG_MAX;
      |                    ^~~~~~~~
main.c:5:20: note: 'LONG_MAX' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected ';' before '}' token
   11 |     sum+=x
      |           ^
      |           ;
   12 |   }
      |   ~        
main.c:13:23: error: 'min' undeclared (first use in this function); did you mean 'main'?
   13 |   printf("%d %d %d\n",min,max,sum);
      |                       ^~~
      |                       main
main.c:13:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:27: error: 'max' undeclared (first use in this function)
   13 |   printf("%d %d %d\n",min,max,sum);
      |                           ^~~
main.c:13:31: error: 'sum' undeclared (first use in this function)
   13 |   printf("%d %d %d\n",min,max,sum);
      |                               ^~~
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'LONG_MIN' undeclared (first use in this function)
    5 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                    ^~~~~~~~
main.c:2:1: note: 'LONG_MIN' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
    1 | #include<stdio.h>
  +++ |+#include <limits.h>
    2 | int main(){
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
    5 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                    ^~~~~~~~
main.c:5:33: error: 'LONG_MAX' undeclared (first use in this function)
    5 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                                 ^~~~~~~~
main.c:5:33: note: 'LONG_MAX' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:6:20: error: 'LONG_MIN' undeclared (first use in this function)
    6 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                    ^~~~~~~~
main.c:3:1: note: 'LONG_MIN' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
    2 | #include<math.h>
  +++ |+#include <limits.h>
    3 | int main(){
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
    6 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                    ^~~~~~~~
main.c:6:33: error: 'LONG_MAX' undeclared (first use in this function)
    6 |    long  sum=0,min=LONG_MIN,max=LONG_MAX;
      |                                 ^~~~~~~~
main.c:6:33: note: 'LONG_MAX' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
Language: C

#include <stdio.h>

int main(){
    int n;
    int i;
    long min = 9223372036854775807
    long max = -9223372036854775808
    long sum = 0;
    int input;

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


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected ',' or ';' before 'long'
    7 |     long max = -9223372036854775808
      |     ^~~~
main.c:7:17: warning: integer constant is so large that it is unsigned
    7 |     long max = -9223372036854775808
      |                 ^~~~~~~~~~~~~~~~~~~
main.c:21:20: error: 'max' undeclared (first use in this function)
   21 |         if(input > max){
      |                    ^~~
main.c:21:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:9: error: 'sum' undeclared (first use in this function)
   25 |         sum += input;
      |         ^~~
Language: C

#include <stdio.h>

int main(){
    int n;
    int i;
    long min = 2147483647
    long max = -2147483648
    long sum = 0;
    int input;

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


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected ',' or ';' before 'long'
    7 |     long max = -2147483648
      |     ^~~~
main.c:21:20: error: 'max' undeclared (first use in this function)
   21 |         if(input > max){
      |                    ^~~
main.c:21:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:9: error: 'sum' undeclared (first use in this function)
   25 |         sum += input;
      |         ^~~
Language: C

#include <stdio.h>

int main(){
    int n;
    int i;
    long min = 2147483647
    long max = -2147483648
    long sum = 0;
    int input;

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


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected ',' or ';' before 'long'
    7 |     long max = -2147483648
      |     ^~~~
main.c:21:20: error: 'max' undeclared (first use in this function)
   21 |         if(input > max){
      |                    ^~~
main.c:21:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:9: error: 'sum' undeclared (first use in this function)
   25 |         sum += input;
      |         ^~~
Language: C

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int sum = 0;
			int min = 1000000;
			int max = 0;
			
			for(int i = 0; i < N; i++) {
				int number = sc.nextInt();
					if(min > number) {
						min = number;
					}
					if(max < number) {
						max = number;
					}
				sum += number;
			}

			System.out.printf("%d ",min);
			System.out.printf("%d ",max);
			System.out.printf("%d\n",sum);
	}

}



Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int min=1000000;
		int max=-1000000;
		long sum=0;

		for(int i=0;i<N; i++){
			int a=sc.nextInt();
			if(a<=min) {
				min=a;
			}
			if(a>max) {
				max=a;
			}
			sum+=a;		
		}
		System.out.printf("%d %d %d\n",min,max,sum);
	}


}



Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int min=1000000;
		long max=-1000000;
		long sum=0;

		for(int i=0;i<N; i++){
			int a=sc.nextInt();
			if(a<=min) {
				min=a;
			}
			if(a>max) {
				max=a;
			}
			sum+=a;		
		}
		System.out.printf("%d %d %d\n",min,max,sum);
	}


}



Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:22:32: error: expected expression before 'long'
   22 |    printf("%d %d %lld",min,max,long long sum);
      |                                ^~~~
Language: C

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


    int a,i,b,count=0,max=0,min=10000;
    scanf("%d",&a);
    for(i=1;i<=a;i++){
        scanf("%d",&b);
        
        if(b>max){
            max=b;
        }
        else if(b<min){
            min=b;
        }
        else{
        }
        count++;
        
    }        


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

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


Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'min'
    5 |     max =-100000
      |                 ^
      |                 ;
    6 |     min=1000000
      |     ~~~
Language: C

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



Compiler output:
main.c:1:1: 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) {
long int a,n,c=-100000000,d=100000000,e=0;
scanf("%d",&n)
for(int b=1;b<n+1;b++){
  scanf("%d",&a);
  e+=a;
  if(c<a)
  c=a;
  if(d>a)
  d=a;
}
printf("%d %d %d\n",d,c,e);
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'for'
    5 | scanf("%d",&n)
      |               ^
      |               ;
    6 | for(int b=1;b<n+1;b++){
      | ~~~
Language: C

#include <stdio.h>
int main(){
 int n,i,g,max,min,j;
 scanf("%d",&n);
 j=0;max=-1000001;min=1000001;g=0;
 while (j<n){
  scanf("%d",&i)
  if(max<=i)
    max=i
  if(min>=i)
    min=i
  g+=i}
 printf("%d%d%d\n",min,max,g);
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'if'
    7 |   scanf("%d",&i)
      |                 ^
      |                 ;
    8 |   if(max<=i)
      |   ~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(){
 int n,i,g,max,min,j;
 int *s;
 scanf("%d",&n);
 s=(int*)malloc(sizeof(int))*n;
 i=0;max=-1000001;min=1000001;g=0;
 while(i<n){
  scanf("%d",&j);
  s[i]=j;}
 for(i=0;i<n;i++){
  a=s[i];
  if(max<=a)
   max=a;
  if(min>=a)
   min=a;
  g+=a;}
 printf("%d%d%d\n",min,max,g);
}


Compiler output:
main.c: In function 'main':
main.c:7:29: error: invalid operands to binary * (have 'int *' and 'int')
    7 |  s=(int*)malloc(sizeof(int))*n;
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~^
      |    |
      |    int *
main.c:13:3: error: 'a' undeclared (first use in this function)
   13 |   a=s[i];
      |   ^
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'j' undeclared (first use in this function)
    7 |   scanf("%d",&j);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: expected ';' before 'g'
   11 |    min=j
      |         ^
      |         ;
   12 |   g+=j;}
      |   ~      
main.c:13:32: error: expected ';' before 'return'
   13 |  printf("%d %d %d\n",min,max,g)
      |                                ^
      |                                ;
   14 |  return 0;
      |  ~~~~~~
Language: C

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

		if(max<a)
		max=a;

		else if(min>a)
		min=a;

		sum=sum+n;
	}
	printd("%d %d %lld\n",min,max,sum);
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:18:25: error: 'n' undeclared (first use in this function)
   18 |                 sum=sum+n;
      |                         ^
main.c:18:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: implicit declaration of function 'printd'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         printd("%d %d %lld\n",min,max,sum);
      |         ^~~~~~
      |         printf
Language: C

import java.util.Scanner;
class Main{
 public static void main(String args[]){
  long max,min,n,g,i,j;
  max=-1000001;min=1000001;g=0;i=0;
  Scanner sc = new Scanner(System.in);
  n=sc.nectInt();
  while(i<n){
   j=sc.nextInt();
   if(max<j)
    max=j;
   if(min>j)
    min=j;
   g+=j;
   i++;}
  System.out.println(min+" "+max+" "+g);
 }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'class'
    2 | class Main{
      | ^~~~~
main.c:2:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | class Main{
      |           ^
Language: C

#include <stdio.h>
 
int num[10001];
int i=0;
int a,b;
int max = -1000001;
long long sum=0;
int min = 1000001;
 
 
//int w,h,x,y,r;
 
void maxi(){
  for(int i=0;i<a;i++){
    if(num[i]>max){
    max=num[i];
  }
  else;
}
}
void mini(){
  for(int i=0;i<a;i++){
    if(num[i]<min){
    min=num[i];
  }
  else;
}
}
void avg(){
  for(int i=0;i<a;i++){
    sum += (long long)num[i];
  }
}
 
int main(void) {
  scanf("%d",&a);
  for(int i=0;i<a;i++){
    scanf("%d",&b);
    num[i]=b;
}
maxi();
mini();
avg();
 
  printf("%d %d %d\n",min,max,sum);
  //printf("%d\n",num[k]);
 
    //return 0;
 


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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum,n = 0;
      |         ^~~
main.c:8:21: error: 'n' undeclared (first use in this function)
    8 |         scanf("%d",&n);
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i,i<n,i++){
      |             ^
main.c:9:22: error: expected ';' before ')' token
    9 |         for(i,i<n,i++){
      |                      ^
      |                      ;
main.c:9:22: error: expected expression before ')' token
main.c:12:19: error: 'a' undeclared (first use in this function)
   12 |         for(i=0,i<a,i++){
      |                   ^
main.c:12:24: error: expected ';' before ')' token
   12 |         for(i=0,i<a,i++){
      |                        ^
      |                        ;
main.c:12:24: error: expected expression before ')' token
main.c:17:33: error: 'sum' undeclared (first use in this function)
   17 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum,n = 0;
      |         ^~~
main.c:8:21: error: 'n' undeclared (first use in this function)
    8 |         scanf("%d",&n);
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i,i<n,i++){
      |             ^
main.c:9:22: error: expected ';' before ')' token
    9 |         for(i,i<n,i++){
      |                      ^
      |                      ;
main.c:9:22: error: expected expression before ')' token
main.c:12:24: error: expected ';' before ')' token
   12 |         for(i=0,i<n,i++){
      |                        ^
      |                        ;
main.c:12:24: error: expected expression before ')' token
main.c:17:33: error: 'sum' undeclared (first use in this function)
   17 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int i,b,sum,n = 0;
      |         ^~~
main.c:8:21: error: 'n' undeclared (first use in this function)
    8 |         scanf("%d",&n);
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i=0,i<n,i++){
      |             ^
main.c:9:24: error: expected ';' before ')' token
    9 |         for(i=0,i<n,i++){
      |                        ^
      |                        ;
main.c:9:24: error: expected expression before ')' token
main.c:12:24: error: expected ';' before ')' token
   12 |         for(i=0,i<n,i++){
      |                        ^
      |                        ;
main.c:12:24: error: expected expression before ')' token
main.c:17:33: error: 'sum' undeclared (first use in this function)
   17 |                                 sum=sum+arr[i];
      |                                 ^~~
main.c:23:43: error: expected ';' before 'sum'
   23 |                                 min=arr[i]
      |                                           ^
      |                                           ;
   24 |                         sum=sum+arr[i];
      |                         ~~~                
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
main.c:29:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void)
{
	long long int max = -1000000;
	long long int min = 1000000;
	int i,b,sum,n = 0;
	int arr[10000];
	scanf("%d",&n);
	for(i=0,i<n,i++){
	scanf("%d",&arr[i]);
	}
	for(i=0,i<n,i++){
		if(max<arr[i]){
			max=arr[i];
			if(min>arr[i]){
				min=arr[i];
				sum=sum+arr[i];
			}else{
				sum=sum+arr[i];
			}
		}else{
			if(min>arr[i]){
				min=arr[i]
			sum=sum+arr[i];
		}
	printf("%d %d %d\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++){
      |                        ^
      |                        ;
main.c:9:24: error: expected expression before ')' token
main.c:12:24: error: expected ';' before ')' token
   12 |         for(i=0,i<n,i++){
      |                        ^
      |                        ;
main.c:12:24: error: expected expression before ')' token
main.c:23:43: error: expected ';' before 'sum'
   23 |                                 min=arr[i]
      |                                           ^
      |                                           ;
   24 |                         sum=sum+arr[i];
      |                         ~~~                
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
main.c:29:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

 int main()
 {

 int a[10000], min, max, n, i;
 long long sum = 0
 scanf("%d", &n);
for(i = 0; i < n; i++){
 scanf("%d", &a[i]);
 sum += a[i];
 }
 max = 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 %lld\n", min, max, sum);

 return 0;
 }


Compiler output:
main.c: In function 'main':
main.c:8:2: error: expected ',' or ';' before 'scanf'
    8 |  scanf("%d", &n);
      |  ^~~~~
Language: C

#include <stdio.h>

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


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

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

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

  for(int i; i<n ; i++){
    scanf("%d ",&num[i]);
  }

  min = num[0];
  max = num[0];

  for(int j; j<i ; j++){
    if(num[j] < min){
      min = num[j];
    }
    if(num[j] > max){
      max = num[j];
    }
    sum = sum + num[j];
  }

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

  return 0;


Compiler output:
main.c: In function 'main':
main.c:18:16: error: 'i' undeclared (first use in this function)
   18 |   for(int j; j<i ; j++){
      |                ^
main.c:18:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:35: error: expected ';' before 'return'
   28 |   printf("%d %d %d\n",min,max,sum)
      |                                   ^
      |                                   ;
   29 | 
   30 |   return 0;
      |   ~~~~~~                           
main.c:30:3: error: expected declaration or statement at end of input
   30 |   return 0;
      |   ^~~~~~