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

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


Compiler output:
main.c: In function 'main':
main.c:11:15: error: passing argument 2 of 'minmax' makes pointer from integer without a cast [-Wint-conversion]
   11 |   minmax(n,num[n],&min,&max,sum);
      |            ~~~^~~
      |               |
      |               int
main.c:2:23: note: expected 'int *' but argument is of type 'int'
    2 | void minmax(int n,int num[],int min,int max, int sum);
      |                   ~~~~^~~~~
main.c:11:19: error: passing argument 3 of 'minmax' makes integer from pointer without a cast [-Wint-conversion]
   11 |   minmax(n,num[n],&min,&max,sum);
      |                   ^~~~
      |                   |
      |                   int *
main.c:2:33: note: expected 'int' but argument is of type 'int *'
    2 | void minmax(int n,int num[],int min,int max, int sum);
      |                             ~~~~^~~
main.c:11:24: error: passing argument 4 of 'minmax' makes integer from pointer without a cast [-Wint-conversion]
   11 |   minmax(n,num[n],&min,&max,sum);
      |                        ^~~~
      |                        |
      |                        int *
main.c:2:41: note: expected 'int' but argument is of type 'int *'
    2 | void minmax(int n,int num[],int min,int max, int sum);
      |                                     ~~~~^~~
main.c: In function 'minmax':
main.c:18:3: error: invalid type argument of unary '*' (have 'int')
   18 |   *min=0;
      |   ^~~~
main.c:19:3: error: invalid type argument of unary '*' (have 'int')
   19 |   *max=0;
      |   ^~~~
Language: C

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


Compiler output:
main.c: In function 'minmax':
main.c:21:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   21 |       max=num;
      |          ^
main.c:24:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   24 |       min=num;
      |          ^
main.c:26:13: error: expected ';' before 'i'
   26 |     sum+=num
      |             ^
      |             ;
   27 |     i++;
      |     ~
Language: C

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


Compiler output:
main.c: In function 'minmax':
main.c:12:11: error: 'n' redeclared as different kind of symbol
   12 |   int num,n;
      |           ^
main.c:10:17: note: previous definition of 'n' with type 'int'
   10 | void minmax(int n,int *min,int *max,int sum)
      |             ~~~~^
main.c:13:7: error: 'sum' redeclared as different kind of symbol
   13 |   int sum=0;
      |       ^~~
main.c:10:41: note: previous definition of 'sum' with type 'int'
   10 | void minmax(int n,int *min,int *max,int sum)
      |                                     ~~~~^~~
main.c:21:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   21 |       max=num;
      |          ^
main.c:24:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   24 |       min=num;
      |          ^
Language: C

#include <stdio.h>
#include <limit.h>

int main () {

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

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

    scanf("%d", &n);

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

        sum += x;

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

    }

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

    return 0;

}




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

#include<stdio.h>

int main(){

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

    scanf("%d",&n);

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

      scanf("%d",&a);

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

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

      sum += a;

    }

    puts("%d %d %lld",min,max,sum);

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:23:5: error: too many arguments to function 'puts'
   23 |     puts("%d %d %lld",min,max,sum);
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>
int main(){
	long n,i,m=1000000,M=0,s;
	scanf("%ld\n",&n);
	long a[n];
	for(i=1,i=<n,i++){
		scanf("%d",a[i]);
		s+=a[i];
		if(a[i]>M){
			M=a[i];
		}
		if(a[i]<m){
			m=a[i];
		}
	}
	s=s/n;
	printf("%d %d %d",m,M,s);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '<' token
    6 |         for(i=1,i=<n,i++){
      |                   ^
main.c:6:25: error: expected expression before ')' token
    6 |         for(i=1,i=<n,i++){
      |                         ^
Language: C

#include<stdio.h>
int main(){
	long n,i,m=1000000,M=0,s;
	scanf("%ld\n",&n);
	long a[n];
	for(i=1,i=<n,i++){
		scanf("%d",a[i]);
		s+=a[i];
		if(a[i]>M){
			M=a[i];
		}
		if(a[i]<m){
			m=a[i];
		}
	}
	s=s/n;
	printf("%d %d %d\n",m,M,s);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '<' token
    6 |         for(i=1,i=<n,i++){
      |                   ^
main.c:6:25: error: expected expression before ')' token
    6 |         for(i=1,i=<n,i++){
      |                         ^
Language: C

#include<stdio.h>
int main(){
	long n,i,m=1000000,M=0,s;
	scanf("%ld",&n);
	long a[n];
	for(i=1,i=<n,i++){
		scanf("%d",a[i]);
		s+=a[i];
		if(a[i]>M){
			M=a[i];
		}
		if(a[i]<m){
			m=a[i];
		}
	}
	s=s/n;
	printf("%d %d %d\n",m,M,s);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '<' token
    6 |         for(i=1,i=<n,i++){
      |                   ^
main.c:6:25: error: expected expression before ')' token
    6 |         for(i=1,i=<n,i++){
      |                         ^
Language: C

#include<stdio.h>


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




Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sum'
    6 |   sum = 0;
      |   ^~~
main.c:9:16: error: 'ai' undeclared (first use in this function); did you mean 'i'?
    9 |     scanf("%d",ai[i]);
      |                ^~
      |                i
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{

    long long a, b, c, d, ,e, i;

    scanf("%lld %lld", &a, &b);
    
    d = b; e = b;

    for(i = 1; i <= a; i++){
	scanf("%lld", &c);
	if(c > b) b = c;
        if(c < d) d =c;
        e += c;
	}

    printf("%lld %lld %lld\n", d, b, e);

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected identifier or '(' before ',' token
    6 |     long long a, b, c, d, ,e, i;
      |                           ^
main.c:10:12: error: 'e' undeclared (first use in this function)
   10 |     d = b; e = b;
      |            ^
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'i' undeclared (first use in this function)
   12 |     for(i = 1; i <= a; i++){
      |         ^
Language: C

#include <stdio.h>
#include <math.h>

#define INPUT_NUMBER 3

int main(void){
    int num=0;
    scanf("%d",&num);

    int nums[num];
    int max=-1000000;
    int min=1000000;
    long long int sum=0;

    for(int h=0;h<num;h++){
        scanf("%d",&nums[i]);
    }

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

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


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

#include<iostream>
using namespace std;
int main(void)
{
	int n,m,i,max=0,min=9999,all=0;
	cin>>n;
	for(i=1;i<=n;i++){
		cin>>m;
		all=all+m;
		if(max<=m) max=m;
		if(min>=m) min=m;
	}
	if(n==1) cout<<m<<" "<<m<<" "<<m<<endl;
	else cout<<min<<" "<<max<<" "<<all<<endl;
	return 0;
}


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

#include<iostream>//itp14d.cpp
using namespace std;
int main(void)
{
	long long int n,m,i,max=0,min=2222222222222222,all=0;
	cin>>n;
	for(i=1;i<=n;i++){
		cin>>m;
		all=all+m;
		if(max<=m) max=m;
		if(min>=m) min=m;
	}
	if(n==1) cout<<m<<" "<<m<<" "<<m<<endl;
	else cout<<min<<" "<<max<<" "<<all<<endl;
	return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>//itp14d.cpp
      |         ^~~~~~~~~~
compilation terminated.
Language: C



#include<stdio.h>

int main()
{

    long long a, b, c, d, e, max, min, sum, i;

    scanf("%lld %lld", &a, &b);
    
    d = e = b;

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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:3:10: error: 'longlong' undeclared (first use in this function)
    3 |          longlong int a,sum=0,max,min;
      |          ^~~~~~~~
main.c:3:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:18: error: expected ';' before 'int'
    3 |          longlong int a,sum=0,max,min;
      |                  ^~~~
      |                  ;
main.c:7:31: error: 'a' undeclared (first use in this function)
    7 |                 scanf("%lld",&a);
      |                               ^
main.c:8:17: error: 'sum' undeclared (first use in this function)
    8 |                 sum += a;
      |                 ^~~
main.c:10:25: error: 'max' undeclared (first use in this function)
   10 |                         max=min=a;
      |                         ^~~
main.c:10:29: error: 'min' undeclared (first use in this function); did you mean 'main'?
   10 |                         max=min=a;
      |                             ^~~
      |                             main
Language: C

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



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

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



Compiler output:
main.c: In function 'main':
main.c:11:20: error: 'ni' undeclared (first use in this function); did you mean 'i'?
   11 |         for(i=1;i<=ni++){
      |                    ^~
      |                    i
main.c:11:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:24: error: expected ';' before ')' token
   11 |         for(i=1;i<=ni++){
      |                        ^
      |                        ;
main.c:15:17: error: 'sum' undeclared (first use in this function); did you mean 'Sum'?
   15 |                 sum+=a;
      |                 ^~~
      |                 Sum
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'lomg' undeclared (first use in this function)
    4 |     lomg int sume=0;
      |     ^~~~
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: expected ';' before 'int'
    4 |     lomg int sume=0;
      |         ^~~~
      |         ;
main.c:8:9: error: 'sume' undeclared (first use in this function)
    8 |         sume+=a;
      |         ^~~~
Language: C

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


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

#include<stdio.h>

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

    sum = 0;

    scanf("%d", &n);   

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

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

        else if(a < min)
        {
            min = a;
        }

        else if(a > max)
        {
            max = a;
        }

        sum = sum + a;
    }

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

    return 0;
}


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

#include<stdio.h>

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

    sum = 0;

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

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

        if(i == 1)
        {
            min = max = a;
        }

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

        else if(a > max)
        {
            max = a;
        }

        sum = sum + a;
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ';' token
    6 |     int i,;
      |           ^
Language: C

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

    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: expected expression before ')' token
   10 |     for(){
      |         ^
main.c:10:9: error: expected expression before ')' token
Language: C

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

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:22: error: 'arr' undeclared (first use in this function)
    9 |         scanf("%d", &arr[i]);
      |                      ^~~
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 n,a,min,max,sum;
sum=0;max=0;min=1000000;
scanf("%d\n",&n);

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

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

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

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

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

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

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

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

#include <stdio.h>

int main(void) {

int H,W,x,y;
scanf("%d %d\n",&H,&W);
while((H!==0)||(W!==0)){
for(y=1;y<=H;y++){
for(x=1;x<=W;x++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected expression before '=' token
    7 | while((H!==0)||(W!==0)){
      |           ^
Language: C

#include <stdio.h>

int main(void) {

int H,W,x,y;
scanf("%d %d\n",&H,&W);
while((H!==0)||(W!==0)){
for(y=1;y<=H;y++){
for(x=1;x<=W;x++){
printf("#");
}
printf("\n");
}
printf("\n");
scanf("%d %d\n",&H,&W);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected expression before '=' token
    7 | while((H!==0)||(W!==0)){
      |           ^
Language: C

#include <stdio.h>

int main(void){
	int n;
	double Max,Min,i,S
	um=0;
	double A[10000];
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		scanf("%f", &A[i]);
		Sum+=A[i];
	}
	
	Max=A[0];
	
	for(i=1;i<n;i++){
		if(Max >= A[i]) Max+=0;
		else Max=A[i];
	}
	
	Min=A[0];
	
	for(i=1;i<n;i++){
		if(Min<=A[i]) Min+=0;
		else Min=A[i];
	}
	
	printf("%f %f %f",Min,Max,Sum);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'um'
    6 |         um=0;
      |         ^~
main.c:12:31: error: array subscript is not an integer
   12 |                 scanf("%f", &A[i]);
      |                               ^
main.c:13:17: error: 'Sum' undeclared (first use in this function)
   13 |                 Sum+=A[i];
      |                 ^~~
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:23: error: array subscript is not an integer
   13 |                 Sum+=A[i];
      |                       ^
main.c:19:28: error: array subscript is not an integer
   19 |                 if(Max >= A[i]) Max+=0;
      |                            ^
main.c:20:27: error: array subscript is not an integer
   20 |                 else Max=A[i];
      |                           ^
main.c:26:26: error: array subscript is not an integer
   26 |                 if(Min<=A[i]) Min+=0;
      |                          ^
main.c:27:27: error: array subscript is not an integer
   27 |                 else Min=A[i];
      |                           ^
Language: C

#include <stdio.h>

int main(){

  int a,i;

  scanf("%d",&a);

  int b[10000];

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

    scanf("%d",&b[i-1]);

  }

  int max=b[0],min=b[0];

  uint sum=b[0];

  for(i=1;i<=a-1;i++){

    if(max<b[i])
      max=b[i];
    if(min>b[i])
      min=b[i];

    sum += b[i];

  }

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

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:19:3: error: unknown type name 'uint'; did you mean 'int'?
   19 |   uint sum=b[0];
      |   ^~~~
      |   int
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:1: error: 'sum' undeclared (first use in this function)
    7 | sum=max;
      | ^~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include<stdio.h>
int main(void){
	int a, n, max = 0, min = 0, sum = 0;
	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", max, min, sum);
	return 0;
}

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

#include<stdio.h>
int main(void){
	int a, n, max = 0, min = 0, sum = 0;
	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);
	return 0;
}

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

#include <stdio.h>
#include <stdlib.h>
#define debug
int main(int argv, char *argc[]){
    int num
    unsigned int x;
    long array[255], max, min, sum;
        
    scanf("%d", &num);/* 改行を読み捨てつつ配列の大きさをゲット(1行目終了) */
    
    /* ２行目 */
    
    for(x=0; num>x; x++){
        scanf("%d", &array[x]);
    
        sum += array[x];
        
        if(max < array[x]) max = array[x];
        if(min > array[x]) min = array[x];
    }
    
    printf("%d %d %d\n", min, max, sum);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected ';' before 'unsigned'
    5 |     int num
      |            ^
      |            ;
    6 |     unsigned int x;
      |     ~~~~~~~~
main.c:9:18: error: 'num' undeclared (first use in this function); did you mean 'sum'?
    9 |     scanf("%d", &num);/* 改行を読み捨てつつ配列の大きさをゲット(1行目終了) */
      |                  ^~~
      |                  sum
main.c:9:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: 'i' undeclared (first use in this function); did you mean 'ai'?
    7 |  for(i= 0; i<n; i++){
      |      ^
      |      ai
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:19: error: expected expression before ')' token
    8 |    scanf("%d", ai&);
      |                   ^
main.c:9:28: error: expected ';' before '}' token
    9 |    if(i == 1){min =max = ai}
      |                            ^
      |                            ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:28: error: expected ';' before '}' token
    9 |    if(i == 1){min =max = ai}
      |                            ^
      |                            ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected ';' before 'int'
    4 |         int n
      |              ^
      |              ;
    5 |         int i,j;
      |         ~~~   
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){
	int n;
	int i,j;
	int min,max;
        long intsum;


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


	for(j=1;j<n;j++){
		if(a[j]>=max) max=a[j];
		else if(a[j]<=min) min=a[j];
		sum+=a[j];
	}
	printf("%d %d %d\n",min,max,sum);


	return 0;
}

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

#include "stdio.h"

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |         scanf("%d", &n);
      |         ^~~~~
main.c:11:27: error: 'sum' undeclared (first use in this function)
   11 |         min=a[0];max=a[0];sum=a[0];
      |                           ^~~
main.c:11:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include "stdio.h"

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

Compiler output:
main.c: In function 'main':
main.c:10:22: error: subscripted value is neither array nor pointer nor vector
   10 |                 min=a[0];max=a[0];sum=a[0];
      |                      ^
main.c:10:31: error: subscripted value is neither array nor pointer nor vector
   10 |                 min=a[0];max=a[0];sum=a[0];
      |                               ^
main.c:10:40: error: subscripted value is neither array nor pointer nor vector
   10 |                 min=a[0];max=a[0];sum=a[0];
      |                                        ^
Language: C

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:24: error: expected ')' before 'max'
   14 | printf("%d %d %d\n",min max sum);
      |       ~                ^~~~
      |                        )
Language: C

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

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

#include<stdio.h>
int main(void){
	int n, i, a[], max, min, sum;
	scanf("%d", &n);
	for(i = 0;i <= n;i++){
		scanf("%d", &a[i]);
	}
	max = a[0];
	min = a[0];
	sum = a[0];
	for(i = 1;i <= n;i++){
		sum = sum + a[i];
		if(max < a[i]){
			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:3:19: error: array size missing in 'a'
    3 |         int n, i, a[], max, min, sum;
      |                   ^
Language: C

#include<stdio.h>
int main(void){
	long i,n, ai;
	long min = 1000000, max = -1000000, sum= 0;
	//数値nを入力
	scanf("%d", &n);
	for(i = 0; i < n; i++){
		scanf("%d", &ai);
		if(min > ai){
			min = ai;
		}
		if(max < ai){
			max = ai;
		}
		sum = sum + ai;
	}
	printf("%d %d %d\n", min, max, sum);
	return 0
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected ';' before '}' token
   18 |         return 0
      |                 ^
      |                 ;
   19 | }
      | ~
Language: C

#include <stdio.h>

int main(void){

  int n;
  int a[];
  register int i;
  int min = 1000000,big = -1000000,sum = 0;
  int change;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'unsigned'
    9 |   unsigned sum = 0;
      |   ^~~~~~~~
main.c:22:5: error: 'sum' undeclared (first use in this function)
   22 |     sum += a[i];
      |     ^~~
main.c:22: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;
  int a[10000];
  register int i;
  int min = 1000001,big = -1000001
  unsigned int sum = 0;
   
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&a[i]);
  } 
  for(i = 0;i < n;i++){
    if(min > a[i]){
      min = a[i];
    }
    if(big < a[i]){
      big = a[i];
    }
    sum += a[i];
  }
  printf("%d %d %d\n",min,big,sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'unsigned'
    9 |   unsigned int sum = 0;
      |   ^~~~~~~~
main.c:22:5: error: 'sum' undeclared (first use in this function)
   22 |     sum += a[i];
      |     ^~~
main.c:22: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;
  int a[10000];
  register int i;
  int min = 1000001,big = -1000001;
  uisigned int sum = 0;
   
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&a[i]);
  } 
  for(i = 0;i < n;i++){
    if(min > a[i]){
      min = a[i];
    }
    if(big < a[i]){
      big = a[i];
    }
    sum += a[i];
  }
  printf("%d %d %d\n",min,big,sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'uisigned' undeclared (first use in this function)
    9 |   uisigned int sum = 0;
      |   ^~~~~~~~
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:11: error: expected ';' before 'int'
    9 |   uisigned int sum = 0;
      |           ^~~~
      |           ;
main.c:22:5: error: 'sum' undeclared (first use in this function)
   22 |     sum += a[i];
      |     ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'long'
    9 |   long sum = 0;
      |   ^~~~
main.c:22:5: error: 'sum' undeclared (first use in this function)
   22 |     sum += a[i];
      |     ^~~
main.c:22: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;
  int a[10000];
  register int i;
  int min = 1000001,big = -1000001
  long int sum = 0;
  
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&a[i]);
  } 
  for(i = 0;i < n;i++){
    if(min > a[i]){
      min = a[i];
    }
    if(big < a[i]){
      big = a[i];
    }
    sum += a[i];
  }
  printf("%d %d %d\n",min,big,sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'long'
    9 |   long int sum = 0;
      |   ^~~~
main.c:22:5: error: 'sum' undeclared (first use in this function)
   22 |     sum += a[i];
      |     ^~~
main.c:22: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;
  int a[10000];
  register int i;
  int min = 1000001,big = -1000001;
  long long int sum = 0;
   
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&a[i]);
  } 
  for(i = 0;i < n;i++){
    if(min > a[i]){
      min = a[i];
    }
    if(big < a[i]){
      big = a[i];
    }
    sum = sum + (ll)a[i];
  }
  printf("%d %d %d\n",min,big,sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:18: error: 'll' undeclared (first use in this function)
   22 |     sum = sum + (ll)a[i];
      |                  ^~
main.c:22:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:21: error: expected ';' before 'a'
   22 |     sum = sum + (ll)a[i];
      |                     ^
      |                     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:22:16: error: expected ';' before 'll'
   22 |     sum += a[i]ll;
      |                ^~
      |                ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:22:16: error: expected ';' before 'll'
   22 |     sum += a[i]ll;
      |                ^~
      |                ;
Language: C

#include <stdio.h>

int main(void){
	
	int n,nn,nnn,i=0,x,aa;	
	scanf("%d",&n);
	int date [10000];
	
	nn = n;	nnn = n;

	while(n != 0){
		scanf("%d",date[i]);
		aa += date[i];
		++i;
		--n;
	}
	while(nn != 1){
		i = 0;
		if(date[i] > date[i+1]){
			x = date[i];
			date[i] = date[i+1];
			date[i+1] = x;
			++i;
			--nn;
		}

		printf("%d %d %d\n",date[0],date[n-1],aa);
		return 0;
	}

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

#include <stdio.h>

int main(void){
    int count, number, i;
    int max = -1000000, min = 1000000, sum = 0;
    scanf("%d", &count);
    for(i = 0; i < count; i++){
        scanf("%d", &number);
        if(number > max){max = number;}
        if(number < min){min = number;}
        sum = sum + number;
    }
    printf("%d %d %d", min, max, sum);
    return0;
}

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

#include <stdio.h>
int main()
{
  int n, i, j, x, a1[], sum=0;

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

Compiler output:
main.c: In function 'main':
main.c:4:19: error: array size missing in 'a1'
    4 |   int n, i, j, x, a1[], sum=0;
      |                   ^~
main.c:12:29: error: expected ';' before ')' token
   12 |     for(j = i +1, j < n ,j++){
      |                             ^
      |                             ;
main.c:12:29: error: expected expression before ')' token
Language: C

#include<stdio.h>
int main()
{
	int i,j,n,count;
	double Min=1000000,Max=-1000000,Sum;
	scanf("%d",&count);
	for(i=0;i<count;i++)
{
	scanf("%d",&n);
	if(min>n) min=n;
	if(max<n) max=n;
	sum+=n;	
}
	printf("%ld %ld %ld",min,max,sum);
	return 0;
}

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

#include <stdio.h>
int main()
{
  int n, m, i, j, sum=0;

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

Compiler output:
main.c: In function 'main':
main.c:14:10: error: 'a1' undeclared (first use in this function); did you mean 'a'?
   14 |       if(a1[i] > a1[j]){
      |          ^~
      |          a
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:9: error: 'x' undeclared (first use in this function)
   15 |         x = a[i];
      |         ^
Language: C

#include <stdio.h>
int main()
{
  int n, m, i, j, x;
  long  sum=0;
  //配列の大きさw設定
  scanf("%d", &n);
  if(0<= n && n <= 10000){
  long a[n];
  }
      //配列に値を入れる
      for(m = 0; m < n; m++){
          scanf("%ld", &a[m]);
          //合計の計算
          sum = sum + a[m];
      }

  //配列の並び換え（大きい順）
  for(i=0; i < n ;i++){
    for(j = i+1; j < n ;j++){
      if(-1000000 <= a[i] && a[i] <= 1000000 && -1000000 <= a[j] && a[j] <= 1000000){
      if(a[i] > a[j]){
	x = a[i];
        a[i] = a[j];
        a[j] = x;
      }
    }
    }
  }
  n--;
  //計算結果の出力
  printf("%d %d %d\n", a[0], a[n], sum);
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: conflicting types for 'a'; have 'int[i]'
    4 | int a[i];
      |     ^
main.c:3:9: note: previous declaration of 'a' with type 'int'
    3 | int n,i,a,b=0,c=0;
      |         ^
Language: C

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

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void){    int i, n, count;    long min, max, sum;    max = -1000000;    min = 1000000;    sum = 0;    scanf("%d", &count);    for (i = 0; i < count; i++){        scanf("%d",&n);        if (max < n) max = n;        if (min > n) min = n;        sum += n;    }    printf("%ld %ld %ld\n",min,max,sum);    return 0;}
      |                    ^~~
/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,i,d;
long  min,max,sum;
min=1000000;
max=-1000000;
c=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&d);
if(max<d)max=d;
if(min>d)min=d;
sum+=d;
}
printf("%1d %1d %1d\n",min,max,sum);
return 0;
} 

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

#include <stdio.h>

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

	scanf("%d", &n);

	scanf("%d". &a);
	max = a;
	min = a;
	sum = a;

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

		if (max <= a)
			max = a;	
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected identifier before '&' token
   10 |         scanf("%d". &a);
      |                     ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:7:13: error: expected expression before '?' token
    7 |         min=???1000000;
      |             ^
main.c:26:25: error: break statement not within loop or switch
   26 |                         break;
      |                         ^~~~~
main.c: At top level:
main.c:30:16: error: expected declaration specifiers or '...' before string constant
   30 |         printf("%d %d %d\n",min,max,sum);
      |                ^~~~~~~~~~~~
main.c:30:29: error: unknown type name 'min'
   30 |         printf("%d %d %d\n",min,max,sum);
      |                             ^~~
main.c:30:33: error: unknown type name 'max'
   30 |         printf("%d %d %d\n",min,max,sum);
      |                                 ^~~
main.c:30:37: error: unknown type name 'sum'
   30 |         printf("%d %d %d\n",min,max,sum);
      |                                     ^~~
main.c:32:9: error: expected identifier or '(' before 'return'
   32 |         return 0;
      |         ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
int n;
int i, sum = 0;
int x[10000];
min = -1000000;
max = 1000000;

scanf("%d",&n);

while(n > i){
scanf("%d",&x[i]);
sum += x[i];
i++;
}

for (i = 0; n > i; i++){
if (min > x[i])
min = x[i];

if(max < x[i])
max = x[i];
}
printf("%d %d %d\n",min,max,sum);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'min' undeclared (first use in this function); did you mean 'main'?
    7 | min = -1000000;
      | ^~~
      | main
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: 'max' undeclared (first use in this function)
    8 | max = 1000000;
      | ^~~