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

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


Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ')' before '{' token
   11 |     if(j==(n-1){
      |       ~        ^
      |                )
main.c:16:3: error: expected expression before '}' token
   16 |   }
      |   ^
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:11:15: error: expected ';' before 'printf'
   11 |     else(i==0)printf("%d\n");
      |               ^~~~~~
      |               ;
Language: C

#include<stdio.h>

int main(){

int scan[n];a;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a)
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n];a;
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:13: error: 'a' undeclared (first use in this function)
    5 | int scan[n];a;
      |             ^
main.c:10:15: error: expected ';' before 'scan'
   10 | scanf("%d",&a)
      |               ^
      |               ;
   11 | scan[i] = a;
      | ~~~~           
main.c:13:12: error: expected expression before '>' token
   13 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n];a;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n];a;
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:13: error: 'a' undeclared (first use in this function)
    5 | int scan[n];a;
      |             ^
main.c:13:12: error: expected expression before '>' token
   13 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n];a;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n];a;
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:13: error: 'a' undeclared (first use in this function)
    5 | int scan[n];a;
      |             ^
main.c:13:12: error: expected expression before '>' token
   13 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n],a;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n],a;
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:12: error: expected expression before '>' token
   13 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n],a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n],a,n;
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:12: error: expected expression before '>' token
   13 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n];
int a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:10: error: 'n' undeclared (first use in this function)
    5 | int scan[n];
      |          ^
main.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:12: error: expected expression before '>' token
   14 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[n];
int a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 >= 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



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

#include<stdio.h>

int main(){

int scan[];
int a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 => 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:5: error: array size missing in 'scan'
    5 | int scan[];
      |     ^~~~
main.c:14:12: error: expected expression before '>' token
   14 | while(n-1 => 0){
      |            ^
Language: C

#include<stdio.h>

int main(){

int scan[];
int a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 >= 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:5: error: array size missing in 'scan'
    5 | int scan[];
      |     ^~~~
Language: C

#include<stdio.h>

int main(){

int scan[x];
int a,n;

scanf("%d",&n);

for(int i = 0; 0 < n; i++){
scanf("%d",&a);
scan[i] = a;
}
while(n-1 >= 0){
printf("%d",scan[n]);
if(n != 0){
  printf(" ");
  }
n--;
}


return 0;
}



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

#include<stdio.h>

int main(){

int a,n;

scanf("%d",&n);

int scan[n];

for(int i = 0; i < n; i++){
scanf("%d",&a);
scan[i] = a;
}
for(int j = n; j-1 >= 0; j--){
printf("%d ",scan[j-1]);
  #include<stdio.h>

int main(){

int a,n;

scanf("%d",&n);

int scan[n];

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

return 0;
}

 



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

#include<stdio.h>

int main(){

int a,n,j,i;

scanf("%d",&n);

int scan[n];

for(i = 0; i < n; i++){
scanf("%d",&a);
scan[i] = a;
}
for(j = n; j-1 >= 0; j--){

    printf("%d ",scan[j-1]);
  
  }
}

return 0;
}


Compiler output:
main.c:22:1: error: expected identifier or '(' before 'return'
   22 | return 0;
      | ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(){

int j,i,a,n;

scanf("%d",&n);

int scan[n];

for(i = 0; i < n; i++){
scanf("%d",&a);
scan[i] = a;
}
for( j = n; j-1 >= 0; j--){

  printf("%d",scan[j-1]);
  if (j-1)pritnf(" ");
  
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:11: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |   if (j-1)pritnf(" ");
      |           ^~~~~~
      |           printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:14: error: array size missing in 'a'
    3 | int i, j, n, a[];
      |              ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:14: error: array size missing in 'a'
    3 | int i, j, n, a[];
      |              ^
Language: C

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


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

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

int main(){
    
    int cnt,a,b[a]c[a];
    
    scanf("%d",&a);
    for(cnt=0;cnt<a;cnt++){
        scanf("%d",b[cnt]);
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[cnt];
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[a-cnt];
    }
    while(1){
        break if(cnt==a);
    }
    for(cnt=0;cnt<a;cnt++){
        printf("%d"b[cnt]);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |     int cnt,a,b[a]c[a];
      |                   ^
main.c:10:20: error: 'b' undeclared (first use in this function)
   10 |         scanf("%d",b[cnt]);
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'c' undeclared (first use in this function)
   13 |         b[cnt]=c[cnt];
      |                ^
main.c:19:14: error: expected ';' before 'if'
   19 |         break if(cnt==a);
      |              ^~~
      |              ;
main.c:22:20: error: expected ')' before 'b'
   22 |         printf("%d"b[cnt]);
      |               ~    ^
      |                    )
Language: C

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

int main(){
    
    int cnt,a,b[]c[];
    
    scanf("%d",&a);
    for(cnt=0;cnt<a;cnt++){
        scanf("%d",b[cnt]);
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[cnt];
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[a-cnt];
    }
    while(1){
        break if(cnt==a);
    }
    for(cnt=0;cnt<a;cnt++){
        printf("%d"b[cnt]);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |     int cnt,a,b[]c[];
      |                  ^
main.c:10:20: error: 'b' undeclared (first use in this function)
   10 |         scanf("%d",b[cnt]);
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'c' undeclared (first use in this function)
   13 |         b[cnt]=c[cnt];
      |                ^
main.c:19:14: error: expected ';' before 'if'
   19 |         break if(cnt==a);
      |              ^~~
      |              ;
main.c:22:20: error: expected ')' before 'b'
   22 |         printf("%d"b[cnt]);
      |               ~    ^
      |                    )
Language: C

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

int main(){
    
    int cnt,a,b[1000]c[1000];
    
    scanf("%d",&a);
    for(cnt=0;cnt<a;cnt++){
        scanf("%d",b[cnt]);
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[cnt];
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[a-cnt];
    }
    while(1){
        break if(cnt==a);
    }
    for(cnt=0;cnt<a;cnt++){
        printf("%d"b[cnt]);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |     int cnt,a,b[1000]c[1000];
      |                      ^
main.c:10:20: error: 'b' undeclared (first use in this function)
   10 |         scanf("%d",b[cnt]);
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'c' undeclared (first use in this function)
   13 |         b[cnt]=c[cnt];
      |                ^
main.c:19:14: error: expected ';' before 'if'
   19 |         break if(cnt==a);
      |              ^~~
      |              ;
main.c:22:20: error: expected ')' before 'b'
   22 |         printf("%d"b[cnt]);
      |               ~    ^
      |                    )
Language: C

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

int main(){
    
    int cnt,a,b[1000]c[1000];
    
    scanf("%d",&a);
    for(cnt=0;cnt<a;cnt++){
        scanf("%d",b[cnt]);
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[cnt];
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[a-cnt];
    }
    
    
    for(cnt=0;cnt<a;cnt++){
        printf("%d"b[cnt]);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |     int cnt,a,b[1000]c[1000];
      |                      ^
main.c:10:20: error: 'b' undeclared (first use in this function)
   10 |         scanf("%d",b[cnt]);
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:16: error: 'c' undeclared (first use in this function)
   13 |         b[cnt]=c[cnt];
      |                ^
main.c:21:20: error: expected ')' before 'b'
   21 |         printf("%d"b[cnt]);
      |               ~    ^
      |                    )
Language: C

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

int main(){
    
    int cnt,a,b[1000],c[1000];
    
    scanf("%d",&a);
    for(cnt=0;cnt<a;cnt++){
        scanf("%d",b[cnt]);
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[cnt];
    }
    for(cnt=0;cnt<a;cnt++){
        b[cnt]=c[a-cnt];
    }
    
    
    for(cnt=0;cnt<a;cnt++){
        printf("%d"b[cnt]);
    }
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:21:20: error: expected ')' before 'b'
   21 |         printf("%d"b[cnt]);
      |               ~    ^
      |                    )
Language: C

#include "stdio.h"
#define NUMBER 100
int main(void){
int n,i,tmp;
int a[NUMBER];
scanf("%d",&n);
for(i=0;i<n;i++){
if(i==n-1){
scanf("%d",&a[i]);
}else{
scanf("%d ",&a[i]);
}
}
for(i=0;i<n/2;i++){
tmp=a[i];
a[i]=a[n-i-1];
a[n-i-1]=tmp;
}
for(i=0;i<n;i++){
if(i==n-1){
printf("%d",a[i]);
}else{
printf("%d ",a[i];
}
}
puts("");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:18: error: expected ')' before ';' token
   23 | printf("%d ",a[i];
      |       ~          ^
      |                  )
main.c:23:19: error: expected ';' before '}' token
   23 | printf("%d ",a[i];
      |                   ^
      |                   ;
   24 | }
      | ~
Language: C

#include<stdio.h>

int main(){
 int a[100],n,i;
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%d", &a[i]);
 }
 for(i=n-1; i<0; i--){
  if(i==0){ printf("%d", a[i])}
  else{ printf("%d ", a[i]);}
 }
 printf("\n");
 return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:10:31: error: expected ';' before '}' token
   10 |   if(i==0){ printf("%d", a[i])}
      |                               ^
      |                               ;
Language: C

#include <stdio.h>
int main(){
  int a[100],n,i,j,tem;

  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&a[i]);
  for(i=0;i<n-1;i++)for(j=0;j<n;j++){
      if(a[i]<a[j]){
	tem=a[i];
	a[i]=a[j];
	a[j]=tem;
      }
    }
  for(i=0;i<n;i++){
    parintf("%d",a[i]);
    if(i==(n-1)) printf("\n");
    else printf(" ");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: implicit declaration of function 'parintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |     parintf("%d",a[i]);
      |     ^~~~~~~
      |     printf
Language: C

#include <stdio.h>
int main(){
	int n;
	int a[110];
	int t;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d"&a[i]);
	}
	for(i=n-1;i>=0;i--){
		printf("%d");
		if(i!=0) printf(" ");
	}
	printf("\n");
	return 0;
}

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

#include <stdio.h>
int main(){
	int n;
	int a[110];
	int t;
	int i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d"&a[i]);
	}
	for(i=n-1;i>=0;i--){
		printf("%d",a[i]);
		if(i!=0) printf(" ");
	}
	printf("\n");
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before ')' token
    6 |   for(i=0;i<n,n++){
      |                  ^
      |                  ;
main.c:9:20: error: expected ';' before ')' token
    9 |   for(i=n-1;i>0,i--){
      |                    ^
      |                    ;
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;
const int INF = 1e9+7;

int main(int argc, char **argv)
{
	int n, *a, i;
	char *sp = "";
	scanf("%d", &n);
	if (n == 0) return 0;
	a = malloc(sizeof(int) * n);
	for (i = 0; i < n; i++) {
		scanf("%d", a + i);
	}
	for (i = 0; i < n; i++) {
		printf("%s%d", sp, a[n - i - 1]);
		sp = " ";
	}
	putchar('\n');

	return 0;
}
#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;
const int INF = 1e9+7;

int main(int argc, char **argv)
{
	int n, *a, i;
	char *sp = "";
	scanf("%d", &n);
	if (n == 0) return 0;
	a = malloc(sizeof(int) * n);
	for (i = 0; i < n; i++) {
		scanf("%d", a + i);
	}
	for (i = 0; i < n; i++) {
		printf("%s%d", sp, a[n - i - 1]);
		sp = " ";
	}
	putchar('\n');

	return 0;
}

Compiler output:
main.c:33:11: error: redefinition of 'INF'
   33 | const int INF = 1e9+7;
      |           ^~~
main.c:7:11: note: previous definition of 'INF' with type 'int'
    7 | const int INF = 1e9+7;
      |           ^~~
main.c:35:5: error: redefinition of 'main'
   35 | int main(int argc, char **argv)
      |     ^~~~
main.c:9:5: note: previous definition of 'main' with type 'int(int,  char **)'
    9 | int main(int argc, char **argv)
      |     ^~~~
Language: C

#include <stdio.h>
int main(void)
{
	int i, n;
    int x{100};
    
    scanf("%d",&n);
    
    for(i = 0; i < n; i++){
    	scanf("%d",&x{i});
    
    for(i = n - 1; i > 0; i--){
        printf("%d ",x{i});
        
printf("%d\n",x{0});

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 |     int x{100};
      |          ^
main.c:5:14: error: expected ';' before '}' token
    5 |     int x{100};
      |              ^
      |              ;
main.c:10:21: error: 'x' undeclared (first use in this function)
   10 |         scanf("%d",&x{i});
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:22: error: expected ')' before '{' token
   10 |         scanf("%d",&x{i});
      |              ~       ^
      |                      )
main.c:13:23: error: expected ')' before '{' token
   13 |         printf("%d ",x{i});
      |               ~       ^
      |                       )
main.c:15:16: error: expected ')' before '{' token
   15 | printf("%d\n",x{0});
      |       ~        ^
      |                )
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
main.c:18:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main(void)
{
	int i, n;
    int x{100};
    
    scanf("%d",&n);
    
    for(i = 0; i < n; i++)
    	scanf("%d",&x{i});
    
    for(i = n - 1; i > 0; i--)
        printf("%d ",x{i});
        
printf("%d\n",x{0});

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 |     int x{100};
      |          ^
main.c:5:14: error: expected ';' before '}' token
    5 |     int x{100};
      |              ^
      |              ;
main.c:10:21: error: 'x' undeclared (first use in this function)
   10 |         scanf("%d",&x{i});
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:22: error: expected ')' before '{' token
   10 |         scanf("%d",&x{i});
      |              ~       ^
      |                      )
main.c:13:23: error: expected ')' before '{' token
   13 |         printf("%d ",x{i});
      |               ~       ^
      |                       )
main.c:15:16: error: expected ')' before '{' token
   15 | printf("%d\n",x{0});
      |       ~        ^
      |                )
Language: C

#include <stdio.h>
int main(void)
{
int rev[100];
int n,i;

scanf("%d",&n);

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

for(i=n;i>0;i--)
 printf("%d"rev[i]

printf("\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected ')' before 'rev'
   13 |  printf("%d"rev[i]
      |        ~    ^~~
      |             )
main.c:16:10: error: expected ';' before '}' token
   16 | return 0;
      |          ^
      |          ;
   17 | }
      | ~
Language: C

#include <stdio.h>
int main(void)
{
int rev[100];
int n,i;

scanf("%d",&n);

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

for(i=n;i>0;i--)
 printf("%d"rev[i];

printf("\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected ')' before 'rev'
   13 |  printf("%d"rev[i];
      |        ~    ^~~
      |             )
main.c:16:10: error: expected ';' before '}' token
   16 | return 0;
      |          ^
      |          ;
   17 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
	int i,x,y,z;
	
	scanf("%d",&x);
	
	int v[x];
	
	y = (x-1)/2;
	z = x-1;
	for(i = 0;i < x;i++){
		scanf("%d",&v[i]);
	}

	for(i = z;i > -1;i--){
		printf("%d",v[i]);
	}
	int i;

	
	
return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:18:13: error: redeclaration of 'i' with no linkage
   18 |         int i;
      |             ^
main.c:3:13: note: previous declaration of 'i' with type 'int'
    3 |         int i,x,y,z;
      |             ^
Language: C

#include<stdio.h>
int main(void){
	int i,x,y,z;
	
	scanf("%d",&x);
	
	int v[x];
	
	y = (x-1)/2;
	z = x-1;
	for(i = 0;i < x;i++){
		scanf("%d",&v[i]);
	}
	
	for(i = z;i > -1;i--){
		printf("%d", v[i]);
		if ( i ) printf(" ");
	}
	printf("\n")
	
return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:19:21: error: expected ';' before 'return'
   19 |         printf("\n")
      |                     ^
      |                     ;
   20 | 
   21 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(void){
	int i,x,y,z;
	
	scanf("%d",&x);
	
	int v[x];
	
	y = (x-1)/2;
	z = x-1;
	for(i = 0;i < x;i++){
		scanf("%d",&v[i]);
	}
	
	for(i = z;i > -1;i--){
		printf("%d", v[i]);
		if ( i ) printf(" ");
	}

	printf("\n")
	
return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:20:21: error: expected ';' before 'return'
   20 |         printf("\n")
      |                     ^
      |                     ;
   21 | 
   22 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(void){
	int i,m,n,t;
	int a[];
		scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m);
		a[i]=m;
	}
	
	for(i=0;i<n/2;i++){
			t=a[i];
			a[i]=a[(n-1)-i];
			a[(n-1)-i]=t;
	}
	
	for(i=0;i<n;i++){
		printf(" %d",a[i]);
	}
	printf("\n");
return 0;
}

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

#include <stdio.h>

int main(void)
{
	int n, i;
	int a[];

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

	for (; n > 0; n--){
		printf("%d ", a[i - 1]);
	}
}

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

#include <stdio.h>

int main(void)
{
	int n, i;
	int a[];

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

	for (; n > 0; n--){
		printf("%d ", a[i - 1]);
	}
}

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

#include <stdio.h>

int main(void)
{
	int n, i;
	int a[];

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

	for (; n > 0; n--){
		printf("%d ", a[n - 1]);
	}
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '%' token
    7 | scanf("%d",%a[i]);
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '%' token
    7 | scanf("%d",%a[i]);
      |            ^
Language: C

#include<stdio.h>

int main() {
	int n,i;
	scanf("%d", &n);
	int a[n];
	for(i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}
	for(i = 0; i < n; i++) {
		printf("%d", a[n-i-1]);
		if(i != n-1) {
			printf(" ");
		}
	}
	printf("\n");
????????????return 0;
}

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

#include <stdio.h>

int main(){
	int p[100],i;
	int cnt;
	scanf("%d",&n);
	for(cnt=0;cnt<i;cnt++){
		scanf("%d",&p[cnt]);
	}
	for(cnt=1;cnt<=i;cnt++){
		printf("%d ",i[n-cnt]);
	}
	printf("\n");
	return 0;
}

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

#include <stdio.h>

int main(){
	int p[100],i;
	int cnt;
	scanf("%d",&n);
	for(cnt=0;cnt<i;cnt++){
		scanf("%d",&p[cnt]);
	}
	for(cnt=1;cnt<=i;cnt++){
		printf("%d ",p[i-cnt]);
	}
	printf("\n");
	return 0;
}

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

#include <stdio.h>

int main(int argc, char *argv[])
{
  int num;
  int *data;

  scanf("%d", &num);

  data = (int *)malloc(sizeof(int) * num);

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

  for (i = num - 1; i >= 0; i--) {
    printf("%d", data[i]);
    
    if (i != 0)
      printf("\n");
  }

  free(data);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   10 |   data = (int *)malloc(sizeof(int) * num);
      |                 ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:17: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   10 |   data = (int *)malloc(sizeof(int) * num);
      |                 ^~~~~~
main.c:10:17: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:12:8: error: 'i' undeclared (first use in this function)
   12 |   for (i = 0; i < num; i++) {
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:3: error: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   23 |   free(data);
      |   ^~~~
main.c:23:3: note: include '<stdlib.h>' or provide a declaration of 'free'
main.c:23:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
main.c:23:3: note: include '<stdlib.h>' or provide a declaration of 'free'
Language: C

#include <stdio.h>

int main(void) {
    
    int i;
    int n;
    int a[100];

    scanf("%d", &n);

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

    for(i = n; i >= 0; i--) {
        printf("%d", a[i]);
        if(i != 0) {
            putchar(' ');
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:21: error: lvalue required as unary '&' operand
   12 |         scanf("%d", &(a+i));
      |                     ^
Language: C

#include <stdio.h>

int main(void){
  int array[128];
  int i;

  scanf("%d",&n);
  for(i=0;i<n;i++)  scanf("%d",&array[i]);
  for(i=n-1;i>=1;i--)  printf("%d ",array[i]);
  printf("%d\n",array[0]);

  return 0;
}

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

#include<stdio.h>

int main(void)
{
	int i;
	int no;
	int v[100];
	
	scanf("%d",&no);
	for(i=0;i<no;i++){
		scanf("%d",&v[i]);
	}
	for(i=no;i>0;i--){
		printf("%d",v[i-1]);
		if(i == 1){
			break;
		}
		printf(" ");
	}
	printf("\n");
	return 0;

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

#include<stdio.h>

int main(void)
{
  int n, i, j;
  scanf("%d",&n);
  int arr[n];

  for(i=n-1; i>-1; i--)
    {
      scanf("%d",&arr[i]);
    }
  for(j=0; j<n; j++)
    {
      printf("%d ",arr[j]);
    }
  prontf("\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:3: error: implicit declaration of function 'prontf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |   prontf("\n");
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>

int main(void) {
	int i;
	int a[100];
	int k, j;
	
	scanf("%d", &i);
	
	for(k=0;k<i;k++){
	scanf("%d", &a[k]);
	}
	
	for(j=(i-1);j>=0;j--){
		printf("%d", a[j]);
		if(j!=0){
		printf(" ");
		}
		else{
		printf("\n");
		}
		
	}

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

#include <stdio.h>

int main(void) {
	int i[100];
	int x,n;
	scanf("%d",&x);
	for(n=0;n<x;n++){
		scanf("%d",&i[n]);
	}
	for(n=x-1;n=>0;n--){
		printf("%d",i[n]);
	}
		
		
		
		if(n!=0){printf(" ")}
		else {printf("\n")}
	}
	// your code goes here
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected expression before '>' token
   10 |         for(n=x-1;n=>0;n--){
      |                     ^
main.c:16:37: error: expected ';' before '}' token
   16 |                 if(n!=0){printf(" ")}
      |                                     ^
      |                                     ;
main.c:17:35: error: expected ';' before '}' token
   17 |                 else {printf("\n")}
      |                                   ^
      |                                   ;
main.c: At top level:
main.c:20:9: error: expected identifier or '(' before 'return'
   20 |         return 0;
      |         ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
	int i[100];
	int x,n;
	scanf("%d",&x);
	for(n=0;n<x;n++){
		scanf("%d",&i[n]);
	}
	for(n=x-1;n=>0;n--){
		printf("%d",i[n]);
	
		
		if(n!=0){printf(" ")}
	}
	printf("\n");
	// your code goes here
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected expression before '>' token
   10 |         for(n=x-1;n=>0;n--){
      |                     ^
main.c:14:37: error: expected ';' before '}' token
   14 |                 if(n!=0){printf(" ")}
      |                                     ^
      |                                     ;
Language: C

#include <stdio.h>

int main(void) {
	int i[100];
	int x,n;
	scanf("%d",&x);
	for(n=0;n<x;n++){
		scanf("%d",&i[n]);
	}
	for(n=x-1;n>=0;n--){
		printf("%d",i[n]);
	
		
		if(n!=0){printf(" ")}
	}
	printf("\n");
	// your code goes here
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:37: error: expected ';' before '}' token
   14 |                 if(n!=0){printf(" ")}
      |                                     ^
      |                                     ;
Language: C

#include <stdio.h>

int main (void)
{
	int n,i,p,X[100];
	
	scanf("%d/n",&n);
	
	for(i = 0;i < n;i++){
	
	X[i]=i+1;
	scanf("%d\n",&X[i]);

	}
	
	for(i=0;i<n;i++){
		
		printf("%d ",X[i]);
		
	}
	
	return 0;

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

#include <stdio.h>

2. 

3.int main (void)

4.{

5.	int n,i,p,X[100];

6. 

7.	scanf("%d/n",&n);

8. 

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

10. 

11.	scanf("%d\n",&X[i]);

12. 

13.	}

14. 

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

16. 

17.		if(p<n-1){

18.		printf(" ");

19.		printf("%d ",X[i]);

20. 

21.	}else{

22.	}

23. 

24.	}

25. 

26.	return 0;

27. 

28.}

Compiler output:
main.c:3:1: error: expected identifier or '(' before numeric constant
    3 | 2.
      | ^~
main.c:5:1: error: invalid suffix "int" on floating constant
    5 | 3.int main (void)
      | ^~~~~
Language: C

#include<stdio.h>
int main(void) {
int i,n;
int ans[];

scanf("%d",&n);

for (i = 0; i < n; i++) {
scanf("%d", &ans[i]);
}
for (i = n-1; i < 0; i--) {
printf("%d");
if(i != 0) {
printf(" ");
}
printf("\n");

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: array size missing in 'ans'
    4 | int ans[];
      |     ^~~
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
int main(void) {
int i,n;
int ans[];

scanf("%d",&n);

for (i = 0; i < n; i++) {
scanf("%d", &ans[i]);
}
for (i = n-1; i < 0; i--) {
printf("%d", ans[i]);
if(i != 0) {
printf(" ");
}
printf("\n");

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: array size missing in 'ans'
    4 | int ans[];
      |     ^~~
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
int main(void) {
int i,n;
int ans[];

scanf("%d",&n);

for (i = 0; i < n; i++) {
scanf("%d", &ans[i]);
}
for (i = n-1; i < 0; i--) {
printf("%d", ans[i]);
if(i != 0) {
printf(" ");
}
}
printf("\n");

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: array size missing in 'ans'
    4 | int ans[];
      |     ^~~
Language: C

#include<stdio.h>
 
int main (void)
{ 
  int n;
  scanf("%d", &n);
  int array[n];
  for(i=0, i <= n-1; i++){
  	scanf("%d", &array[i]);
  }
  for(i=n-1, i >= 2; i--){
  	printf("%d ", &array[i]);
  }
  printf("%d\n", &array[1]);
  return 0;
}

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

#include <stdio.h>

int main(){
 int n, i;
 scanf("%d", &n);

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

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

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected ';' before '}' token
    9 |   scanf("%d", &array[i])
      |                         ^
      |                         ;
   10 |  }
      |  ~                       
main.c:13:31: error: expected ';' before '}' token
   13 |   printf("%d ", &array[n-i-1])
      |                               ^
      |                               ;
   14 |  }
      |  ~
Language: C

#include <stdio.h>

int main(){
 int n, i;
 int array[100];

 scanf("%d", &n);

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

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

 printf("%d" array[n-1])

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:13: error: expected ')' before 'array'
   17 |  printf("%d" array[n-1])
      |        ~    ^~~~~~
      |             )
main.c:17:25: error: expected ';' before 'return'
   17 |  printf("%d" array[n-1])
      |                         ^
      |                         ;
   18 | 
   19 |  return 0;
      |  ~~~~~~
Language: C

#include <stdio.h>

int main(){
 int n, i;
 int array[100];

 scanf("%d", &n);

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

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

 printf("%d" array[n-1]);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:13: error: expected ')' before 'array'
   17 |  printf("%d" array[n-1]);
      |        ~    ^~~~~~
      |             )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:13: error: expected ';' before 'return'
   14 | printf("\n")
      |             ^
      |             ;
   15 | return 0;
      | ~~~~~~
Language: C

#include <stdio.h>

int x,y;
int hoge;
main(){
	
	scanf("%d",x);
	int hai[x];
	for(hoge=0;hoge<=x;hoge++){
		scanf("%d",y);
		int[hoge]=y;
	}
	
	for(hoge=x;hoge>=0;hoge--){
		if(hoge==0){printf("%d\n",a[hoge])}
		else{printf("%d ",hai[hoge])}
		
		
	}
	
  return 0;
}
  

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:20: error: expected identifier or '(' before '[' token
   11 |                 int[hoge]=y;
      |                    ^
main.c:15:43: error: 'a' undeclared (first use in this function)
   15 |                 if(hoge==0){printf("%d\n",a[hoge])}
      |                                           ^
main.c:15:43: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:51: error: expected ';' before '}' token
   15 |                 if(hoge==0){printf("%d\n",a[hoge])}
      |                                                   ^
      |                                                   ;
main.c:16:45: error: expected ';' before '}' token
   16 |                 else{printf("%d ",hai[hoge])}
      |                                             ^
      |                                             ;
Language: C

#include <stdio.h>
int main(){
	int i, N, ary[256];

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

	for( i=N; i--; ){
	if(i) printf("\n");
	printf( "%d", ary[i] );


	return 0;
}

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

#include <stdio.h>
int main(void)
{
	int n,i;
	int array[100];
	scanf("%d",&n);
	for (i=1;i<=n;i++){
		scanf("%d",&array[i]);
	}
	for (i=n;i>=2;i--){
		printf("%d ",array[i]);
	}
	printf("%d\n,array[1]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:16: warning: missing terminating " character
   13 |         printf("%d\n,array[1]);
      |                ^
main.c:13:16: error: missing terminating " character
   13 |         printf("%d\n,array[1]);
      |                ^~~~~~~~~~~~~~~~
main.c:14:9: error: expected expression before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:14:18: error: expected ';' before '}' token
   14 |         return 0;
      |                  ^
      |                  ;
   15 | }
      | ~
Language: C

#include <stdio.h>


int main(void) {

	// 1_4-D Min,Max and Sum

	int n;
	int a[100];
	int i;
	
	scanf("%d\n",&n);

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

        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:17: error: 'min' undeclared (first use in this function); did you mean 'main'?
   19 |                 min = 0;
      |                 ^~~
      |                 main
main.c:19:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:17: error: 'max' undeclared (first use in this function)
   20 |                 max = 0;
      |                 ^~~
Language: C

#include <stdio.h>

int main( void 
{
	int arry[];
	int length, number, cou;
	
	scanf( "%d", &length );
	cou = 0;
	
	while( cou < length )
	{
		scanf( "%d", arry[ cou ] );
		cou++;
	}
	
	while( cou >= 0 )
	{
		if( cou == 0 )
		{
			printf( "%d\n", arry[ cou ] );
		}
		else
		{
			printf( "%d ", arry[ cou ] );
			cou--;
		}
	}

	return 0;
}

Compiler output:
main.c:4:1: error: expected ';', ',' or ')' before '{' token
    4 | {
      | ^
Language: C

#include <stdio.h>

int main( void )
{
	int arry[];
	int length, number, cou;
	
	scanf( "%d", &length );
	cou = 0;
	
	while( cou < length )
	{
		scanf( "%d", arry[ cou ] );
		cou++;
	}
	
	while( cou >= 0 )
	{
		if( cou == 0 )
		{
			printf( "%d\n", arry[ cou ] );
		}
		else
		{
			printf( "%d ", arry[ cou ] );
			cou--;
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: array size missing in 'arry'
    5 |         int arry[];
      |             ^~~~
Language: C

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

 	int n,a[100];
	scanf("%d",&n);
	printf("\n");
	for(int i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(int b=n-1;b>=0;b--){
		printf("%d",a[b]);
		if(b!=0){
			printf(" ");
		}
	}
	return 0;

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

#include <stdio.h>
int main(void){
    // Here your code !
    int n,i,a[99]={0},b[99]={0};
    scanf("%d",&n);
    for(i = 0;i < n;i++)
    {
        scanf("%d",&a[i]);
        b[i] = a[i];
    }
    for(;i-1 >= 0;(i-1)--)
    {
        printf("%d",b[i]);
        if(i > 0)
        {
            printf(" ");
        }
        else printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:24: error: lvalue required as decrement operand
   11 |     for(;i-1 >= 0;(i-1)--)
      |                        ^~
Language: C

#Include<stdio.h>

int main() {
  
   int N[100];
   int n,i;
   
   sacnf("%d\n",&n);
    
   for (i=0; i<n; i++) {
      scanf("%d",&N[ i ]);
   }
  
   for (i=n-1; i>=0; i--) {
      printf("%d",&N[ i ]); 
   }
 
   return 0;

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'sacnf' [-Wimplicit-function-declaration]
    8 |    sacnf("%d\n",&n);
      |    ^~~~~
main.c:11:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |       scanf("%d",&N[ i ]);
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #Include<stdio.h>
main.c:11:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |       scanf("%d",&N[ i ]);
      |       ^~~~~
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |       printf("%d",&N[ i ]);
      |       ^~~~~~
main.c:15:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main() {
  
   int N[100];
   int n,i;
   
   sacnf("%d\n",&n);
    
   for (i=0; i<n; i++) {
      scanf("%d",&N[ i ]);
   }
  
   for (i=n-1; i>=0; i--) {
      printf("%d",&N[ i ]); 
   }
 
   return 0;

}

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

#include
int main(void){
    int n,i;
    scanf("%d",&n);
    int a[n];
    for(i=0; i<n; i++)
        scanf("%d",&a[i]);
    for(i=n-1; i>=0; i--)
        printf("%d ",a[i]);

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |         printf("%d ",a[i]);
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: error: expected declaration or statement at end of input