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

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

Compiler output:
main.c: In function 'main':
main.c:3:13: error: 'i' undeclared (first use in this function)
    3 |     int n,a[i],min,max,sum;
      |             ^
main.c:3: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,b,c,i,x;


 x=0;


 scanf("%d %d %d",&a,&b,&c);


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


       if(i%c == 0){


       x++;


       }


 }


 printf("%d\n",x)


 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:33:18: error: expected ';' before 'return'
   33 |  printf("%d\n",x)
      |                  ^
      |                  ;
......
   36 |  return 0;
      |  ~~~~~~
Language: C

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

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

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

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

Compiler output:
main.c:2:1: error: unknown type name 'lint'; did you mean 'int'?
    2 | lint main(void){
      | ^~~~
      | int
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:14: error: conflicting types for 'sum'; have 'long int'
    8 |         long sum=0;
      |              ^~~
main.c:7:41: note: previous definition of 'sum' with type 'int'
    7 |         int a,i,min=INT_MAX,max=INT_MIN,sum=0,n;
      |                                         ^~~
Language: C

#include<stdio.h>

int main(void) {

???int n,i,ai,min,max;

   long sum;


???sum=0;  min=1000000;

???max=-1000000;

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

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

?????????scanf("%d",&ai);   

?????????sum+=ai;   

           if(max<ai){     

                max=ai;   

              }   

            if(min>ai){    

                min=ai;   

              }   

        }  

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

?????? return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???int n,i,ai,min,max;
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ???sum=0;  min=1000000;
      | ^
main.c:10:12: error: 'min' undeclared (first use in this function); did you mean 'main'?
   10 | ???sum=0;  min=1000000;
      |            ^~~
      |            main
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:1: error: expected expression before '?' token
   12 | ???max=-1000000;
      | ^
main.c:12:4: error: 'max' undeclared (first use in this function)
   12 | ???max=-1000000;
      |    ^~~
main.c:14:1: error: expected expression before '?' token
   14 | ???scanf("%d",&n);
      | ^
main.c:14:16: error: 'n' undeclared (first use in this function)
   14 | ???scanf("%d",&n);
      |                ^
main.c:16:1: error: expected expression before '?' token
   16 | ???for(i=1;i<=n;i++){
      | ^
main.c:38:1: error: expected expression before '?' token
   38 | ?????? return 0;
      | ^
Language: C

#include <stdio.h>

int main (void)

{

 int a,b,c,i,x;

x=0;


scanf("%d %d %d",&a,&b,&c);


for(i%c==0){


x++;


}


}


printf("%d\n",x);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:11: error: expected ';' before ')' token
   15 | for(i%c==0){
      |           ^
      |           ;
main.c:15:11: error: expected expression before ')' token
main.c: At top level:
main.c:27:8: error: expected declaration specifiers or '...' before string constant
   27 | printf("%d\n",x);
      |        ^~~~~~
main.c:27:15: error: unknown type name 'x'
   27 | printf("%d\n",x);
      |               ^
main.c:30:1: error: expected identifier or '(' before 'return'
   30 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include<stdio.h>

#include<stdlib.h>


#include<string.h>


int main (void)


{


 char num_str[1002];


 int num;


 long sum=0;


int i;


char???tmp;





while (1)


{


 fgets(num_str,sizeof(num_str),stdin);


 if(num_str[0]=="0") break;


 for(i=0; i< strlen(num_str)-1; i++)


 {


 tmp=num_str[i];


 num=atoi(&tmp);


sum=sum+num;


}


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


sum=0;


memset(num_str,1002,0);


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:27:5: error: expected identifier or '(' before '?' token
   27 | char???tmp;
      |     ^
main.c:42:15: warning: comparison between pointer and integer
   42 |  if(num_str[0]=="0") break;
      |               ^~
main.c:51:2: error: 'tmp' undeclared (first use in this function)
   51 |  tmp=num_str[i];
      |  ^~~
main.c:51:2: 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,ai,min,max;

   long sum;

???sum=0;

   min=1000000;

???max=-1000000;

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

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

?????????scanf("%d",&ai);   

?????????sum+=ai;   

           if(max<ai){     

                max=ai;   

              }   

            if(min>ai){    

                min=ai;   

              }   

        }  

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

?????? return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???int n,i,ai,min,max;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ???sum=0;
      | ^
main.c:11:4: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 |    min=1000000;
      |    ^~~
      |    main
main.c:11:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:1: error: expected expression before '?' token
   13 | ???max=-1000000;
      | ^
main.c:13:4: error: 'max' undeclared (first use in this function)
   13 | ???max=-1000000;
      |    ^~~
main.c:15:1: error: expected expression before '?' token
   15 | ???scanf("%d",&n);
      | ^
main.c:15:16: error: 'n' undeclared (first use in this function)
   15 | ???scanf("%d",&n);
      |                ^
main.c:17:1: error: expected expression before '?' token
   17 | ???for(i=1;i<=n;i++){
      | ^
main.c:39:1: error: expected expression before '?' token
   39 | ?????? return 0;
      | ^
Language: C

#include<stdio.h>

int main(void) {

???int n,i,ai,min,max;

   long sum;

???sum=0;

   min=1000000;

???max=-1000000;

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

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

?????????scanf("%d",&ai);   

?????????sum+=ai;   

           if(max<ai){     

                max=ai;   

              }   

            if(min>ai){    

                min=ai;   

              }   

        }  

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

?????? return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???int n,i,ai,min,max;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ???sum=0;
      | ^
main.c:11:4: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 |    min=1000000;
      |    ^~~
      |    main
main.c:11:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:1: error: expected expression before '?' token
   13 | ???max=-1000000;
      | ^
main.c:13:4: error: 'max' undeclared (first use in this function)
   13 | ???max=-1000000;
      |    ^~~
main.c:15:1: error: expected expression before '?' token
   15 | ???scanf("%d",&n);
      | ^
main.c:15:16: error: 'n' undeclared (first use in this function)
   15 | ???scanf("%d",&n);
      |                ^
main.c:17:1: error: expected expression before '?' token
   17 | ???for(i=1;i<=n;i++){
      | ^
main.c:39:1: error: expected expression before '?' token
   39 | ?????? return 0;
      | ^
Language: C

#include<stdio.h>

int main(void) {

???int n,i,ai,min,max;

  long sum;

???sum=0;

  min=1000000;

???max=-1000000;

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

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

?????????scanf("%d",&ai);   

?????????sum+=ai;   

           if(min>ai){     

                min=ai;   

              }   

           if(max<ai){    

                max=ai;   

              }   

        }  

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

?????? return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???int n,i,ai,min,max;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ???sum=0;
      | ^
main.c:11:3: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 |   min=1000000;
      |   ^~~
      |   main
main.c:11:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:1: error: expected expression before '?' token
   13 | ???max=-1000000;
      | ^
main.c:13:4: error: 'max' undeclared (first use in this function)
   13 | ???max=-1000000;
      |    ^~~
main.c:15:1: error: expected expression before '?' token
   15 | ???scanf("%d",&n);
      | ^
main.c:15:16: error: 'n' undeclared (first use in this function)
   15 | ???scanf("%d",&n);
      |                ^
main.c:17:1: error: expected expression before '?' token
   17 | ???for(i=1;i<=n;i++){
      | ^
main.c:39:1: error: expected expression before '?' token
   39 | ?????? return 0;
      | ^
Language: C

#include<stdio.h>

int main(void){


int ai,n,i,min,max;


long snm;


scanf("%d",&n);


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


scanf("%d",&ai);


if(i==0){


min=ai;


max=ai;


sum=ai;


}


else{


sum=sum+ai;


if(min>ai){


min=ai;


}


if(max<ai){


max=ai;


}


}


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected expression before '<' token
   15 | for(i=0;<n;i++){
      |         ^
main.c:30:1: error: 'sum' undeclared (first use in this function); did you mean 'snm'?
   30 | sum=ai;
      | ^~~
      | snm
main.c:30:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){


int ai,n,i,min,max;


long snm;


scanf("%d",&n);


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


scanf("%d",&ai);


if(i==0){


min=ai;


max=ai;


sum=ai;


}


else{


sum=sum+ai;


if(min>ai){


min=ai;


}


if(max<ai){


max=ai;


}


}


}


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


return 0;


}

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

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

{
 int i,n;
 int number;
 int sum=0;
 int min=0;
 int max=0;

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

 return 0;
}

Compiler output:
main.c:22:9: error: expected declaration specifiers or '...' before string constant
   22 |  printf("%d %d %d\n",min,max,sum);
      |         ^~~~~~~~~~~~
main.c:22:22: error: unknown type name 'min'
   22 |  printf("%d %d %d\n",min,max,sum);
      |                      ^~~
main.c:22:26: error: unknown type name 'max'
   22 |  printf("%d %d %d\n",min,max,sum);
      |                          ^~~
main.c:22:30: error: unknown type name 'sum'
   22 |  printf("%d %d %d\n",min,max,sum);
      |                              ^~~
main.c:24:2: error: expected identifier or '(' before 'return'
   24 |  return 0;
      |  ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

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

scanf("%d",&n);

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

if(i==0){ min = number; max = number; } if(number<min) min = number; if(number>max) max = number;

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

return 0; }

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(void){ int i,n; int number; long long int sum=0; int min=0; int max=0;
      |                   ^~~
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&n);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&n);
      |            ^
main.c:5:1: error: expected identifier or '(' before 'for'
    5 | for(i=0;i<n;i++){ scanf("%d",&number);
      | ^~~
main.c:5:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 | for(i=0;i<n;i++){ scanf("%d",&number);
      |          ^
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 | for(i=0;i<n;i++){ scanf("%d",&number);
      |              ^~
main.c:9:25: error: expected declaration specifiers or '...' before string constant
    9 | sum += number; } printf("%d %d %lld\n",min,max,sum);
      |                         ^~~~~~~~~~~~~~
main.c:9:40: error: unknown type name 'min'
    9 | sum += number; } printf("%d %d %lld\n",min,max,sum);
      |                                        ^~~
main.c:9:44: error: unknown type name 'max'
    9 | sum += number; } printf("%d %d %lld\n",min,max,sum);
      |                                            ^~~
main.c:9:48: error: unknown type name 'sum'
    9 | sum += number; } printf("%d %d %lld\n",min,max,sum);
      |                                                ^~~
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0; }
      | ^~~~~~
main.c:11:11: error: expected identifier or '(' before '}' token
   11 | return 0; }
      |           ^
Language: C

#include<stdio.h>

int main(void){

int i,n;

int number;

int sum=0;

int min=0;

int max=0;

scanf("%d",&n);

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

scanf("%d",&number);

if(i==0){

min=number;

max=number;

}

if(number<min)min=number;

if(number>max)max=number;

sum+=number;

}

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

return 0;

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

#include<stdio.h>

int main(void){

int i,n;

int number;

long long int sum=0;

int min=0;

int max=0;

scanf("%d",&n);

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

scanf("%d",&number);

if(i==0){

min=number;

max=number;

}

if(number<min)min=number;

if(number>max)max=number;

sum+=number;

}

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

return 0;

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

#include<stdio.h>

int main()
{
int n,i,x,y,z;
sacanf("%d",&n);
{
int a[n];
for(i=0;i<n;i++){
scanf("%d",a[i]);
z+=a[i];
}
x=a[0];
y=a[0];
for(i=1;i<n;i++){
if(x>a[i])x=a[i];
if(y<a[i])y=a[i];
}
printf("%d %d %d\n",x,y,z)
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'sacanf'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
    6 | sacanf("%d",&n);
      | ^~~~~~
      | sscanf
main.c:19:27: error: expected ';' before '}' token
   19 | printf("%d %d %d\n",x,y,z)
      |                           ^
      |                           ;
   20 | }
      | ~
Language: C

#include<stdio.h>

int main()
{
int n,i,x,y,z;
sacanf("%d",&n);
{
int a[n];
for(i=0;i<n;i++){
scanf("%d",a[i]);
z+=a[i];
}
x=a[0];
y=a[0];
for(i=1;i<n;i++){
if(x>a[i])x=a[i];
if(y<a[i])y=a[i];
}
printf("%d %d %d\n",x,y,z);
}
return 0;
}

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

#inlude<stdio>

int main(void){

int i,n;

int number;


long long int sum=0;


int min=0;


int sum=0;


scanf("%d",&n);


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


scaf("%d",&number);


if(i==0){


min=number;


max=number;


}


if(number<min)min=number;


if(number>max)max=number;


sum+=number;


}


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


return 0;


}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<stdio>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:16:5: error: conflicting types for 'sum'; have 'int'
   16 | int sum=0;
      |     ^~~
main.c:10:15: note: previous definition of 'sum' with type 'long long int'
   10 | long long int sum=0;
      |               ^~~
main.c:19:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   19 | scanf("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude<stdio>
main.c:19:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   19 | scanf("%d",&n);
      | ^~~~~
main.c:19:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:25:1: error: implicit declaration of function 'scaf' [-Wimplicit-function-declaration]
   25 | scaf("%d",&number);
      | ^~~~
main.c:34:1: error: 'max' undeclared (first use in this function)
   34 | max=number;
      | ^~~
main.c:34:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:52:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   52 | printf("%d %d %lld\n",min,max,sum);
      | ^~~~~~
main.c:52:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:52:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:52:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio>

int main(void){

int i,n;

int number;


long long int sum=0;


int min=0;


int sum=0;


scanf("%d",&n);


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


scaf("%d",&number);


if(i==0){


min=number;


max=number;


}


if(number<min)min=number;


if(number>max)max=number;


sum+=number;


}


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


return 0;


}

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

#include<stdio.h>

int main(void){

int i,n;

int number;


long long int sum=0;


int min=0;


int max=0;


scanf("%d",&n);


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


scaf("%d",&number);


if(i==0){


min=number;


max=number;


}


if(number<min)min=number;


if(number>max)max=number;


sum+=number;


}


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


return 0;


}

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

#include<stdio.h>

int main(void){

int i,n;

int number;


long long int sum=0;


int min=0;


int sum=0;


scanf("%d",&n);


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


scanf("%d",&number);


if(i==0){


min=number;


max=number;


}


if(number<min)min=number;


if(number>max)max=number;


sum+=number;


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:16:5: error: conflicting types for 'sum'; have 'int'
   16 | int sum=0;
      |     ^~~
main.c:10:15: note: previous definition of 'sum' with type 'long long int'
   10 | long long int sum=0;
      |               ^~~
main.c:34:1: error: 'max' undeclared (first use in this function)
   34 | max=number;
      | ^~~
main.c:34:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>


int main(void){


int i,n;


int number;


int sum;


int min;


int max;


scanf("%d",&n);


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


{


scanf("%d",&number);


if(i==0)


{


min=number;


max=number;


}


if(number<min) min=number;


if(number>max) max=number;


sum+=number;


}


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


return 0;


}




#include <stdio.h>


int main(void){


int i,n;


int number;


int sum;


int min;


int max;


scanf("%d",&n);


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


{


scanf("%d",&number);


if(i==0)


{


min=number;


max=number;


}


if(number<min) min=number;


if(number>max) max=number;


sum+=number;


}


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


return 0;


}

Compiler output:
main.c:75:5: error: redefinition of 'main'
   75 | int main(void){
      |     ^~~~
main.c:4:5: note: previous definition of 'main' with type 'int(void)'
    4 | int main(void){
      |     ^~~~
Language: C

#include<stdio.h>

int main (void){

 int n,i,a,b,ai[10001];

 long c;


 scanf("%d",&n);


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


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


  if(i==0){


   a=ai[0];


  b=ai[0];


  }


 else{


  if(a<=ai[i])[


   a=ai[i];


  }


  if(b>=ai[i]){


   b=ai[i];


   }


  }


 } 


  c=0;


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


 c+=ai[i];


 }


 printf("%d %d %ld\n",b,a,c);


 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:34:15: error: expected expression before '[' token
   34 |   if(a<=ai[i])[
      |               ^
main.c:37:12: error: expected ';' before '}' token
   37 |    a=ai[i];
      |            ^
      |            ;
......
   40 |   }
      |   ~         
main.c: At top level:
main.c:58:3: warning: data definition has no type or storage class
   58 |   c=0;
      |   ^
main.c:58:3: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:61:2: error: expected identifier or '(' before 'for'
   61 |  for(i=0;i<n;i++){
      |  ^~~
main.c:61:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   61 |  for(i=0;i<n;i++){
      |           ^
main.c:61:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   61 |  for(i=0;i<n;i++){
      |               ^~
main.c:70:9: error: expected declaration specifiers or '...' before string constant
   70 |  printf("%d %d %ld\n",b,a,c);
      |         ^~~~~~~~~~~~~
main.c:70:23: error: unknown type name 'b'
   70 |  printf("%d %d %ld\n",b,a,c);
      |                       ^
main.c:70:25: error: unknown type name 'a'
   70 |  printf("%d %d %ld\n",b,a,c);
      |                         ^
main.c:70:27: error: expected declaration specifiers or '...' before 'c'
   70 |  printf("%d %d %ld\n",b,a,c);
      |                           ^
main.c:73:2: error: expected identifier or '(' before 'return'
   73 |  return 0;
      |  ^~~~~~
main.c:76:1: error: expected identifier or '(' before '}' token
   76 | }
      | ^
Language: C

#include <stdio.h>

int main (void)

{

int a[10000], i, b=0,c=0,d=0;

scanf("%d"&n);

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

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

}

c=a[0];

d=a[0];

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

b+=a[i];

if(0<a[i]){

c=a[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:9:12: error: 'n' undeclared (first use in this function)
    9 | scanf("%d"&n);
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:37:8: warning: missing terminating " character
   37 | printf("%d %d %d?\n,d,c,b);
      |        ^
main.c:37:8: error: missing terminating " character
   37 | printf("%d %d %d?\n,d,c,b);
      |        ^~~~~~~~~~~~~~~~~~~~
main.c:39:1: error: expected expression before 'return'
   39 | return 0;
      | ^~~~~~
main.c:39:10: error: expected ';' before '}' token
   39 | return 0;
      |          ^
      |          ;
   40 | 
   41 | }
      | ~         
main.c:41:1: error: expected declaration or statement at end of input
   41 | }
      | ^
Language: C

#include <stdio.h>

int main (void)

{

int a[10000], i, b=0,c=0,d=0;

scanf("%d"&n);

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

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

}

c=a[0];

d=a[0];

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

b+=a[i];

if(0<a[i]){

c=a[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:9:12: error: 'n' undeclared (first use in this function)
    9 | scanf("%d"&n);
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:1: error: expected declaration or statement at end of input
   41 | }
      | ^
Language: C

#include <stdio.h>

int main (void)

{

int a[10000], i, b=0,c=0,d=0;

scanf("%d"&n);

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

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

}

c=a[0];

d=a[0];

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

b+=a[i];

if(0<a[i]){

c=a[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:9:12: error: 'n' undeclared (first use in this function)
    9 | scanf("%d"&n);
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:1: error: expected declaration or statement at end of input
   41 | }
      | ^
Language: C

#include <stdio.h>

int main (void)

{

int a[10000], i, b=0,c=0,d=0;

scanf("%d"&n);

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

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

}

c=a[0];

d=a[0];

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

b+=a[i];

if(0<a[i]){

c=a[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:9:12: error: 'n' undeclared (first use in this function)
    9 | scanf("%d"&n);
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (void)

{

int a[10000], i,n,b=0,c=0,d=0;

scanf("%d"&n);

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

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

}

c=a[0];

d=a[0];

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

b+=a[i];

if(0<a[i]){

c=a[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:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:41:1: error: expected declaration or statement at end of input
   41 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

inr n,ai,i,sum,nin,max;

n=0;

ai=0;

sum=0;

min=0;

max=0;

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

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

scanf("%d ",ai);

sum += ai;

if(i==0){

min =ai;

max = ai;

}

if(min>ai){

min=ai;

}else if(max<ai){

max=ai;

}

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inr'; did you mean 'int'?
    5 | inr n,ai,i,sum,nin,max;
      | ^~~
      | int
main.c:13:1: error: 'min' undeclared (first use in this function); did you mean 'nin'?
   13 | min=0;
      | ^~~
      | nin
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){

inr n,ai,i,sum,min,max;

n=0;

ai=0;

sum=0;

min=0;

max=0;

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

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

scanf("%d ",ai);

sum += ai;

if(i==0){

min =ai;

max = ai;

}

if(min>ai){

min=ai;

}else if(max<ai){

max=ai;

}

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inr'; did you mean 'int'?
    5 | inr n,ai,i,sum,min,max;
      | ^~~
      | int
Language: C

#include<stdio.h>

int main(void){

inr n,ai,i,sum,min,max;

n=0;

ai=0;

sum=0;

min=0;

max=0;

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

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

scanf("%d ",&ai);

sum += ai;

if(i==0){

min =ai;

max = ai;

}

if(min>ai){

min=ai;

}else if(max<ai){

max=ai;

}

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inr'; did you mean 'int'?
    5 | inr n,ai,i,sum,min,max;
      | ^~~
      | int
Language: C

#include<stdio.h>

int main(void){

inr n,ai,i,sum,min,max;

n=0;

ai=0;

sum=0;

min=0;

max=0;

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

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

scanf("%d ",&ai);

sum += ai;

if(i==0){

min =ai;

max = ai;

}

if(min>ai){

min=ai;

}else if(max<ai){

max=ai;

}

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inr'; did you mean 'int'?
    5 | inr n,ai,i,sum,min,max;
      | ^~~
      | int
Language: C

#include<stdio.h>

int main(void){

int n,ai,i,amax,amin,sum;

scanf("%d",&n);

scanf("%d",&ai);

amax=0;

amin=0;

sum=0;

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

if(i<=n-2){

scanf("%d ",&ai);

}else if(i=n-1){

scanf("%d",&ai);

sum+=ai;

if(ai<amin){

amin=ai;

}

if(ai>amax){

amax=ai;

}

}

printf("%d %d %d\n",amin,amax,sum);

return 0;

}

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

include<stdio.h>
int main(void)
{
	int i,n,ave;
	int max,min,sum=0;
	int array[1000];
	scanf("%d",&n);
	for (i=1;i<=n;i++){
		scanf("%d",&array[i]);
		
	}
	
	/*?????§???????¨????*/
	max=array[1];
	for(i=1;i<=n;i++){
		if(max<array[i])
		max=array[i];
	}
	/*????°????????¨????*/
	min=array[1];
	for(i=1;i<=n;i++){
		if(min>array[i])
		min=array[i];
		
	}		
	/*?????????????¨????*/
	for(i=1;i<=n;i++){
		sum=sum+array[i];
	}
	printf("%d %d %d",min ,max,sum);
	return 0;
	
}

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

#include <stdio.h>

int main( void )
{
	int number, max_num, min_num, tmp, sum;
	int Num_Cou;
	int *arry;

	scanf( "%d", &number );

	arry = (int*)calloc( number, sizof( int ) );
	if( arry == NUUL )
	{
		exit( -1 );
	}

	sum = 0;
	max_num = 0;
	min_num = 0;

	for( Num_Cou = 0; Num_Cou < number; Num_Cou++ )
	{
		scanf( "%d", &tmp );
		
		if( Num_Cou == 0 )
		{
			max_num = tmp;
			min_num = tmp;
		}
		else
		{
			if( tmp > max_num )
			{
				max_num = tmp;
			}
			else
			if( tmp < min_num )
			{
				min_num = tmp;
			}
		}
		
		sum = sum + tmp;
	}

	printf( "%d %d %d\n", min_num, max_num, sum );

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                      ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:11:22: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                      ^~~~~~
main.c:11:22: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:11:38: error: implicit declaration of function 'sizof' [-Wimplicit-function-declaration]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                                      ^~~~~
main.c:11:45: error: expected expression before 'int'
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                                             ^~~
main.c:12:21: error: 'NUUL' undeclared (first use in this function); did you mean 'NULL'?
   12 |         if( arry == NUUL )
      |                     ^~~~
      |                     NULL
main.c:12:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   14 |                 exit( -1 );
      |                 ^~~~
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

int main( void )
{
	int number, max_num, min_num, tmp, sum;
	int Num_Cou;
	int *arry;

	scanf( "%d", &number );

	arry = (int*)calloc( number, sizof( int ) );
	if( arry == NULL )
	{
		exit( -1 );
	}

	sum = 0;
	max_num = 0;
	min_num = 0;

	for( Num_Cou = 0; Num_Cou < number; Num_Cou++ )
	{
		scanf( "%d", &tmp );
		
		if( Num_Cou == 0 )
		{
			max_num = tmp;
			min_num = tmp;
		}
		else
		{
			if( tmp > max_num )
			{
				max_num = tmp;
			}
			else
			if( tmp < min_num )
			{
				min_num = tmp;
			}
		}
		
		sum = sum + tmp;
	}

	printf( "%d %d %d\n", min_num, max_num, sum );

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                      ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:11:22: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                      ^~~~~~
main.c:11:22: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:11:38: error: implicit declaration of function 'sizof' [-Wimplicit-function-declaration]
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                                      ^~~~~
main.c:11:45: error: expected expression before 'int'
   11 |         arry = (int*)calloc( number, sizof( int ) );
      |                                             ^~~
main.c:14:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   14 |                 exit( -1 );
      |                 ^~~~
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include <stdio.h>

int main( void )
{
	int number, max_num, min_num, tmp, sum;
	int Num_Cou;
	int *arry;

	scanf( "%d", &number );

	arry = (int *)calloc( number, sizof(int) );
	if( arry == NULL )
	{
		exit( -1 );
	}

	sum = 0;
	max_num = 0;
	min_num = 0;

	for( Num_Cou = 0; Num_Cou < number; Num_Cou++ )
	{
		scanf( "%d", &tmp );
		
		if( Num_Cou == 0 )
		{
			max_num = tmp;
			min_num = tmp;
		}
		else
		{
			if( tmp > max_num )
			{
				max_num = tmp;
			}
			else
			if( tmp < min_num )
			{
				min_num = tmp;
			}
		}
		
		sum = sum + tmp;
	}

	printf( "%d %d %d\n", min_num, max_num, sum );

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
   11 |         arry = (int *)calloc( number, sizof(int) );
      |                       ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:11:23: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch]
   11 |         arry = (int *)calloc( number, sizof(int) );
      |                       ^~~~~~
main.c:11:23: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:11:39: error: implicit declaration of function 'sizof' [-Wimplicit-function-declaration]
   11 |         arry = (int *)calloc( number, sizof(int) );
      |                                       ^~~~~
main.c:11:45: error: expected expression before 'int'
   11 |         arry = (int *)calloc( number, sizof(int) );
      |                                             ^~~
main.c:14:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   14 |                 exit( -1 );
      |                 ^~~~
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
main.c:14:17: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:2:5: error: unknown type name 'longlong'
    2 |     longlong n,i=0,a,min,max,sum=0;
      |     ^~~~~~~~
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d",&n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d",&n);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:18:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |     printf("%d %d %d\n",min,max,sum);
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void){
	int i,n,sum,min,max,num;
	do{
		scanf("%d",&n);
	}while(n<1 || n>10000);

	for(i=0;i<n;i++){
		scnaf("%d",&num);
		if(n==0){
			min=num;
			max=num;
		}
		if(num>=-1000000 && num<=1000000){
			sum+=num;
			if(num<min)
				min=num;
			if(num>max)
				max=num;
		}
	}
	printf("%d %d %d",min,max,sum);
	return 0;
}

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

#include<stdio.h>

int main(void)

{

       int i,n;

       int number;

       int sum =0;

       int min=0;

       int max=0;

       scanf("%d"&n);

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

       {

             scanf("%d",&number);

             if(i==0)

             {

                     min=number;

                     max=number;

              }


            if(number<min) min=number;

           if(number>max) max=number;

           sum+=number;

           }

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

          return 0;

}

Compiler output:
main.c: In function 'main':
main.c:17:18: error: invalid operands to binary & (have 'char *' and 'int')
   17 |        scanf("%d"&n);
      |              ~~~~^
      |              |
      |              char *
main.c:19:18: error: 'ni' undeclared (first use in this function); did you mean 'n'?
   19 |        for(i=0;i<ni++)
      |                  ^~
      |                  n
main.c:19:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:22: error: expected ';' before ')' token
   19 |        for(i=0;i<ni++)
      |                      ^
      |                      ;
Language: C

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

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

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

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

#include<stdio.h>
int main() 
{
	int i, n, a;
	long sum = 0;
	int max = -1000000, int min = 1000000;
	scanf("%d", &n);
	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\n", min, max, sum);
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected identifier or '(' before 'int'
    6 |         int max = -1000000, int min = 1000000;
      |                             ^~~
main.c:14:25: error: 'min' undeclared (first use in this function); did you mean 'main'?
   14 |                 if (a < min)
      |                         ^~~
      |                         main
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected identifier or '(' before 'int'
    6 |         int max = -1000000, int min = 1000000;
      |                             ^~~
main.c:14:25: error: 'min' undeclared (first use in this function); did you mean 'main'?
   14 |                 if (a < min)
      |                         ^~~
      |                         main
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected identifier or '(' before 'int'
    6 |         int max = -1000000, int min = 1000000;
      |                             ^~~
main.c:14:25: error: 'min' undeclared (first use in this function); did you mean 'main'?
   14 |                 if (a < min)
      |                         ^~~
      |                         main
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

	scanf("%d",&i);
	printf("%d\n",i);

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

	printf("\n");

	min = a[0];

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

	max = a[0];

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

	sum = 0;

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: array size missing in 'a'
    6 |         long a[];
      |              ^
main.c:12:14: error: 'j' undeclared (first use in this function)
   12 |         for (j = 0; j < i; j++)
      |              ^
main.c:12:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

	scanf("%d",&i);
	printf("%d\n",i);

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

	printf("\n");

	min = a[0];

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

	max = a[0];

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

	sum = 0;

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: array size missing in 'a'
    6 |         int a[];
      |             ^
main.c:12:14: error: 'j' undeclared (first use in this function)
   12 |         for (j = 0; j < i; j++)
      |              ^
main.c:12:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int i,j;
	int a[];
	int min,max,sum;

	scanf("%d",&i);
	printf("%d\n",i);

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

	printf("\n");

	min = a[0];

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

	max = a[0];

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

	sum = 0;

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

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

	return 0;
}

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