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

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])

{
    int count,max=0;

    scanf("%d",&count);
    int x[200000];
    for(int i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=count-1;i<0;i--){
       for(int j=0;j<count;i++){
          if(max<(x[i]-i[j])){
            max=x[i]-i[j];
          }
       }
    }
    printf("%d\n",max)
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     for(i=count-1;i<0;i--){
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:23: error: expected ';' before 'return'
   20 |     printf("%d\n",max)
      |                       ^
      |                       ;
   21 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])

{
    int count,max=0;

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

}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     for(i=count-1;i>0;i--){
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:23: error: expected ';' before 'return'
   20 |     printf("%d\n",max)
      |                       ^
      |                       ;
   21 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])

{
    int count,max=0;

    scanf("%d",&count);
    int x[200000];
    for(int i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=1;i<count;i++){
       for(int j=0;j<count;i++){
          if(max<(x[i]-i[j])){
            max=x[i]-i[j];
          }
       }
    }
    printf("%d\n",max)
    return 0;

}

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

#include <stdio.h>
#define N 200000

int main(){
  int n, i, j, maxV = 0, minV = 0;
  int a[N];
  scanf("%d", &n);
	
  for(i = 0; i < n; i++){
    scanf("%d", &a[i]);
  }
	
  minv = a[0];
  maxv = a[1] - a[0];
	
  for(j = 1; j < n; j++){
    if(maxV < (a[j] - minV)) maxV = a[j] - minV;
    if(minV > a[j]) minV = a[j];
  }
	
  printf("%d\n", maxV);
	
return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'minv' undeclared (first use in this function); did you mean 'minV'?
   13 |   minv = a[0];
      |   ^~~~
      |   minV
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:3: error: 'maxv' undeclared (first use in this function); did you mean 'maxV'?
   14 |   maxv = a[1] - a[0];
      |   ^~~~
      |   maxV
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i=1;i<count;i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:23: error: expected ';' before 'return'
   18 |     printf("%d\n",max)
      |                       ^
      |                       ;
   19 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i=1;i<count;i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:23: error: expected ';' before 'return'
   18 |     printf("%d\n",max)
      |                       ^
      |                       ;
   19 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i=1;i<count;i++){
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:23: error: expected ';' before 'return'
   18 |     printf("%d\n",max)
      |                       ^
      |                       ;
   19 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

}

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

#include <stdio.h>
int main(int argc, const char * argv[])

{
    int count,max=-1000000000;
    int x[200000];
   
    scanf("%d",&count);
    for(int i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=count-1;i>0;i--){
       for(int j=i-1;j>=0;j--){
          if(x[i]-x[j]>max){
              max=x[i]-x[j];
          }
       }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'i' undeclared (first use in this function)
   12 |     for(i=count-1;i>0;i--){
      |         ^
main.c:12:9: 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 count,max=1,min=1000000000,i,j,max,min;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=1;i<count;i++){
          if(x[i]>max){
              max=x[i];
          }
          if(x[i]<min){
              min=x[i];
          }
       }
    }
    printf("%d\n",max-min);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:40: error: redeclaration of 'max' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                        ^~~
main.c:5:15: note: previous definition of 'max' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |               ^~~
main.c:5:44: error: redeclaration of 'min' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                            ^~~
main.c:5:21: note: previous definition of 'min' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                     ^~~
main.c: At top level:
main.c:20:12: error: expected declaration specifiers or '...' before string constant
   20 |     printf("%d\n",max-min);
      |            ^~~~~~
main.c:20:19: error: unknown type name 'max'
   20 |     printf("%d\n",max-min);
      |                   ^~~
main.c:21:5: error: expected identifier or '(' before 'return'
   21 |     return 0;
      |     ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

Compiler output:
main.c: In function 'main':
main.c:5:40: error: redeclaration of 'max' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                        ^~~
main.c:5:15: note: previous definition of 'max' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |               ^~~
main.c:5:44: error: redeclaration of 'min' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                            ^~~
main.c:5:21: note: previous definition of 'min' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                     ^~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

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

Compiler output:
main.c: In function 'main':
main.c:5:40: error: redeclaration of 'max' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                        ^~~
main.c:5:15: note: previous definition of 'max' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |               ^~~
main.c:5:44: error: redeclaration of 'min' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                                            ^~~
main.c:5:21: note: previous definition of 'min' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,min;
      |                     ^~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])

{
    int count,max=1,min=1000000000,i,j,max,maxnum,min;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=0;i<count;i++){
          if(x[i]>max){
              max=x[i];
              maxnum=i;
          }
    }
    for(i=maxnum;i>=0;i--){
          if(x[i]<min){
              min=x[i];
          }
    }
    printf("%d\n",max-min);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:40: error: redeclaration of 'max' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,maxnum,min;
      |                                        ^~~
main.c:5:15: note: previous definition of 'max' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,maxnum,min;
      |               ^~~
main.c:5:51: error: redeclaration of 'min' with no linkage
    5 |     int count,max=1,min=1000000000,i,j,max,maxnum,min;
      |                                                   ^~~
main.c:5:21: note: previous definition of 'min' with type 'int'
    5 |     int count,max=1,min=1000000000,i,j,max,maxnum,min;
      |                     ^~~
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])
 
{
    int count,max=1,min=1000000000.i;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(i=1;i<count;i++){
          if(max<x[i]-min){
              max=x[i]-min;
          }
          if(min>x[i]){
              min=x[i];
          }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'i' undeclared (first use in this function)
    8 |     for(i=0;i<count;i++){
      |         ^
main.c:8:9: 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 count,max=1,min=1000000000.j,i;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(j=1;j<count;j++){
          if(max<x[i]-min){
              max=x[i]-min;
          }
          if(min>x[i]){
              min=x[i];
          }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'j' undeclared (first use in this function)
   11 |     for(j=1;j<count;j++){
      |         ^
main.c:11:9: 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 count,max=1,min=1000000000.j,i;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(j=1;j<count;j++){
          if(max<x[j]-min){
              max=x[j]-min;
          }
          if(min>x[j]){
              min=x[j];
          }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'j' undeclared (first use in this function)
   11 |     for(j=1;j<count;j++){
      |         ^
main.c:11:9: 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 count,max=1,min=1000000000.j,i;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(j=1;j<count;j++)"{
       if(max<x[j]-min){
           max=x[j]-min;
       }
       if(min>x[j]){
         min=x[j];
       }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'j' undeclared (first use in this function)
   10 |     for(j=1;j<count;j++)"{
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:25: warning: missing terminating " character
   10 |     for(j=1;j<count;j++)"{
      |                         ^
main.c:10:25: error: missing terminating " character
   10 |     for(j=1;j<count;j++)"{
      |                         ^~
main.c: At top level:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d\n",max);
      |            ^~~~~~
main.c:18:19: error: unknown type name 'max'
   18 |     printf("%d\n",max);
      |                   ^~~
main.c:19:5: error: expected identifier or '(' before 'return'
   19 |     return 0;
      |     ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include <stdio.h>
int main(int argc, const char * argv[])
{
    int count,max=1,min=1000000000,j,i;
    scanf("%d",&count);
    int x[count];
    for(i=0;i<count;i++){
       scanf("%d",&x[i]);
    }
    for(j=1;j<count;j++)"{
       if(max<x[j]-min){
           max=x[j]-min;
       }
       if(min>x[j]){
         min=x[j];
       }
    }
    printf("%d\n",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:25: warning: missing terminating " character
   10 |     for(j=1;j<count;j++)"{
      |                         ^
main.c:10:25: error: missing terminating " character
   10 |     for(j=1;j<count;j++)"{
      |                         ^~
main.c: At top level:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d\n",max);
      |            ^~~~~~
main.c:18:19: error: unknown type name 'max'
   18 |     printf("%d\n",max);
      |                   ^~~
main.c:19:5: error: expected identifier or '(' before 'return'
   19 |     return 0;
      |     ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

int main(){
    int n,i,j,a[31415926535],maxv, tmp;
        scanf("%d", &n);
        for(i=0; i<n; i++){
        scanf("%d", &a[i]);
        }
        maxv = 0; // answer
            for(i = 0; i < n; i++){
                for( j = 0; j < n; j++){
                    // i, j is integers
                    if (i<j) {
                        tmp = a[j] + a[i];
                        if ( tmp > maxv && tmp <= m ) maxv = tmp;
                    }
                }
            }
        
        }
        printf("%d\n", maxv);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:51: error: 'm' undeclared (first use in this function)
   13 |                         if ( tmp > maxv && tmp <= m ) maxv = tmp;
      |                                                   ^
main.c:13:51: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:19:16: error: expected declaration specifiers or '...' before string constant
   19 |         printf("%d\n", maxv);
      |                ^~~~~~
main.c:19:24: error: unknown type name 'maxv'
   19 |         printf("%d\n", maxv);
      |                        ^~~~
main.c:20:5: error: expected identifier or '(' before '}' token
   20 |     }
      |     ^
main.c:21:5: error: expected identifier or '(' before 'return'
   21 |     return 0;
      |     ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

int main(){
    int n,i,j,a[31415926535], maxv, tmp;
        scanf("%d", &n);
        for(i=0; i<n; i++){
        scanf("%d", &a[i]);
        }
        maxv = 0; // answer
            for(i = 0; i < n; i++){
                for( j = 0; j < n; j++){
                    // i, j is integers
                    if (i<j) {
                        tmp = a[j] + a[i];
                        if ( tmp > maxv ) maxv = tmp;
                    }
                }
            }
        
        }
        printf("%d\n", maxv);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%d", &n);
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: At top level:
main.c:19:16: error: expected declaration specifiers or '...' before string constant
   19 |         printf("%d\n", maxv);
      |                ^~~~~~
main.c:19:24: error: unknown type name 'maxv'
   19 |         printf("%d\n", maxv);
      |                        ^~~~
main.c:20:5: error: expected identifier or '(' before '}' token
   20 |     }
      |     ^
main.c:21:5: error: expected identifier or '(' before 'return'
   21 |     return 0;
      |     ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

int main(){
    int n,i,j,a[1000], maxv, tmp;
    maxv=-999999999999999999999999999999999
    scanf("%d", &n);
    for(i=0; i<n; i++) {scanf("%d", &a[i]);}
        for(i = 0; i < n; i++){
            for( j = 0; j < n; j++){
                // i, j is integers
                if (i<j) {
                    tmp = a[j] - a[i];
                    if ( tmp > maxv ) maxv = tmp;
                }
            }
        }
    printf("%d\n", maxv);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:11: warning: integer constant is too large for its type
    3 |     maxv=-999999999999999999999999999999999
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:3:10: warning: overflow in conversion from 'long int' to 'int' changes value from '-4089650035136921599' to '1' [-Woverflow]
    3 |     maxv=-999999999999999999999999999999999
      |          ^
main.c:3:44: error: expected ';' before 'scanf'
    3 |     maxv=-999999999999999999999999999999999
      |                                            ^
      |                                            ;
    4 |     scanf("%d", &n);
      |     ~~~~~                                   
main.c:5:25: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     for(i=0; i<n; i++) {scanf("%d", &a[i]);}
      |                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:5:25: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     for(i=0; i<n; i++) {scanf("%d", &a[i]);}
      |                         ^~~~~
main.c:5:25: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("%d\n", maxv);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
    int n,i,j,a[1000], maxv, tmp;
    scanf("%d", &n);
    for(i=0; i<n; i++) {scanf("%d", &a[i]);}
    maxv=-999999999999999999999999999999999
        for(i = 0; i < n; i++){
            for( j = 0; j < n; j++){
                // i, j is integers
                if (i<j) {
                    tmp = a[j] - a[i];
                    if ( tmp > maxv ) maxv = tmp;
                }
            }
        }
    printf("%d\n", maxv);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d", &n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d", &n);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:11: warning: integer constant is too large for its type
    5 |     maxv=-999999999999999999999999999999999
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:5:10: warning: overflow in conversion from 'long int' to 'int' changes value from '-4089650035136921599' to '1' [-Woverflow]
    5 |     maxv=-999999999999999999999999999999999
      |          ^
main.c:5:44: error: expected ';' before 'for'
    5 |     maxv=-999999999999999999999999999999999
      |                                            ^
      |                                            ;
    6 |         for(i = 0; i < n; i++){
      |         ~~~
Language: C

#include <stdio.h>

int main()
{
	int data[200000];
	int n;

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

	int max_diff = -((1 - 10 ^ 9) - 1);
	int low;
	int high;
	for (int i = 0; i < n-1; i++)
	{
		low = data[i];
		for (int j = i + 1; j < n; j++)
		{
			high = data[j];
			int diff = high - low;
			if (max_diff < diff)
			{
				max_diff = diff;
			}
		}
	}

	printf("%d\n", max_diff);
}

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

#include <stdio.h>

int main()
{
	int data[200000];
	int n;

//	int data[] = { 4,1,2,1 };
//	int n = 4;*
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &data[i]);
	}
	
	int max = -2000000000;
	int min = data[0];

	for (int i = 1; i < n; i++)
	{
		if (max < data[i] - min)
		{
			max = data[i] - min;
		}
		if (min > data[i])
		{
			min = data[i];
		}
	}

	printf("%d\n", max_diff);
}

Compiler output:
main.c: In function 'main':
main.c:31:24: error: 'max_diff' undeclared (first use in this function)
   31 |         printf("%d\n", max_diff);
      |                        ^~~~~~~~
main.c:31:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<iostream>
#include<cstdio>
#define N 100001
#define ii pair<int,int>
using namespace std;
int main()
{int n,i,a[200010],minx,ret=-99999;
cin>>n;
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
minx=a[1];
for(i=2;i<=n;i++)
 {if(a[i]-minx>ret)ret=a[i]-minx;
  if(a[i]<minx)minx=a[i];
 }
 cout<<ret;
}       

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

#include <stdio.h>

int main()
{
  int n, i, j, max = 0;
  int r[];

  scanf("%d", &n);

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

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

  return 0;
}

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

#include <stdio.h>

int main()
{
  int n, i, j;
  int max;
  int r[200000];

  scanf("%d", &n);

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

  max = r[1] - r[0]

  for(i = 0; i < n-1; i++){
    for(j = i+1; j < n; j++){
      if(r[j]-r[i] > max)
        max = r[j] - r[i];
    }
  }
  printf("%d\n", max);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:20: error: expected ';' before 'for'
   14 |   max = r[1] - r[0]
      |                    ^
      |                    ;
   15 | 
   16 |   for(i = 0; i < n-1; i++){
      |   ~~~
Language: C

#include <stdio.h>

int main(){

  int r[200000];
  int n, i, j, max, min;

  scanf("%d", &n);

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

  max = r[1] - r[0];
  min = r[0];

  for(i = 0; i < n-1; i++){
    for(j = i+1; j < n; j++){
      if(r[j]-min > max)
        max = r[j] - min;
      if(r[j] < min)
        min = r[j]
    }
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:19: error: expected ';' before '}' token
   21 |         min = r[j]
      |                   ^
      |                   ;
   22 |     }
      |     ~
Language: C

#include<stdio.h>

int main()
{
   int i, j, n;
   int Rt[NUMBER];
   int max = 0;

   scanf("%d", &n);

   for(j=1; j<=(n-1); j++){
      for(i=0; i<=(j-1); i++){
         if((Rt[j]-Rt[i])>max)
            max = Rt[j]-Rt[i];
         else if(max==0)
            max = Rt[j]-Rt[i];
      }
   }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'NUMBER' undeclared (first use in this function)
    6 |    int Rt[NUMBER];
      |           ^~~~~~
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define NUMBER 10*10*10*10*10*10*10*10*10
??
int main()
{
??????int i, j, n;
??????int Rt[NUMBER];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>
??
int main()
{
??????int i, j, n;
??????int Rt[n];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>
??
int main()
{
??????int i, j, n;
??????int Rt[n-1];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>
??
int main()
{
??????int i, j, n;
??????int Rt[NUMBER];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????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, j, n;
??????int Rt[NUMBER];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>
??
int main()
{
??????int i, j, n;
??????int Rt[];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>

#define NUMBER 200000
??
int main()
{
??????int i, j, n;
??????int Rt[NUMBER];
??????int max = 0;
??
??????scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>

#define NUMBER 200000
??
int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;
??
??????scanf("%d", &Rt[n]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>

#define NUMBER 200000
??
int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;
??
   for(n=0; n<200000; n++)
??????   scanf("%d", &Rt[n]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

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

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   for(n=0; n<200000; n++)
??????   scanf("%d", &Rt[n]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ??????   scanf("%d", &Rt[n]);
      | ^
main.c:13:23: error: 'Rt' undeclared (first use in this function)
   13 | ??????   scanf("%d", &Rt[n]);
      |                       ^~
main.c:13:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:1: error: expected expression before '?' token
   14 | ??
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   scanf("%d", &n);
   scanf("%d", &Rt[n]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:13:17: error: 'Rt' undeclared (first use in this function)
   13 |    scanf("%d", &Rt[n]);
      |                 ^~
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:1: error: expected expression before '?' token
   14 | ??
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   scanf("%d", &Rt[NUMBER]);
   scanf("%d", &n);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else if(max==0)
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:12:17: error: 'Rt' undeclared (first use in this function)
   12 |    scanf("%d", &Rt[NUMBER]);
      |                 ^~
main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:1: error: expected expression before '?' token
   14 | ??
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   scanf("%d", &n);
   scanf("%d", &Rt[n]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:13:17: error: 'Rt' undeclared (first use in this function)
   13 |    scanf("%d", &Rt[n]);
      |                 ^~
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:1: error: expected expression before '?' token
   14 | ??
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j, num;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   scanf("%d", &n);

   for(num=0; num<n-1; num++)
      scanf("%d", &Rt[num]);
??
??????for(j=1; j<=(num-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j, num;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:14:8: error: 'num' undeclared (first use in this function)
   14 |    for(num=0; num<n-1; num++)
      |        ^~~
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: 'Rt' undeclared (first use in this function)
   15 |       scanf("%d", &Rt[num]);
      |                    ^~
main.c:16:1: error: expected expression before '?' token
   16 | ??
      | ^
main.c:27:1: error: expected expression before '?' token
   27 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j, num;
   int n;
??????int Rt[NUMBER];
??????int max = 0;

   scanf("%d", &n);

   for(num=0; num<n; num++)
      scanf("%d", &Rt[num]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max)
????????????????????????max = Rt[j]-Rt[i];
??????????????????else
????????????????????????max = Rt[j]-Rt[i];
????????????}
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j, num;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 0;
      | ^
main.c:14:8: error: 'num' undeclared (first use in this function)
   14 |    for(num=0; num<n; num++)
      |        ^~~
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: 'Rt' undeclared (first use in this function)
   15 |       scanf("%d", &Rt[num]);
      |                    ^~
main.c:16:1: error: expected expression before '?' token
   16 | ??
      | ^
main.c:27:1: error: expected expression before '?' token
   27 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j, num;
   int n;
??????int Rt[NUMBER];
??????int max = 1-10*10*10*10*10*10*10*10*10;

   scanf("%d", &n);

   for(num=0; num<n; num++)
      scanf("%d", &Rt[num]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max){
???????????????? ??????max = Rt[j]-Rt[i];
         }
      }
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j, num;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 1-10*10*10*10*10*10*10*10*10;
      | ^
main.c:14:8: error: 'num' undeclared (first use in this function)
   14 |    for(num=0; num<n; num++)
      |        ^~~
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: 'Rt' undeclared (first use in this function)
   15 |       scanf("%d", &Rt[num]);
      |                    ^~
main.c:16:1: error: expected expression before '?' token
   16 | ??
      | ^
main.c:26:1: error: expected expression before '?' token
   26 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
??????int i, j, num;
   int n;
??????int Rt[NUMBER];
??????int max = 1-10*10*10*10*10*10*10*10*10;

   scanf("%d", &n);

   for(num=0; num<n; num++)
      scanf("%d", &Rt[num]);
??
??????for(j=1; j<=(n-1); j++){
????????????for(i=0; i<=(j-1); i++){
??????????????????if((Rt[j]-Rt[i])>max){
???????????????? ??????max = Rt[j]-Rt[i];
         }
         else{
            max = max;
         }
      }
??????}
??
??????printf("%d\n", max);
??
??????return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??????int i, j, num;
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??????int Rt[NUMBER];
      | ^
main.c:10:1: error: expected expression before '?' token
   10 | ??????int max = 1-10*10*10*10*10*10*10*10*10;
      | ^
main.c:14:8: error: 'num' undeclared (first use in this function)
   14 |    for(num=0; num<n; num++)
      |        ^~~
main.c:14:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: 'Rt' undeclared (first use in this function)
   15 |       scanf("%d", &Rt[num]);
      |                    ^~
main.c:16:1: error: expected expression before '?' token
   16 | ??
      | ^
main.c:29:1: error: expected expression before '?' token
   29 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
int i, j, num;
int n;
int Rt[NUMBER];
int max = 1-10*10*10*10*10*10*10*10*10;

scanf("%d", &n);

for(num=0; num<n; num++)
scanf("%d", &Rt[num]);
??
for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if((Rt[j]-Rt[i])>max){
max = Rt[j]-Rt[i];
}
else{
max = max;
}
}
}
??
printf("%d\n", max);
??
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected expression before '?' token
   16 | ??
      | ^
main.c:29:1: error: expected expression before '?' token
   29 | ??
      | ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
int i, j, num;
int n;
int Rt[NUMBER];
int max = 1-10*10*10*10*10*10*10*10*10;

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if((Rt[j]-Rt[i])>max){
max = Rt[j]-Rt[i];
}
else if(Rt[j]-Rt[i])<=max){
max = max;
}
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:21: error: expected expression before '<=' token
   22 | else if(Rt[j]-Rt[i])<=max){
      |                     ^~
main.c:22:26: error: expected statement before ')' token
   22 | else if(Rt[j]-Rt[i])<=max){
      |                          ^
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
int i, j, num;
int n;
int Rt[NUMBER];
int max = 1-10*10*10*10*10*10*10*10*10;

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if((Rt[j]-Rt[i])>=max){
max = Rt[j]-Rt[i];
}
else if(Rt[j]-Rt[i])<max){
max = max;
}
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:21: error: expected expression before '<' token
   22 | else if(Rt[j]-Rt[i])<max){
      |                     ^
main.c:22:25: error: expected statement before ')' token
   22 | else if(Rt[j]-Rt[i])<max){
      |                         ^
Language: C

#include<stdio.h>

#define NUMBER_1 200000

int main()
{
int i, j, num;
int n;
int max = 1-10*10*10*10*10*10*10*10*10;
int min = 10*10*10*10*10*10*10*10*10;
int Rt[NUMBER_1];

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if(min>Rt[i]){
min = Rt[i];
}
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:16: error: 'MAX' undeclared (first use in this function)
   30 | printf("%d\n", MAX);
      |                ^~~
main.c:30:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define NUMBER_1 200000

int main()
{
int i, j, num;
int n;
int max = 1-10*10*10*10*10*10*10*10*10;
int min = Rt[0];
int Rt[NUMBER_1];

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if(min>Rt[i]){
min = Rt[i];
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
else if(min==Rt[i]){
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
}
}

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

return 0;
}

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

#include<stdio.h>

#define NUMBER 200000

int main()
{
int i, j, num;
int n;
int max = 1-10*10*10*10*10*10*10*10*10;
int min = 1+10*10*10*10*10*10*10*10*10;
int Rt[NUMBER_1];

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if(min>Rt[i]){
min = Rt[i];
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
else if(min==Rt[i]){
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'NUMBER_1' undeclared (first use in this function); did you mean 'NUMBER'?
   11 | int Rt[NUMBER_1];
      |        ^~~~~~~~
      |        NUMBER
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define NUMBER 200000

int main()
{
int i, j, num;
int n;
int max = 1-10*10*10*10*10*10*10*10*10;
int min = 1+10*10*10*10*10*10*10*10*10;
int Rt[NUMBER];

scanf("%d", &n);

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

for(j=1; j<=(n-1); j++){
for(i=0; i<=(j-1); i++){
if(min>Rt[i]){
min = Rt[i];
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
else if(min==Rt[i]){
if((Rt[j]-min)>max){
max = Rt[j]-min;
}
}
else(min<Rt[i]){
break;
}
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:32:16: error: expected ';' before '{' token
   32 | else(min<Rt[i]){
      |                ^
      |                ;