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

#include <stdio.h>

int main (void){

int n,i,a[i],max=0,min=0,totall=0;

scanf("%n"&n);

i=n;

max=a[i];

min=a[i];

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%n"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:33:8: warning: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^
main.c:33:8: error: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:35:1: error: expected expression before 'return'
   35 | return 0;
      | ^~~~~~
main.c:35:10: error: expected ';' before '}' token
   35 | return 0;
      |          ^
      |          ;
   36 | 
   37 | }
      | ~
Language: C

#include <stdio.h>

int main (void){

int n,i,a[i],max=0,min=0,totall=0;

scanf("%d"&n);

i=n;

max=a[i];

min=a[i];

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&n);
      |       ~~~~^
      |       |
      |       char *
main.c:33:8: warning: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^
main.c:33:8: error: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:35:1: error: expected expression before 'return'
   35 | return 0;
      | ^~~~~~
main.c:35:10: error: expected ';' before '}' token
   35 | return 0;
      |          ^
      |          ;
   36 | 
   37 | }
      | ~
Language: C

#include <stdio.h>

int main (void){

int n,i,a[i],max=0,min=0,totall=0;

scanf("%d",&n);

i=n;

max=a[i];

min=a[i];

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:33:8: warning: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^
main.c:33:8: error: missing terminating " character
   33 | printf("%d %d %d\n,max,min,totall);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:35:1: error: expected expression before 'return'
   35 | return 0;
      | ^~~~~~
main.c:35:10: error: expected ';' before '}' token
   35 | return 0;
      |          ^
      |          ;
   36 | 
   37 | }
      | ~
Language: C

#include <stdio.h>

int main (void){

int n,i,a[i],max=0,min=0,totall=0;

scanf("%d",&n);

i=n;

max=0;

min=0;

totall=0;

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:35:8: warning: missing terminating " character
   35 | printf("%d %d %d\n,max,min,totall);
      |        ^
main.c:35:8: error: missing terminating " character
   35 | printf("%d %d %d\n,max,min,totall);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:37:1: error: expected expression before 'return'
   37 | return 0;
      | ^~~~~~
main.c:37:10: error: expected ';' before '}' token
   37 | return 0;
      |          ^
      |          ;
   38 | 
   39 | }
      | ~
Language: C

#include <stdio.h>

int main (void){

int n,i,a[i],max=0,min=0,totall=0;

scanf("%d",&n);

i=n;

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:29:8: warning: missing terminating " character
   29 | printf("%d %d %d\n,max,min,totall);
      |        ^
main.c:29:8: error: missing terminating " character
   29 | printf("%d %d %d\n,max,min,totall);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:31:1: error: expected expression before 'return'
   31 | return 0;
      | ^~~~~~
main.c:31:10: error: expected ';' before '}' token
   31 | return 0;
      |          ^
      |          ;
   32 | 
   33 | }
      | ~
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:39:11: error: expected expression before '[' token
   39 | if(max<ai)[
      |           ^
main.c:42:8: error: expected ';' before '}' token
   42 | max=ai;
      |        ^
      |        ;
......
   45 | }
      | ~       
main.c: At top level:
main.c:54:8: error: expected declaration specifiers or '...' before string constant
   54 | printf("%d %d %.0lf\n",min,max,sum);
      |        ^~~~~~~~~~~~~~~
main.c:54:24: error: unknown type name 'min'
   54 | printf("%d %d %.0lf\n",min,max,sum);
      |                        ^~~
main.c:54:28: error: unknown type name 'max'
   54 | printf("%d %d %.0lf\n",min,max,sum);
      |                            ^~~
main.c:54:32: error: unknown type name 'sum'
   54 | printf("%d %d %.0lf\n",min,max,sum);
      |                                ^~~
main.c:57:1: error: expected identifier or '(' before 'return'
   57 | return 0;
      | ^~~~~~
main.c:60:1: error: expected identifier or '(' before '}' token
   60 | }
      | ^
Language: C

#include<stdio.h>

int main(void){


int n,a,b,c,i;


long d=0;


b=-1000000;


c=1000000;


scanf("%d",&n);


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


scanf("%d",&i);


if(b<i){


b=i;


}


return 0;


}

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

#include<stdio.h>

int main(void){


int n,a,b,c,i;


long d=0;


b=-1000000;


c=1000000;


scanf("%d",&n);


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


scanf("%d"&i);


if(b<i){


b=i;


}


if(c>i){


c=1;


}


d+=i;


}


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


return 0;


}

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

#include<stdio.h>

int main(void){


int n,a,b,c,i;


long d=0;


b=-1000000;


c=1000000;


scanf("%d",&n);


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


scanf("%d"&i);


if(b<i){


b=i;


}


if(c>i){


c=i;


}


d+=i;


}


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


return 0;


}

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

#include<stdio.h>

int main(void){


int n,a,b,c,i;


long d=0;


b=-1000000;


c=1000000;


scanf("%d",&n);


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


scanf("%d"&i);


if(b<i){


b=i;


}


if(c>i){


c=i;


}


d+=i;


}


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


return 0;


}

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

int main(void){


int i, n, a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum = 0;


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


if ( a[i] < min ){


min = a[i];


}else if ( a[i] > max){


max = a[i];


}


sum += a[i];


}


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


return 0;

Compiler output:
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | 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:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d",&n);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:49:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   49 | printf("%d %d %d\n",min,max,sum);
      | ^~~~~~
main.c:49:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:49:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:49:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:52:1: error: expected declaration or statement at end of input
   52 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>

int main (void)


{


   int m,n,ai,min,max;


   long sum;


   scanf("%d",&n);


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


      scanf("%d",&ai);


      if(m==0)(


         min=ai;


         max=ai;


         sum=ai;


      }


      else{


         if(ai<min){


            min=ai;


         }


         if(max<ai){


            max=ai;


         }


         sum+=(long)ai;


      }


   }


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


   return 0;


}

Compiler output:
main.c: In function 'main':
main.c:27:16: error: expected ')' before ';' token
   27 |          min=ai;
      |                ^
      |                )
main.c:24:15: note: to match this '('
   24 |       if(m==0)(
      |               ^
main.c:33:17: error: expected ';' before '}' token
   33 |          sum=ai;
      |                 ^
      |                 ;
......
   36 |       }
      |       ~          
main.c:39:7: error: 'else' without a previous 'if'
   39 |       else{
      |       ^~~~
main.c: At top level:
main.c:69:11: error: expected declaration specifiers or '...' before string constant
   69 |    printf("%d %d %d\n",min,max,sum);
      |           ^~~~~~~~~~~~
main.c:69:24: error: unknown type name 'min'
   69 |    printf("%d %d %d\n",min,max,sum);
      |                        ^~~
main.c:69:28: error: unknown type name 'max'
   69 |    printf("%d %d %d\n",min,max,sum);
      |                            ^~~
main.c:69:32: error: unknown type name 'sum'
   69 |    printf("%d %d %d\n",min,max,sum);
      |                                ^~~
main.c:72:4: error: expected identifier or '(' before 'return'
   72 |    return 0;
      |    ^~~~~~
main.c:75:1: error: expected identifier or '(' before '}' token
   75 | }
      | ^
Language: C

#include <stdio.h>

int main (void)


{


   int m,n,ai,min,max;


   long sum;


   scanf("%d",&n);


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


      scanf("%d",&ai);


      if(m==0)(


         min=ai;


         max=ai;


         sum=ai;


      }


      else{


         if(ai<min){


            min=ai;


         }


         if(max<ai){


            max=ai;


         }


         sum+=(long)ai;


      }


   }


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


   return 0;


}

Compiler output:
main.c: In function 'main':
main.c:27:16: error: expected ')' before ';' token
   27 |          min=ai;
      |                ^
      |                )
main.c:24:15: note: to match this '('
   24 |       if(m==0)(
      |               ^
main.c:33:17: error: expected ';' before '}' token
   33 |          sum=ai;
      |                 ^
      |                 ;
......
   36 |       }
      |       ~          
main.c:39:7: error: 'else' without a previous 'if'
   39 |       else{
      |       ^~~~
main.c: At top level:
main.c:69:11: error: expected declaration specifiers or '...' before string constant
   69 |    printf("%d %d %ld\n",min,max,sum);
      |           ^~~~~~~~~~~~~
main.c:69:25: error: unknown type name 'min'
   69 |    printf("%d %d %ld\n",min,max,sum);
      |                         ^~~
main.c:69:29: error: unknown type name 'max'
   69 |    printf("%d %d %ld\n",min,max,sum);
      |                             ^~~
main.c:69:33: error: unknown type name 'sum'
   69 |    printf("%d %d %ld\n",min,max,sum);
      |                                 ^~~
main.c:72:4: error: expected identifier or '(' before 'return'
   72 |    return 0;
      |    ^~~~~~
main.c:75:1: error: expected identifier or '(' before '}' token
   75 | }
      | ^
Language: C

#include <stdio.h>

int main (void)


{


   int m,n,ai,min,max;


   long sum;


   scanf("%d",&n);


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


      scanf("%d",&ai);


      if(m==0)(


         min=ai;


         max=ai;


         sum=ai;


      }


      else{


         if(ai<min){


            min=ai;


         }


         if(max<ai){


            max=ai;


         }


         sum+=(long)ai;


      }


   }


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


   return 0;


}

Compiler output:
main.c: In function 'main':
main.c:27:16: error: expected ')' before ';' token
   27 |          min=ai;
      |                ^
      |                )
main.c:24:15: note: to match this '('
   24 |       if(m==0)(
      |               ^
main.c:33:17: error: expected ';' before '}' token
   33 |          sum=ai;
      |                 ^
      |                 ;
......
   36 |       }
      |       ~          
main.c:39:7: error: 'else' without a previous 'if'
   39 |       else{
      |       ^~~~
main.c: At top level:
main.c:69:11: error: expected declaration specifiers or '...' before string constant
   69 |    printf("%d %d %lf\n",min,max,sum);
      |           ^~~~~~~~~~~~~
main.c:69:25: error: unknown type name 'min'
   69 |    printf("%d %d %lf\n",min,max,sum);
      |                         ^~~
main.c:69:29: error: unknown type name 'max'
   69 |    printf("%d %d %lf\n",min,max,sum);
      |                             ^~~
main.c:69:33: error: unknown type name 'sum'
   69 |    printf("%d %d %lf\n",min,max,sum);
      |                                 ^~~
main.c:72:4: error: expected identifier or '(' before 'return'
   72 |    return 0;
      |    ^~~~~~
main.c:75:1: error: expected identifier or '(' before '}' token
   75 | }
      | ^
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:45:1: error: expected declaration or statement at end of input
   45 | }
      | ^
main.c:45:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void){
 int n,a,b,c,i;
 long d = 0;
 b = -1000000;
 c = 1000000;
 scanf("%d",&n);


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


return 0;
}

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

#include<stdio.h>
int main(void){
 int n,a,b,c,i;
 long d = 0;
 b = -1000000;
 c = 1000000;
 scanf("%d",&n);

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


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
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;
 
 
  }

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

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

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

#include<stdio.h>
int main(void){
 int n,a,b,c,i;
 long d=0;
 b = -1000000;
 c = 1000000:
 scanf("%d",&n);


 for(a = 0;a < n;a++){
 scanf("%d",&i);
 if(b < i){
 b = i;
}
 if(c > i){
 c = i;
}
 d += i;
}
 printf("%d %d %d\n"c,b,d);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected ';' before ':' token
    6 |  c = 1000000:
      |             ^
      |             ;
main.c:20:21: error: expected ')' before 'c'
   20 |  printf("%d %d %d\n"c,b,d);
      |        ~            ^
      |                     )
Language: C

#include<stdio.h>

int main(void){


int i,n,number,max,min;


double sum=0.0;


max=-1000000;


min=1000000;


scanf("%d",&n);


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


scanf("%d",&number);


if(number<min){


min=number;}


if(max<ai){


sum+=number;}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:33:8: error: 'ai' undeclared (first use in this function); did you mean 'i'?
   33 | if(max<ai){
      |        ^~
      |        i
main.c:33:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:45:1: error: expected declaration or statement at end of input
   45 | }
      | ^
Language: C

#include <stdio.h>

int main(void)

{

int i,n;

int num;

long long int sum=0;

int min=0;

int max=0;

scanf("%d",&n);

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

{

scanf("%d",&num);

if(i==0)

{

min=num;

max=num;

}

if(num<min) nim=num;

if(num>max) max=num;

sum += num;

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:35:13: error: 'nim' undeclared (first use in this function); did you mean 'num'?
   35 | if(num<min) nim=num;
      |             ^~~
      |             num
main.c:35:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)

{

int i,n;

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) nim=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:37:16: error: 'nim' undeclared (first use in this function)
   37 | if(number<min) nim=number;
      |                ^~~
main.c:37:16: 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);

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

{

scanf("%d",&number);

if(i==0)

{

min=number;

max=number;

}

if(number<min) nim=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:37:16: error: 'nim' undeclared (first use in this function)
   37 | if(number<min) nim=number;
      |                ^~~
main.c:37:16: 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;

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) nim=number;

if(number>max) max=number;

sum += number;

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:37:16: error: 'nim' undeclared (first use in this function)
   37 | if(number<min) nim=number;
      |                ^~~
main.c:37:16: 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;

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) nim = number;

if(number>max) max = number;

sum += number;

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:35:16: error: 'nim' undeclared (first use in this function)
   35 | if(number<min) nim = number;
      |                ^~~
main.c:35:16: 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;

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) nim = 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:35:16: error: 'nim' undeclared (first use in this function)
   35 | if(number<min) nim = number;
      |                ^~~
main.c:35:16: 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;

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,man,sum);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:17:15: error: expected ';' before 'for'
   17 | scanf("%d",&n)
      |               ^
      |               ;
   18 | 
   19 | for(i=0;i<n;i++)
      | ~~~
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,man,sum);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:43:27: error: 'man' undeclared (first use in this function); did you mean 'max'?
   43 | printf("%d %d %lld\n",min,man,sum);
      |                           ^~~
      |                           max
main.c:43:27: 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;

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,man,sum);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:43:27: error: 'man' undeclared (first use in this function); did you mean 'max'?
   43 | printf("%d %d %lld\n",min,man,sum);
      |                           ^~~
      |                           max
main.c:43:27: 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;

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,man,sum);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:43:27: error: 'man' undeclared (first use in this function); did you mean 'max'?
   43 | printf("%d %d %lld\n",min,man,sum);
      |                           ^~~
      |                           max
main.c:43:27: 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,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:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]<min){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected ')' before ';' token
    9 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:9:18: error: expected ';' before '}' token
    9 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   12 | }
      | ~                 
main.c: At top level:
main.c:15:9: error: 'a' undeclared here (not in a function)
   15 | int min=a[0],max=a[0];
      |         ^
main.c:21:1: error: expected identifier or '(' before 'for'
   21 | for(i=0;i<n;i++){
      | ^~~
main.c:21:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   21 | for(i=0;i<n;i++){
      |          ^
main.c:21:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   21 | for(i=0;i<n;i++){
      |              ^~
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]<min){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ')' before ';' token
   15 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:15:18: error: expected ';' before '}' token
   15 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   18 | }
      | ~                 
main.c:36:9: error: expected '(' before '{' token
   36 | }else if{a[i]<min){
      |         ^
      |         (
main.c:36:18: error: expected statement before ')' token
   36 | }else if{a[i]<min){
      |                  ^
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]>max){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ')' before ';' token
   15 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:15:18: error: expected ';' before '}' token
   15 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   18 | }
      | ~                 
main.c:36:9: error: expected '(' before '{' token
   36 | }else if{a[i]>max){
      |         ^
      |         (
main.c:36:18: error: expected statement before ')' token
   36 | }else if{a[i]>max){
      |                  ^
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]>max){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ')' before ';' token
   15 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:15:18: error: expected ';' before '}' token
   15 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   18 | }
      | ~                 
main.c:36:9: error: expected '(' before '{' token
   36 | }else if{a[i]>max){
      |         ^
      |         (
main.c:36:18: error: expected statement before ')' token
   36 | }else if{a[i]>max){
      |                  ^
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]>max){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ')' before ';' token
   15 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:15:18: error: expected ';' before '}' token
   15 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   18 | }
      | ~                 
main.c:36:9: error: expected '(' before '{' token
   36 | }else if{a[i]>max){
      |         ^
      |         (
main.c:36:18: error: expected statement before ')' token
   36 | }else if{a[i]>max){
      |                  ^
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
Language: C

#include<stdio.h>

int main(){


int i,n,a[10000];


scanf("%d",&n);


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


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


}


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


long long int sum=0;


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


if(a[i]<min){


min=a[i];


}else if{a[i]>max){


max=a[i];


}


sum+=a[i];


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected ')' before ';' token
   15 | scanf("%d",&a[i];
      |      ~          ^
      |                 )
main.c:15:18: error: expected ';' before '}' token
   15 | scanf("%d",&a[i];
      |                  ^
      |                  ;
......
   18 | }
      | ~                 
main.c:36:9: error: expected '(' before '{' token
   36 | }else if{a[i]>max){
      |         ^
      |         (
main.c:36:18: error: expected statement before ')' token
   36 | }else if{a[i]>max){
      |                  ^
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
Language: C

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

#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:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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:2:1: error: expected expression before '?' token
    2 | ??
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ??
      | ^
main.c:7:1: error: 'sum' undeclared (first use in this function)
    7 | sum=0.0;
      | ^~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: expected expression before '?' token
    8 | ??
      | ^
main.c:9:1: error: 'max' undeclared (first use in this function)
    9 | max=-1000000;
      | ^~~
main.c:10:1: error: expected expression before '?' token
   10 | ??
      | ^
main.c:11:1: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 | min=1000000;
      | ^~~
      | main
main.c:12:1: error: expected expression before '?' token
   12 | ??
      | ^
main.c:13:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   13 | 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:13:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   13 | scanf("%d",&n);
      | ^~~~~
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:13: error: 'n' undeclared (first use in this function)
   13 | scanf("%d",&n);
      |             ^
main.c:14:1: error: expected expression before '?' token
   14 | ??
      | ^
main.c:36:1: error: expected expression before '?' token
   36 | ??
      | ^
main.c:38:1: error: expected expression before '?' token
   38 | ??
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:29: error: request for member 'total' in something not a structure or union
   16 | printf("%d %d %ld\n",min,max.total);
      |                             ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'I' undeclared (first use in this function)
    5 | for(i=0;I<n;i++){
      |         ^
main.c:5:9: 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 num,min=1000001,max=-1000001;

long sum=0;

scanf("%d",&n);

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

{

scanf("%d",&num);

sum+=num;

if(min>num){

min=num;

}

if(max<num){

max=num;

}

}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'num'
    7 | int n,i num,min=1000001,max=-1000001;
      |         ^~~
main.c:13:5: error: 'i' undeclared (first use in this function)
   13 | for(i=0;i<n;i++)
      |     ^
main.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:13: error: 'num' undeclared (first use in this function); did you mean 'sum'?
   17 | scanf("%d",&num);
      |             ^~~
      |             sum
main.c:21:4: error: 'min' undeclared (first use in this function); did you mean 'main'?
   21 | if(min>num){
      |    ^~~
      |    main
main.c:27:4: error: 'max' undeclared (first use in this function)
   27 | if(max<num){
      |    ^~~
Language: C

#include <stdio.h>

int main(void)

{

int i,n;

long int a,min=1000000,max=-1000000,sum=0;

scanf("%ld",&a);

if(a<min)

min=a;

if(a>max)

max=a;

sum+=a;

}

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

return 0;

}

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

#include<stdio.h>
int main()
{
int a,b,c;
int x;
cnt=0
int i;
scanf("%d %d %d",&a,&b,&c);

for(i=a; i<b; i++){
x=c%i;
if(x==0){
cnt++;}
}

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
    6 | cnt=0
      | ^~~
      | int
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:6: error: expected ';' before 'int'
    6 | cnt=0
      |      ^
      |      ;
    7 | int i;
      | ~~~   
main.c:10:5: error: 'i' undeclared (first use in this function)
   10 | for(i=a; i<b; i++){
      |     ^
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
int x;
cnt=0;
int i;
scanf("%d %d %d",&a,&b,&c);

for(i=a; i<b; i++){
x=c%i;
if(x==0){
cnt++;}
}

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
    6 | cnt=0;
      | ^~~
      | int
main.c:6: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;

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=numbeer;

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:23:5: error: 'numbeer' undeclared (first use in this function); did you mean 'number'?
   23 | min=numbeer;
      |     ^~~~~~~
      |     number
main.c:23:5: 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,number,max,min;

double sum=0.0;

max=-1000000;

min=1000000;

scanf("%d",&n);

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

scanf("%d",&number);

if(number<min){

min=number;}

if(max<ai){

sum+=number;}

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:23:8: error: 'ai' undeclared (first use in this function); did you mean 'i'?
   23 | if(max<ai){
      |        ^~
      |        i
main.c:23:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int i,n,number,max,min;

double sum=0.0;

max=-1000000;

min=1000000;

scanf("%d",&n);

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

scanf("%d",&number);

if(number<min){

min=number;}

if(max<number){

sum+=number;}

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

return 0;

}

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

#include<stdio.h>

int main(void){

int i,n,number,max,min;

double sum=0.0;

min=-1000000;

max=1000000;

scanf("%d",&n);

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

scanf("%d",&number);

if(number<max){

max=number;}

if(min<number){

min=number;}

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

return 0;

}

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

#include<stdio.h>


int main(void){


int i;      

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

 min=max=sum=x;     

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

scanf("%d",&x);     

sum +=x;      

if(max<x)       

max=x;      

if(min>x)       

min=x;      

}       

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

return 0;     

}  

 

Compiler output:
main.c: In function 'main':
main.c:9:16: error: 'n' undeclared (first use in this function)
    9 | scanf("%d %d",&n,&x);
      |                ^
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:19: error: 'x' undeclared (first use in this function)
    9 | scanf("%d %d",&n,&x);
      |                   ^
main.c:11:2: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 |  min=max=sum=x;
      |  ^~~
      |  main
main.c:11:6: error: 'max' undeclared (first use in this function)
   11 |  min=max=sum=x;
      |      ^~~
main.c:11:10: error: 'sum' undeclared (first use in this function)
   11 |  min=max=sum=x;
      |          ^~~
Language: C


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

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


  long  int i,j=0,seisu[10000],max=-1000000,min=1000000,num;


  long int sum=0;


scanf("%d",&i);


while(j!=i)


{


scanf("%d",&seisu[j]);


j++


}


j=0;


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


{


num=seisu[j];


if(max<num)


{


max=num;


}


if(min>num)


{


min=num;


}


sum=sum+num;


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:24:4: error: expected ';' before '}' token
   24 | j++
      |    ^
      |    ;
......
   27 | }
      | ~
Language: C

#include<stdio.h>

int main(void){


int n;


int a[10000];


int max,min,sum;


max=-1000000;


min=1000000;


sum=0;


scanf("%d",&n);


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


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


if(a[i]>max){


max=a[n];


}


if(a[n]<min){


min=a[i];


}


sum+=a[i];


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:5: error: 'i' undeclared (first use in this function)
   30 | for(i=1;i<=n;i++){
      |     ^
main.c:30:5: 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=0,seisu[10000],max=-1000001,min=1000001,num;

     long int sum=0;

     scanf("%d",&i);

      while(j!=i)

      {

            scanf("%d",&seisu[j]);

             j++;

       }        

??????j=0;

??????for(j=0;j<i;j++)

??????{

????????????num=seisu[j];

????????????if(max<num)

????????????{

??????????????????max=num;

????????????}

????????????if(min>num)

????????????{

??????????????????min=num;

????????????}

????????????sum=sum+num;

??????}

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

??????

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected expression before '?' token
   23 | ??????j=0;
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ??????for(j=0;j<i;j++)
      | ^
main.c:53:1: error: expected expression before '?' token
   53 | ??????
      | ^
main.c:53:6: error: expected declaration or statement at end of input
   53 | ??????
      |      ^
Language: C

#include???<stdio.h>

int main (void){

 int n;

 int i;

 int a[10000];

 int max;

 int min;

 long int totall=0;

  scanf("%d",&n);

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

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

}

max=min=0;

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

if(max???<???a[i]){

max=a[i];

}

if(min???>???a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c:1:10: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
    1 | #include???<stdio.h>
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include???<stdio.h>
      |         ^
main.c: In function 'main':
main.c:17:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   17 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include???<stdio.h>
main.c:17:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   17 |   scanf("%d",&n);
      |   ^~~~~
main.c:17:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:9: error: expected expression before '?' token
   19 | for(i=0;???i<n;???i++){
      |         ^
main.c:19:16: error: expected expression before '?' token
   19 | for(i=0;???i<n;???i++){
      |                ^
main.c:27:11: error: expected expression before '?' token
   27 |   for(i=0;???i<n;???i++){
      |           ^
main.c:27:18: error: expected expression before '?' token
   27 |   for(i=0;???i<n;???i++){
      |                  ^
main.c:29:8: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
   29 | if(max???<???a[i]){
main.c:35:8: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
   35 | if(min???>???a[i]){
main.c:35:8: error: expected expression before '?' token
   35 | if(min???>???a[i]){
      |        ^
main.c:45:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   45 | printf("%d %d %d\n",min,max,totall);
      | ^~~~~~
main.c:45:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:45:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:45:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include???<stdio.h>

int main (void){

 int n;

 int i;

 int a[10000];

 int max;

 int min;

 long int totall=0;

  scanf("%d",&n);

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

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

}

max=min=0;

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

if(max<a[i]){

max=a[i];

}

if(min>a[i]){

min=a[i];

}

totall=totall+a[i];

}

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

return 0;

}

Compiler output:
main.c:1:10: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
    1 | #include???<stdio.h>
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include???<stdio.h>
      |         ^
main.c: In function 'main':
main.c:17:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   17 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include???<stdio.h>
main.c:17:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   17 |   scanf("%d",&n);
      |   ^~~~~
main.c:17:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:45:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   45 | printf("%d %d %d\n",min,max,totall);
      | ^~~~~~
main.c:45:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:45:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:45:1: note: include '<stdio.h>' or provide a declaration of 'printf'