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

#include <stdio.h>
????
int main(void)
????
{
????
????int ai,n,i,b,s;
????
????double w;
????
????
????b=-1000000;
????
????
????s=1000000;
????
????
????scanf("%d",&n);
????
????for(i=0;i<n;i++)
????
????
????{
????
????
????????scanf("%d",&ai);
????
????
????????if(ai<s)
????
????
????????{
????
????
????????????s=ai;
????
????
????????}
????
????
????????if(b<ai)
????
????
????????{
????
????
????????????b=ai;
????
????
????????}
????
????
????????w=w+ai;
????
????
????}
????
????
????printf("%d %d %0.lf\n",s,b,w);
????
????
????return 0;
????
????
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ????
      | ^
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:3:1: error: expected expression before '?' token
    3 | ????????int i,n;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ????????int number;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????long long int sum=0;
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ????????int min=0;
      | ^
main.c:7:1: error: expected expression before '?' token
    7 | ????????int max=0;
      | ^
main.c:8:1: error: expected expression before '?' token
    8 | ??????????
      | ^
main.c:9:21: error: 'n' undeclared (first use in this function)
    9 | ????????scanf("%d",&n);
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:1: error: expected expression before '?' token
   10 | ??????????
      | ^
main.c:27:1: error: expected expression before '?' token
   27 | ??????????
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include<stdio.h>
int main(void){
int ai,n,i,min,max;
long??sum;
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:4:5: error: expected identifier or '(' before '?' token
    4 | long??sum;
      |     ^
main.c:11:1: error: 'sum' undeclared (first use in this function)
   11 | sum=ai;}
      | ^~~
main.c:11: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,kazu;
????????long sum=0,a,min=1000001,max=-1000001;
????????scanf("%d",&kazu);
??????????
????????for(i=0;i<kazu;i++){
????????????????scanf("%ld",&a);
????????????????if(a<=min){
????????????????min=a;
????????????????}
????????????????if(a>=max){
????????????????max=a;
????????????????}
????????????????sum=sum+a;
????????}
????????printf("%d %d %ld\n",min,max,sum);
????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ????????int i,kazu;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ????????long sum=0,a,min=1000001,max=-1000001;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf("%d",&kazu);
      | ^
main.c:5:21: error: 'kazu' undeclared (first use in this function)
    5 | ????????scanf("%d",&kazu);
      |                     ^~~~
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: expected expression before '?' token
    6 | ??????????
      | ^
main.c:18:1: error: expected expression before '?' token
   18 | ????return 0;
      | ^
Language: C

#include <stdio.h>
??
int main(void)
??
{
??
????int ai,n,i,b,s;
??
????double w;
??
??
????b=-1000000;
??
??
????s=1000000;
??
??
????scanf("%d",&n);
??
????for(i=0;i<n;i++)
??
??
????{
??
??
????????scanf("%d",&ai);
??
??
????????if(ai<s)
??
??
????????{
??
??
????????????s=ai;
??
??
????????}
??
??
????????if(b<ai)
??
??
????????{
??
??
????????????b=ai;
??
??
????????}
??
??
????????w=w+ai;
??
??
????}
??
??
????printf("%d %d %0.lf\n",s,b,w);
??
??
????return 0;
??
??
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C


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

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

#include<stdio.h>
??
int main(void){
??
int ai,n,i,min,max;
??
long sum;
??
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:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
main.c:49:2: error: expected identifier or '(' before '?' token
   49 | }??
      |  ^
Language: C

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

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ????
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:17:9: error: expected ';' before ':' token
   17 | 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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ????????
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: unknown type name 'longlong'
    4 | longlong sum;
      | ^~~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before 'scanf'
    9 |     scanf("%d", &n)
      |                    ^
      |                    ;
   10 |     scanf("%d", &a[0]);
      |     ~~~~~
Language: C

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

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

 scanf_s("%d", &a);

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

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

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:2: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
   11 |  scanf_s("%d", &a);
      |  ^~~~~~~
main.c:24:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |  printf("%d %d %d",min, max, sum);
      |  ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:24:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 |  printf("%d %d %d",min, max, sum);
      |  ^~~~~~
main.c:24:2: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

%d", &n);
	i = 0;
	min = 1000000;
	max = -1000000;
	sum = 0;

	for(; n > i; i++ ){
		scanf("%ld", &su);

		if(su < min){
			min = su;
		}
	
		if(su > max){
			max = su;
		}
	
		sum = sum + su;
	}
	printf("%d %d %d\n", min, max, sum);
	return 0;
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '%' token
    1 | %d", &n);
      | ^
main.c:1:3: warning: missing terminating " character
    1 | %d", &n);
      |   ^
main.c:1:3: error: missing terminating " character
    1 | %d", &n);
      |   ^~~~~~~
main.c:3:9: warning: data definition has no type or storage class
    3 |         min = 1000000;
      |         ^~~
main.c:3:9: error: type defaults to 'int' in declaration of 'min' [-Wimplicit-int]
main.c:4:9: warning: data definition has no type or storage class
    4 |         max = -1000000;
      |         ^~~
main.c:4:9: error: type defaults to 'int' in declaration of 'max' [-Wimplicit-int]
main.c:5:9: warning: data definition has no type or storage class
    5 |         sum = 0;
      |         ^~~
main.c:5:9: error: type defaults to 'int' in declaration of 'sum' [-Wimplicit-int]
main.c:7:9: error: expected identifier or '(' before 'for'
    7 |         for(; n > i; i++ ){
      |         ^~~
main.c:7:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
    7 |         for(; n > i; i++ ){
      |                 ^
main.c:7:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 |         for(; n > i; i++ ){
      |                       ^~
main.c:20:16: error: expected declaration specifiers or '...' before string constant
   20 |         printf("%d %d %d\n", min, max, sum);
      |                ^~~~~~~~~~~~
main.c:20:30: error: expected declaration specifiers or '...' before 'min'
   20 |         printf("%d %d %d\n", min, max, sum);
      |                              ^~~
main.c:20:35: error: expected declaration specifiers or '...' before 'max'
   20 |         printf("%d %d %d\n", min, max, sum);
      |                                   ^~~
main.c:20:40: error: expected declaration specifiers or '...' before 'sum'
   20 |         printf("%d %d %d\n", min, max, sum);
      |                                        ^~~
main.c:21:9: error: expected identifier or '(' before 'return'
   21 |         return 0;
      |         ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

lude <stdio.h>

int main(void){
	int n, i, min, su, max;
	long int sum;
	scanf("%d", &n);
	min = 1000000;
	max = -1000000;
	sum = 0;

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

		if(su < min){
			min = su;
		}
	
		if(su > max){
			max = su;
		}
	
		sum = sum + su;
	}
	printf("%d %d %ld\n", min, max, sum);
	return 0;
}

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

#include <stdio.h>

int main()
{

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d "&a);
      |               ~~~~~^
      |               |
      |               char *
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:2: error: unknown type name 'bigint'
    5 |  bigint sum,min,max;
      |  ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int   max=0,min=0;
  int   n=0,a=0,b=0,0;
  long long int mix=0;

  scanf("%d", &c);

  while (n < c) {
    n++;
  scanf("%d",&a);
  mix = mix + a;
  b = a;
  if (n == 1)   min = a;
  if (a >= max) max = a;
  if (b <= min) min = b;
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected identifier or '(' before numeric constant
    6 |   int   n=0,a=0,b=0,0;
      |                     ^
main.c:9:16: error: 'c' undeclared (first use in this function)
    9 |   scanf("%d", &c);
      |                ^
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(int argc, const char * argv[]) {
    int n;
    scanf("%d",&n);
    
    int i,a,max,min;
    
    long long int sum = 0;
    scanf("%d",&a);
    max = a;
    min = a;
    sum = a+sum
    for (i = 0; i < n-1; i++)
    {
        scanf("%d",&a);
        if (a < min) {
            min = a;
        }
        if (max < a) {
            max = a;
        }
        sum = sum+a;
    }
    printf("%d %d %lld\n",min,max,sum);
    return 0;

}
    
   

Compiler output:
main.c: In function 'main':
main.c:13:16: error: expected ';' before 'for'
   13 |     sum = a+sum
      |                ^
      |                ;
   14 |     for (i = 0; i < n-1; i++)
      |     ~~~
Language: C

#include<stdio.h>
int main (void){
int aa,i,a,aaa,ai[10001];
long c;
 scanf("%d",&aa);
 for(i=0;i<aa;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]){
 aaa=ai[i];
 }
 }
 } 
 c=0;
 for(i=0;i<aa;i++){
 c+=ai[i];
 }
printf("%d %d %ld\n",aaa,a,c);
return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: array size missing in 'a'
    7 |  int a[];
      |      ^
main.c:22:10: error: expected expression before '[' token
   22 |      max=[aj];
      |          ^
main.c:22:11: error: 'aj' undeclared (first use in this function); did you mean 'j'?
   22 |      max=[aj];
      |           ^~
      |           j
main.c:22:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>
main(){
	long long a[10000];
	int N,max,min,sum;
	scanf("%d",&N);
	for(int i = 0; i < N; i++)
	{
		scanf("%d",a[i]);
		max=a[0];
		min=a[0];
		sum=a[0];
		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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
Language: C

#include <stdio.h>
main(){
	long long a[10000];
	int N,max,min,sum;
	scanf("%d",&N);
	for(int i = 0; i < N; i++)
	{
		scanf("%d",a[i]);
		max=a[0];
		min=a[0];
		sum=a[0];
		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);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
Language: C

#include <cstdio>

int a[15000];

int main()
{
	int N, min = 99999999, max = -99999999;
	long long int sum = 0;

	scanf(" %d", &N);

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

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

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

	return 0;
}

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

#include <stdio.h>

int main(void){
	double i, n;
	double arr[100];

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

	for(i=0;i<n;i++){
		if(i)printf(" ");
		printf("%d", arr[n-i-1]);
	}

	printf("\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:34: error: array subscript is not an integer
    9 |                 scanf(" %d", &arr[i]);
      |                                  ^
main.c:14:33: error: array subscript is not an integer
   14 |                 printf("%d", arr[n-i-1]);
      |                                 ^
Language: C

#include <stdio.h>


int main(void)
 {

	int n;
	long min,max,sum=0;

	scanf("%d",n);
	for(i=0;i<n;i++){
	scanf("%d",&a);
	sum +=a;
	if(i==0){
		min=a;
		max=a;
	}
	else{
		if(max<a)
		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:11:13: error: 'i' undeclared (first use in this function)
   11 |         for(i=0;i<n;i++){
      |             ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:21: error: 'a' undeclared (first use in this function)
   12 |         scanf("%d",&a);
      |                     ^
main.c: At top level:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:32: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                ^~~
main.c:27:36: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                    ^~~
main.c:27:40: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                        ^~~
main.c:30:9: error: expected identifier or '(' before 'return'
   30 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>


int main(void)
 {

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

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

	return 0;

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:32: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                ^~~
main.c:27:36: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                    ^~~
main.c:27:40: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n",min,max,sum);
      |                                        ^~~
main.c:30:9: error: expected identifier or '(' before 'return'
   30 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>


int main(void)
 {

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

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

}

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:33: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                 ^~~
main.c:27:38: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                      ^~~
main.c:27:43: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                           ^~~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


int main(void)
 {

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

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

}

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:33: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                 ^~~
main.c:27:38: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                      ^~~
main.c:27:43: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                           ^~~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


int main(void)
 {

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

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

}

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:33: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                 ^~~
main.c:27:38: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                      ^~~
main.c:27:43: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                           ^~~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


int main(void)
 {

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

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

}

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

#include <stdio.h>


int main(void)
 {

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

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

}

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%d %d %ld\n", min, max, sum);
      |                ^~~~~~~~~~~~~
main.c:27:31: error: unknown type name 'min'
   27 |         printf("%d %d %ld\n", min, max, sum);
      |                               ^~~
main.c:27:36: error: unknown type name 'max'
   27 |         printf("%d %d %ld\n", min, max, sum);
      |                                    ^~~
main.c:27:41: error: unknown type name 'sum'
   27 |         printf("%d %d %ld\n", min, max, sum);
      |                                         ^~~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include <stdio.h>


int main(void)
 {

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

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

}

Compiler output:
main.c:27:16: error: expected declaration specifiers or '...' before string constant
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                ^~~~~~~~~~~~~~~
main.c:27:33: error: unknown type name 'min'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                 ^~~
main.c:27:38: error: unknown type name 'max'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                      ^~~
main.c:27:43: error: unknown type name 'sum'
   27 |         printf("%ld %ld %ld\n", min, max, sum);
      |                                           ^~~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return 0;
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

int n,a;
	long saisyou=1000000,saidai=-1000000,goukei=0;
	scanf("%d",&n);
	while(n>0)
	{
	scanf("%d",&a);
	goukei+=a;
	if(a>saidai) saidai=a;
	if(a<saisyou) saisyou=a;
	n--;
	}
	
	printf("%d %d %d\n",saisyou,saidai,goukei);
	return 0;
}

Compiler output:
main.c:3:15: error: expected declaration specifiers or '...' before string constant
    3 |         scanf("%d",&n);
      |               ^~~~
main.c:3:20: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d",&n);
      |                    ^
main.c:4:9: error: expected identifier or '(' before 'while'
    4 |         while(n>0)
      |         ^~~~~
main.c:13:16: error: expected declaration specifiers or '...' before string constant
   13 |         printf("%d %d %d\n",saisyou,saidai,goukei);
      |                ^~~~~~~~~~~~
main.c:13:29: error: expected declaration specifiers or '...' before 'saisyou'
   13 |         printf("%d %d %d\n",saisyou,saidai,goukei);
      |                             ^~~~~~~
main.c:13:37: error: expected declaration specifiers or '...' before 'saidai'
   13 |         printf("%d %d %d\n",saisyou,saidai,goukei);
      |                                     ^~~~~~
main.c:13:44: error: expected declaration specifiers or '...' before 'goukei'
   13 |         printf("%d %d %d\n",saisyou,saidai,goukei);
      |                                            ^~~~~~
main.c:14:9: error: expected identifier or '(' before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int n,a;saisyou=1000000,saidai=-1000000;
	long goukei=0;
	scanf("%d",&n);
	while(n>0){
	scanf("%d",&a);
	if(a<saisyou) saisyou=a;
	if(a>saidai) saidai=a;
	goukei+=a;
	n--;
	}
	printf("%d %d %ld\n",saisyou,saidai,goukei);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'saisyou' undeclared (first use in this function)
    5 |         int n,a;saisyou=1000000,saidai=-1000000;
      |                 ^~~~~~~
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:33: error: 'saidai' undeclared (first use in this function)
    5 |         int n,a;saisyou=1000000,saidai=-1000000;
      |                                 ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:21: error: subscripted value is neither array nor pointer nor vector
    9 |       scanf("%lf",&n[i]);
      |                     ^
main.c:11:16: error: subscripted value is neither array nor pointer nor vector
   11 |   sum=max=min=i[0];
      |                ^
main.c:14:11: error: subscripted value is neither array nor pointer nor vector
   14 |       if(n[i]>max) max=n[i];
      |           ^
main.c:14:25: error: subscripted value is neither array nor pointer nor vector
   14 |       if(n[i]>max) max=n[i];
      |                         ^
main.c:15:11: error: subscripted value is neither array nor pointer nor vector
   15 |       if(n[i]<min) min=n[i];
      |           ^
main.c:15:25: error: subscripted value is neither array nor pointer nor vector
   15 |       if(n[i]<min) min=n[i];
      |                         ^
main.c:16:13: error: subscripted value is neither array nor pointer nor vector
   16 |       sum+=n[i];
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:10: error: conflicting types for 'n'; have 'double[10000]'
    5 |   double n[10000],min,max,sum;
      |          ^
main.c:4:7: note: previous declaration of 'n' with type 'int'
    4 |   int n,i;
      |       ^
main.c:11:16: error: subscripted value is neither array nor pointer nor vector
   11 |   sum=max=min=i[0];
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:16: error: subscripted value is neither array nor pointer nor vector
   11 |   sum=max=min=i[0];
      |                ^
Language: C

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

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

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

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

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i,n;
	long long max=0, min=999999999999999, sum=0, a;

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

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

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

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i,n;
	long long max=0, min=99999999999999, sum=0, a;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}

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

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

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

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

	return(0);
}

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

#include <stdio.h>
int main (void){
int min,max,n,v,a[10000];
long long int sun,
scanf ("%d",&n);

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

max=a[0];
v=1;
while(1){
        if(v==n)break;
    if(max<a[v]){
        max=a[v];
    }
v++;
}
min=a[0];
v=1;
while(1){
        if(v==n)break;
    if(min>a[v]){
        min=a[v];
    }
v++;
}
v=0;
while(1){
        if(v==n)break;

        sun+=a[v];

v++;
}

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



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | scanf ("%d",&n);
      |        ^~~~
main.c:5:13: error: expected declaration specifiers or '...' before '&' token
    5 | scanf ("%d",&n);
      |             ^
Language: C

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
  int n, max = -INT_MAX, min = INT_MAX, in;
  long long sum = 0;
 
  cin >> n;
  for(int i = 0 ; i < n ; i++){
    cin >> in;
    max = std::max(max, in);
    min = std::min(min, in);
    sum += in;
  }
  cout << min << " " << max << " " << sum << endl;
 
  return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:7: error: expected expression before '?' token
   13 |   max=???1000000;
      |       ^
Language: C

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: 'I' undeclared (first use in this function)
   13 |   for(I=0; i<n; i++){
      |       ^
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:21: error: expected ';' before 'return'
   25 | printf("%d\n" ,sum )
      |                     ^
      |                     ;
   26 | 
   27 |   return 0;
      |   ~~~~~~
Language: C

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

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

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: 'I' undeclared (first use in this function)
   14 |     if(max<=a[I]){
      |               ^
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in