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

#include<stdio.h>

int main()
{
   int n, i, min, max
   long sum;
   int m[1000000];

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

   min = max = sum = m[0];

   for (i=1; i<n; i++){
      if (m[i]<min)
         min = m[i];
   }

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

   for (i=1; i<n; i++)
      sum = sum + m[i];

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    6 |    long sum;
      |    ^~~~
main.c:13:10: error: 'max' undeclared (first use in this function)
   13 |    min = max = sum = m[0];
      |          ^~~
main.c:13:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'sum' undeclared (first use in this function)
   13 |    min = max = sum = m[0];
      |                ^~~
Language: C

#include<stdio.h>

int main()
{
   int n, i, min, max
   long sum;

   scanf("%d", &n);

   scanf("%d", &x);
      min = max = sum = x;

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

      if (x<min)
         min = x;

      if (x>max)
         max = x;

      sum = sum + x;
   }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    6 |    long sum;
      |    ^~~~
main.c:10:17: error: 'x' undeclared (first use in this function)
   10 |    scanf("%d", &x);
      |                 ^
main.c:10:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:13: error: 'max' undeclared (first use in this function)
   11 |       min = max = sum = x;
      |             ^~~
main.c:11:19: error: 'sum' undeclared (first use in this function)
   11 |       min = max = sum = x;
      |                   ^~~
Language: C

#include<stdio.h>

int main()
{
   int n, x, i, min, max
   long sum;

   scanf("%d", &n);

   scanf("%d", &x);
      min = max = sum = x;

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

      if (x<min)
         min = x;

      if (x>max)
         max = x;

      sum = sum + x;
   }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    6 |    long sum;
      |    ^~~~
main.c:11:13: error: 'max' undeclared (first use in this function)
   11 |       min = max = sum = x;
      |             ^~~
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:19: error: 'sum' undeclared (first use in this function)
   11 |       min = max = sum = x;
      |                   ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'long'
    5 |   int num[10000]
      |                 ^
      |                 ;
    6 |   long sum;
      |   ~~~~           
main.c:12:18: error: 'num' undeclared (first use in this function); did you mean 'sum'?
   12 |     scanf("%d", &num[i]);
      |                  ^~~
      |                  sum
main.c:12:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:22: error: expected ';' before '}' token
   22 |         sum =+ num[i]
      |                      ^
      |                      ;
   23 |     }
      |     ~
Language: C

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

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

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

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

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

#include<stdio.h>
int main(void){
        int n,a,d,e,f;
        char d;
        scanf("%d",&n);
        scanf("%d",&d);
        e=d;
        for(i=2;i<=n;i++;){
         scanf("%d",&a);
         if(a<d){
          d=a
         }
         if(a>e){
          d=a
         }
         f=f+a;
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: conflicting types for 'd'; have 'char'
    4 |         char d;
      |              ^
main.c:3:17: note: previous declaration of 'd' with type 'int'
    3 |         int n,a,d,e,f;
      |                 ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=2;i<=n;i++;){
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:25: error: expected ')' before ';' token
    8 |         for(i=2;i<=n;i++;){
      |            ~            ^
      |                         )
main.c:11:14: error: expected ';' before '}' token
   11 |           d=a
      |              ^
      |              ;
   12 |          }
      |          ~    
main.c:14:14: error: expected ';' before '}' token
   14 |           d=a
      |              ^
      |              ;
   15 |          }
      |          ~
Language: C

#include<stdio.h>
int main(void){
        int n,a,d,e,f;
        char d;
        scanf("%d",&n);
        scanf("%d",&d);
        e=d;
        for(i=2;i<=n;i++;){
         scanf("%d",&a);
         if(a<d){
          d=a;
         }
         if(a>e){
          d=a;
         }
         f=f+a;
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: conflicting types for 'd'; have 'char'
    4 |         char d;
      |              ^
main.c:3:17: note: previous declaration of 'd' with type 'int'
    3 |         int n,a,d,e,f;
      |                 ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=2;i<=n;i++;){
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:25: error: expected ')' before ';' token
    8 |         for(i=2;i<=n;i++;){
      |            ~            ^
      |                         )
Language: C

#include<stdio.h>
int main(void){
        int n,a,d,e,f;
        char d;
        scanf("%d",&n);
        scanf("%d",&d);
        e=d;
        for(i=2;i<=n;i++){
         scanf("%d",&a);
         if(a<d){
          d=a;
         }
         if(a>e){
          d=a;
         }
         f=f+a;
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: conflicting types for 'd'; have 'char'
    4 |         char d;
      |              ^
main.c:3:17: note: previous declaration of 'd' with type 'int'
    3 |         int n,a,d,e,f;
      |                 ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=2;i<=n;i++){
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
        int i,n,a,d,e,f;
        char d;
        scanf("%d",&n);
        scanf("%d",&d);
        e=d;
        for(i=2;i<=n;i++){
         scanf("%d",&a);
         if(a<d){
          d=a;
         }
         if(a>e){
          d=a;
         }
         f=f+a;
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: conflicting types for 'd'; have 'char'
    4 |         char d;
      |              ^
main.c:3:19: note: previous declaration of 'd' with type 'int'
    3 |         int i,n,a,d,e,f;
      |                   ^
Language: C

#include<stdio.h>
int main(void){
        long long i,a,d,e,f;
        scanf("%d",&n);
        scanf("%d",&d);
        e=d;
        f=d;
        for(i=2;i<=n;i++){
         scanf("%d",&a);
         if(a<d){
          d=a;
         }
         if(a>e){
          e=a;
         }
         f=f+a;
        }
        printf("%lld %lld %lld\n",d,e,f);
    return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:4:13: warning: overflow in conversion from 'long int' to 'int' changes value from '-1000000000000' to '727379968' [-Woverflow]
    4 |         max=-1000000000000;
      |             ^
main.c:5:13: warning: overflow in conversion from 'long int' to 'int' changes value from '1000000000000' to '-727379968' [-Woverflow]
    5 |         min=1000000000000;
      |             ^~~~~~~~~~~~~
main.c:6:9: error: 'sum' undeclared (first use in this function); did you mean 'sun'?
    6 |         sum=0;
      |         ^~~
      |         sun
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include<stdio.h>

int main(void){
    int num, min=0, max=0, sum=0, tmp;
    scanf("%d", &num);
    while(scanf("%d", tmp)!=EOF){
        if(min > tmp) min = tmp;
        if(max < tmp) max = tmp;
        sum += tmp;
    }
    print("%d %d %d", min, max, sum);
    return 0;
}


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

#include <stdio.h>

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






Compiler output:
main.c: In function 'main':
main.c:37:27: error: too few arguments to function 'min'
   37 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                           ^~~
main.c:3:5: note: declared here
    3 | int min(int a[], int n) {
      |     ^~~
main.c:37:35: error: too few arguments to function 'max'
   37 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                                   ^~~
main.c:11:5: note: declared here
   11 | int max(int a[], int n) {
      |     ^~~
main.c:37:43: error: too few arguments to function 'sum'
   37 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                                           ^~~
main.c:19:6: note: declared here
   19 | long sum(int a[], int n) {
      |      ^~~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:16:27: error: too few arguments to function 'min'
   16 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                           ^~~
main.c:3:5: note: declared here
    3 | int min(int a[], int n);
      |     ^~~
main.c:16:35: error: too few arguments to function 'max'
   16 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                                   ^~~
main.c:4:5: note: declared here
    4 | int max(int a[], int n);
      |     ^~~
main.c:16:43: error: too few arguments to function 'sum'
   16 |     printf("%d %d %ld\n", min(a), max(a), sum(a));
      |                                           ^~~
main.c:5:6: note: declared here
    5 | long sum(int a[], int n);
      |      ^~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'I' undeclared (first use in this function)
    7 | for(int i=1;I<=5;i++)
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: expected ';' before 'if'
    9 | scanf("%d",&num)
      |                 ^
      |                 ;
   10 | if(max<num)
      | ~~               
main.c:12:1: error: 'else' without a previous 'if'
   12 | else if(min>num)
      | ^~~~
Language: C

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

long max(long long *data){
  int a = data[0];
  int i;
  for(i=1;i<n;i++){
    if(a < data[i]){
      a = data[i];
    }
  }
  return a;
}
long min(long long *data){
  int a = data[0];
  int i;
  for(i=1;i<n;i++){
    if(a > data[i]){
      a = data[i];
    }
  }
  return a;
}
long long sum(long long *data){
  int i;
  long long s=0;
  for(i=0;i<n;i++){
    s += data[i];
  }
  return s;
}



Compiler output:
main.c:17:6: error: conflicting types for 'max'; have 'long int(long long int *)'
   17 | long max(long long *data){
      |      ^~~
main.c:2:11: note: previous declaration of 'max' with type 'long long int(long long int *)'
    2 | long long max(long long*);
      |           ^~~
main.c:37:11: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   37 | long long sum(long long *data){
      |           ^~~
main.c:4:6: note: previous declaration of 'sum' with type 'long int(long long int *)'
    4 | long sum(long long*);
      |      ^~~
Language: C

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

long max(long long *data){
  long a = data[0];
  int i;
  for(i=1;i<n;i++){
    if(a < data[i]){
      a = data[i];
    }
  }
  return a;
}
long min(long long *data){
  long a = data[0];
  int i;
  for(i=1;i<n;i++){
    if(a > data[i]){
      a = data[i];
    }
  }
  return a;
}
long long sum(long long *data){
  int i;
  long long s=0;
  for(i=0;i<n;i++){
    s += data[i];
  }
  return s;
}



Compiler output:
main.c:17:6: error: conflicting types for 'max'; have 'long int(long long int *)'
   17 | long max(long long *data){
      |      ^~~
main.c:2:11: note: previous declaration of 'max' with type 'long long int(long long int *)'
    2 | long long max(long long*);
      |           ^~~
main.c:37:11: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   37 | long long sum(long long *data){
      |           ^~~
main.c:4:6: note: previous declaration of 'sum' with type 'long int(long long int *)'
    4 | long sum(long long*);
      |      ^~~
Language: C

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

int main(int argc, char *argv[]){
  int i;
  int dim;
  int *data;
  int min,max;
  longlongint sum;
  //get data
  scanf("%d", &dim);
  data=(int *)malloc(sizeof(int)*dim);
  for(i=0; i<dim; i++){
    scanf("%d", &data[i]);
  }
  //init
  sum=0;
  min=data[0];
  max=data[0];
  //calc
  for(i=0; i<dim; i++){
    sum+=data[i];
    if(min>data[i]){
      min=data[i];
    }
    if(max<data[i]){
      max=data[i];
    }
  }
  printf("%d %d %d\n", min, max, sum);
  free(data);
  return(0);
}



Compiler output:
main.c: In function 'main':
main.c:9:3: error: unknown type name 'longlongint'; did you mean 'long long int'?
    9 |   longlongint sum;
      |   ^~~~~~~~~~~
      |   long long int
Language: C

#include <stdio.h>

int main(){

    int n,min max,d;
    long long sum;
    scanf("%d%d",&n,&d);
    min = d;
    max = d;
    sum = d;

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

        scanf("%d",&d);

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

        sum += d;
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'max'
    5 |     int n,min max,d;
      |               ^~~
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |     scanf("%d%d",&n,&d);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'min' undeclared (first use in this function); did you mean 'main'?
    8 |     min = d;
      |     ^~~
      |     main
main.c:9:5: error: 'max' undeclared (first use in this function)
    9 |     max = d;
      |     ^~~
main.c:12:9: error: 'i' undeclared (first use in this function)
   12 |     for(i = 0;i < n-1;i+){
      |         ^
main.c:12:25: error: expected expression before ')' token
   12 |     for(i = 0;i < n-1;i+){
      |                         ^
Language: C

#include <stdio.h>

int main(){
    int n,min,max,d
    long long sum;
    int i =1;
    scanf("%d%d",&n,&d);
    min = d;
    max = d;
    sum = d;

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

        scanf("%d",&d);

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

        sum += d;
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
    5 |     long long sum;
      |     ^~~~
main.c:7:22: error: 'd' undeclared (first use in this function)
    7 |     scanf("%d%d",&n,&d);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:5: error: 'sum' undeclared (first use in this function)
   10 |     sum = d;
      |     ^~~
Language: C

#include<stdio.h>

int main(){

    int n,d,min,max,i;
    long long long sum;

    scanf("%d%d",&n,&d);

    min = d;
    max = d;
    sum = d;
  
    for( i = 0; i < n-1;i++){

    scanf("%d",&d);

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

    sum += d;
    }
   
    printf("%d %d %llld\n",min,max,sum);

    return 0;
}







Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'long long long' is too long for GCC
    6 |     long long long sum;
      |               ^~~~
Language: C

#include<stdio.h>

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


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


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

#include <stdio.h>

int main(int argc, const char * argv[]) {
    
    int n;
    int a, min, max;
    long long sum;
    
    scanf("%d%d", &n, &a);
    sum = min = max = a;
    while (--n > 0) {
        scanf("%d", &a);
        if (a < min) min = a;
        if (a > max) max = a;
        sum += a;
    }
    printf("%d %d %lld\n", min, max, sum);

    return 0;


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

#include <stdio.h>
#define N 10000

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



Compiler output:
main.c: In function 'main':
main.c:13:38: error: expected expression before '[' token
   13 |                                 sum+=[i];
      |                                      ^
Language: C

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



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

#include<stdio.h>
#include<string.h>
int min(int*);
int max(int*);
int sum(int*);
#define FOR for(i=1;i<N;i++)
int N;
main() {
	int i;
	int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	printf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
int min(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

int max(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

int sum(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;


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

#include<stdio.h>
#include<string.h>
int min(int*);
int max(int*);
int sum(int*);
#define FOR for(i=1;i<N;i++)
int N;
main() {
	int i;
	int a[10000];
	scanf("%d ",&N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	printf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
int min(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

int max(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

int sum(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;


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

#include<stdio.h>
long long int min(int*);
long long int max(int*);
long long int sum(int*);
#define FOR for(i=1;i<N;i++)
long long int N;
main() {
	int i;
	int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	printf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
int min(int *KNN) {
	int i;
	long int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

int max(int *KNN) {
	int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

int sum(int *KNN) {
	int i;
	long long int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;
}




Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c:20:5: error: conflicting types for 'min'; have 'int(int *)'
   20 | int min(int *KNN) {
      |     ^~~
main.c:2:15: note: previous declaration of 'min' with type 'long long int(int *)'
    2 | long long int min(int*);
      |               ^~~
main.c:32:5: error: conflicting types for 'max'; have 'int(int *)'
   32 | int max(int *KNN) {
      |     ^~~
main.c:3:15: note: previous declaration of 'max' with type 'long long int(int *)'
    3 | long long int max(int*);
      |               ^~~
main.c:44:5: error: conflicting types for 'sum'; have 'int(int *)'
   44 | int sum(int *KNN) {
      |     ^~~
main.c:4:15: note: previous declaration of 'sum' with type 'long long int(int *)'
    4 | long long int sum(int*);
      |               ^~~
Language: C

#include<stdio.h>
long long int min(long long int*);
long long int max(long long int*);
long long int sum(long long int*);
#define FOR for(i=1;i<N;i++)
long long int N;
main() {
	long long int i;
	long long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
long long int min(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

long long  int max(long long  int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

long long int sum(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;
}



Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c: In function 'main':
main.c:16:9: error: 'prlong' undeclared (first use in this function)
   16 |         prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
      |         ^~~~~~
main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:15: error: expected ';' before 'long'
   16 |         prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
      |               ^~~~~
      |               ;
Language: C

#include<stdio.h>
long long int min(long long int*);
long long int max(long long int*);
long long int sum(long long int*);
#define FOR for(i=1;i<N;i++)
long long int N;
main() {
	long long int i;
	long long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
long long int min(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

long long  int max(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

long long int sum(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;
}



Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c: In function 'main':
main.c:16:9: error: 'prlong' undeclared (first use in this function)
   16 |         prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
      |         ^~~~~~
main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:15: error: expected ';' before 'long'
   16 |         prlong long intf("%d %d %d\n",min(a),max(a),sum(a));
      |               ^~~~~
      |               ;
Language: C

#include<stdio.h>
long  int min(int*);
long  int max(long long int*);
long  int sum(long long int*);
#define FOR for(i=1;i<N;i++)
long long int N;
main() {
	int i;
	long long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	printf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
int min(long long int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

long long  int max(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

long long int sum(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;
}



Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c: In function 'main':
main.c:16:33: error: passing argument 1 of 'min' from incompatible pointer type [-Wincompatible-pointer-types]
   16 |         printf("%d %d %d\n",min(a),max(a),sum(a));
      |                                 ^
      |                                 |
      |                                 long long int *
main.c:2:15: note: expected 'int *' but argument is of type 'long long int *'
    2 | long  int min(int*);
      |               ^~~~
main.c: At top level:
main.c:20:5: error: conflicting types for 'min'; have 'int(long long int *)'
   20 | int min(long long int *KNN) {
      |     ^~~
main.c:2:11: note: previous declaration of 'min' with type 'long int(int *)'
    2 | long  int min(int*);
      |           ^~~
main.c:32:16: error: conflicting types for 'max'; have 'long long int(long long int *)'
   32 | long long  int max(long long int *KNN) {
      |                ^~~
main.c:3:11: note: previous declaration of 'max' with type 'long int(long long int *)'
    3 | long  int max(long long int*);
      |           ^~~
main.c:44:15: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   44 | long long int sum(long long int *KNN) {
      |               ^~~
main.c:4:11: note: previous declaration of 'sum' with type 'long int(long long int *)'
    4 | long  int sum(long long int*);
      |           ^~~
Language: C

#include<stdio.h>
long  int min(int*);
long  int max(long long int*);
long  int sum(long long int*);
#define FOR for(i=1;i<N;i++)
long long int N;
main() {
	int i;
	long long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);
	
	}

	printf("%d %d %d\n",min(a),max(a),sum(a));
	return 0;
	
}
int min(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
			kotae = KNN[i];
     }
	return kotae;


}

long long  int max(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
				}
	}
	return kotae;
	
}

long long int sum(long long int *KNN) {
	long long int i;
	long long int kotae = KNN[0];
	FOR {
		kotae += KNN[i];
	}
	return kotae;
}



Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c: In function 'main':
main.c:16:33: error: passing argument 1 of 'min' from incompatible pointer type [-Wincompatible-pointer-types]
   16 |         printf("%d %d %d\n",min(a),max(a),sum(a));
      |                                 ^
      |                                 |
      |                                 long long int *
main.c:2:15: note: expected 'int *' but argument is of type 'long long int *'
    2 | long  int min(int*);
      |               ^~~~
main.c: At top level:
main.c:20:5: error: conflicting types for 'min'; have 'int(int *)'
   20 | int min(int *KNN) {
      |     ^~~
main.c:2:11: note: previous declaration of 'min' with type 'long int(int *)'
    2 | long  int min(int*);
      |           ^~~
main.c:32:16: error: conflicting types for 'max'; have 'long long int(long long int *)'
   32 | long long  int max(long long int *KNN) {
      |                ^~~
main.c:3:11: note: previous declaration of 'max' with type 'long int(long long int *)'
    3 | long  int max(long long int*);
      |           ^~~
main.c:44:15: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   44 | long long int sum(long long int *KNN) {
      |               ^~~
main.c:4:11: note: previous declaration of 'sum' with type 'long int(long long int *)'
    4 | long  int sum(long long int*);
      |           ^~~
Language: C

#include<stdio.h>
int min(int*);
int max(int*);
int sum(int*);
#define FOR for(i=1;i<N;i++)
int N;
main() {
	int i;
	int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);

	}

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

}
int min(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
		kotae = KNN[i];
	}
	return kotae;


}

int max(int *KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
		}
	}
	return kotae;

}

int sum(*KNN) {
	int i;
	int kotae = KNN[0];
	FOR{
		kotae += KNN[i];
	}
	return kotae;
}


Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c:44:9: error: expected declaration specifiers or '...' before '*' token
   44 | int sum(*KNN) {
      |         ^
Language: C

#include<stdio.h>
long int min(long int*);
long int max(long int*);
long int sum(long int*);
#define FOR for(i=1;i<N;i++)
int N;
main() {
	int i;
	long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);

	}

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

}
long int min(long int *KNN) {
	int i;
	long int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
		kotae = KNN[i];
	}
	return kotae;


}

long int max(long int *KNN) {
	int i;
	long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
		}
	}
	return kotae;

}

long long int sum(long long int *KNN) {
	int i;
	long long int kotae = KNN[0];
	FOR{
		kotae += KNN[i];
	}
	return kotae;
}


Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c:44:15: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   44 | long long int sum(long long int *KNN) {
      |               ^~~
main.c:4:10: note: previous declaration of 'sum' with type 'long int(long int *)'
    4 | long int sum(long int*);
      |          ^~~
Language: C

#include<stdio.h>
long int min(long int*);
long int max(long int*);
long int sum(long int*);
#define FOR for(i=1;i<N;i++)
int N;
main() {
	int i;
	long int a[10000];
	scanf("%d", &N);
	for (i = 0;i < N;i++) {
		scanf("%d", &a[i]);

	}

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

}
long int min(long int *KNN) {
	int i;
	long int kotae = KNN[0];
	FOR{
		if (kotae> KNN[i])
		kotae = KNN[i];
	}
	return kotae;


}

long int max(long int *KNN) {
	int i;
	long int kotae = KNN[0];
	FOR{
		if (kotae < KNN[i]) {
			kotae = KNN[i];
		}
	}
	return kotae;

}

long long int sum(long long int *KNN) {
	int i;
	long long int kotae = KNN[0];
	FOR{
		kotae += KNN[i];
	}
	return kotae;
}


Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main() {
      | ^~~~
main.c:44:15: error: conflicting types for 'sum'; have 'long long int(long long int *)'
   44 | long long int sum(long long int *KNN) {
      |               ^~~
main.c:4:10: note: previous declaration of 'sum' with type 'long int(long int *)'
    4 | long int sum(long int*);
      |          ^~~
Language: C

#include<stdio.h>
int main(void){
  long int m, n, i;
  scanf("%d",&n); 
  int a[ n ];
  m = n - 1+ ;
  for(i = 0; i = m; i ++){
    scanf("%d",&a[ i ]);
 }    
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before ';' token
    6 |   m = n - 1+ ;
      |              ^
Language: C

#include<stdio.h>
int main(void){
  long m, n, i;
  scanf("%d",&n); 
  int a[ n ];
  m = n - 1+ ;
  for(i = 0; i = m; i ++){
    scanf("%d",&a[ i ]);
 }    
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before ';' token
    6 |   m = n - 1+ ;
      |              ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before ';' token
    6 |   m = n - 1+ ;
      |              ^
Language: C

int main()
{
	int x=0;
	int min=1000001;
	int max=-1000001;
	int sum=0;

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

	while(x<n){
		scanf("%d",&a[x]);
		if(a[x]<min){min=a[x];}
		if(a[x]>max){max=a[x];}
		sum=sum+a[x]
		x=x+1;
	}

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


Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |         scanf("%d",&n)
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |         scanf("%d",&n)
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:23: error: expected ';' before 'int'
    9 |         scanf("%d",&n)
      |                       ^
      |                       ;
   10 |         int a[n];
      |         ~~~            
main.c:13:29: error: 'a' undeclared (first use in this function)
   13 |                 scanf("%d",&a[x]);
      |                             ^
main.c:13:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:29: error: expected ';' before 'x'
   16 |                 sum=sum+a[x]
      |                             ^
      |                             ;
   17 |                 x=x+1;
      |                 ~            
main.c:20:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   20 |         printf("%d %d %d\n",min,max,sum);
      |         ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	int x=0;
	int min=1000001;
	int max=-1000001;
	int sum=0;

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

	while(x<n){
		scanf("%d",&a[x]);
		if(a[x]<min){min=a[x];}
		if(a[x]>max){max=a[x];}
		sum=sum+a[x]
		x=x+1;
	}

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


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

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



Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'sum' undeclared (first use in this function)
    4 |     sum=0;
      |     ^~~
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {

int x,b,c,d;

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

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



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



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



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



printf("%d %d %d\n",d,c,b );
  
  return 0;
}


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

#include <stdio.h>

int main() {

int x,b,c,d;

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

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



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



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



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



printf("%d %d %d\n",d,c,b );
  
  return 0;
}


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

#include <stdio.h>

int main() {

int x,c,d,i;
long long int b=0

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

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


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



c=a[0];
for (i = 1; i < x; i++) 
{
    if (c<a[i]) 
    {
      c=a[i];
    }
}



d=a[0];
for (i = 1; i < x; i++) 
{
    if (d>a[i]) 
    {
      d=a[i];
    }
}



printf("%d %d %lld\n",d,c,b );
  
  return 0;
}


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

#include <stdio.h>

int main() {

int x,c,d,i;
long long int b=0

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

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


for (i = 0; i < x; i++) 
{
  b=b+(long long int)a[i];
}



c=a[0];
for (i = 1; i < x; i++) 
{
    if (c<a[i]) 
    {
      c=a[i];
    }
}



d=a[0];
for (i = 1; i < x; i++) 
{
    if (d>a[i]) 
    {
      d=a[i];
    }
}



printf("%d %d %lld\n",d,c,b );
  
  return 0;
}


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

#include <stdio.h>

int main() {

int x,c,d,i;
long long int b=0

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

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


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



c=a[0];
for (i = 1; i < x; i++) 
{
    if (c<a[i]) 
    {
      c=a[i];
    }
}



d=a[0];
for (i = 1; i < x; i++) 
{
    if (d>a[i]) 
    {
      d=a[i];
    }
}



printf("%d %d %lld\n",d,c,b );
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected ',' or ';' before 'scanf'
    8 | scanf("%d\n",&x);
      | ^~~~~
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=+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 | }
      | ^