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

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line=br.readLine();
		line=br.readLine();
		String[] nums=line.split(" ");
		line="";
		for(int n=nums.length-1;n>=0;n--){
			line+=nums[n]+" ";
		}
		System.out.println(line.substring(0,line.Lenth-2));
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		System.out.println(line.substring(0,line.Lenth-2));
		                                        ^
  symbol:   variable Lenth
  location: variable line of type String
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line=br.readLine();
		line=br.readLine();
		String[] nums=line.split(" ");
		line="";
		for(int n=nums.length-1;n>=0;n--){
			line+=nums[n]+" ";
		}
		System.out.println(line.substring(0,line.Length-2));
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		System.out.println(line.substring(0,line.Length-2));
		                                        ^
  symbol:   variable Length
  location: variable line of type String
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line=br.readLine();
		line=br.readLine();
		String[] nums=line.split(" ");
		line="";
		for(int n=nums.length-1;n>=0;n--){
			line+=nums[n]+" ";
		}
		System.out.println(line.substring(0,line.length-2));
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		System.out.println(line.substring(0,line.length-2));
		                                        ^
  symbol:   variable length
  location: variable line of type String
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n;
		n=cin.nextInt();
		int[] x = new int[n];
			for(int i=0;i<n;++i){
				x[i]=cin.nextInt();
			}
			while(true){
				if(n!=1)
				System.out.print(x[n-1]+" ");
				n=n-1;
				if(n==1){
					System.out.print(x[n-1]);
				}
				if(n==0){
					break;
				}
			}
	}

Compiler output:
Main.java:23: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n;
		n=cin.nextInt();
		int[] x = new int[n];
			for(int i=0;i<n;++i){
				x[i]=cin.nextInt();
			}
			while(true){
				if(n!=1 && n!=0){
					System.out.print(x[n-1]+" ");
					n=n-1;
				}
				if(n==1){
					System.out.print(x[n-1]);
				}
				if(n==0){
					break;
				}
			}
	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: C

#include <stdio.h>
#define PI 3.14159265358979323846264338

int main(){

	int a[100] = {0};
	int n;

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

	for (i=n-1;i>0;i--)
		printf("%d ", &a[i]);
	printf("%d", &a[i]);
	
	return 0;

}

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

#include <stdio.h>

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

  scanf("%d", &n);

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

  for(i=0,i<n;i++){
    printf("%d",a[n-1-i]);
    printf((n-1)==i ? "\n" : " ");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before ')' token
    8 |   for(i=0,i<n;i++)
      |                  ^
      |                  ;
main.c:11:18: error: expected ';' before ')' token
   11 |   for(i=0,i<n;i++){
      |                  ^
      |                  ;
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include <stdio.h>

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

  scanf("%d", &n);

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

  for(i=0,i<n;i++){
    printf("%d",a[n-1-i]);
    printf((n-1)==i ? "\n" : " ");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before ')' token
    8 |   for(i=0,i<n;i++)
      |                  ^
      |                  ;
main.c:11:18: error: expected ';' before ')' token
   11 |   for(i=0,i<n;i++){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
int main(void){
     int n,a[100],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]);
     printf("%d\n",a[0]);


    return 0;

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

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected expression before '?' token
    5 |     ??????scanf("%d",&n);
      |     ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(){
	int i,n;
	int* a;
	a=(int *)malloc(sizeof(int)*(n+1);

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

Compiler output:
main.c: In function 'main':
main.c:6:42: error: expected ')' before ';' token
    6 |         a=(int *)malloc(sizeof(int)*(n+1);
      |                        ~                 ^
      |                                          )
main.c:17:18: error: expected ';' before '}' token
   17 |         return 0;
      |                  ^
      |                  ;
   18 | }
      | ~
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]){
    int n, i;
    int a[101];
    scanf("%d", &n);
    for(i=0;i<n;i++){
        scanf(" %d", &a[i]);
    }
    printf("%d",a[n-1]);
    for(i=n-2;i>=0;i--){
        printf(" %d",a[i]);
    }
    printf("\n")
    return 0;
}

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

#include <stdio.h>

int main(int argc, const char * argv[]){
    int n, i;
    int a[101];
    scanf("%d", &n);
    for(i=0;i<n;i++){
        scanf("%d ", &a[i]);
    }
    printf("%d",a[n-1]);
    for(i=n-2;i>=0;i--){
        printf(" %d",a[i]);
    }
    printf("\n")
    return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:25:3: error: stray '\343' in program
   25 | <U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000>return 0;
      |         ^~~~~~~~
main.c:25:1: error: unknown type name '\U000030c4'
   25 | ツ　ツ　ツ　ツ　return 0;
      | ^~
main.c:25:7: error: stray '\343' in program
   25 | <U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000>return 0;
      |                         ^~~~~~~~
main.c:25:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\U000030c4'
   25 | ツ　ツ　ツ　ツ　return 0;
      |         ^~
main.c:25:11: error: stray '\343' in program
   25 | <U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000>return 0;
      |                                         ^~~~~~~~
main.c:25:15: error: stray '\343' in program
   25 | <U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000><U+30C4><U+3000>return 0;
      |                                                         ^~~~~~~~
Language: C

#include <iostream>
using namespace std;

int main () {
    int n, i, num[100];
	
	cin >> n;
	for (i=0; i<n; i++) {
		cin >> num[i];
	}
	
	for (i=n-1; i>=0; i--) {
		cout << num[i];
		if (i != 0) cout << " ";		
	}
	cout << endl;
	
    return 0;
}

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

z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
main.c:1:8: error: return type defaults to 'int' [-Wimplicit-int]
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      |        ^~~~
main.c: In function 'main':
main.c:1:8: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:22: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      |                      ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
main.c:1:22: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      |                      ^~~~~
main.c:1:22: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:54: error: 'j' undeclared (first use in this function)
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      |                                                      ^
main.c:1:54: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:57: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | z[100];main(i){for(;~scanf("%d",z-i--););for(++i;i++;j=!printf("%d%c",z[-i],i?32:10));}
      |                                                         ^~~~~~
main.c:1:57: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:57: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:57: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

import java.util.*;
public class Main{
    public static void main(String[] args){
		Scanner s=new Scanner(System.in);
    	String S = "";
		int N=s.nextInt();
    	int[] m=new int[111];
    	for(int i=0;i<N;i++)m[i]=s.nextInt();
    	S=S+m[N-1];
    	for(int i=N-2;i>=0;i--)S=S+" "+m[i];
    	System.out.println(S);
    }
}
//by TTTMongolia 11/05/2012

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main{
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main{
      |              ^~~~
Language: C

#include <stdio.h>
main(){

 int n,i;
 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]);
 }

return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:17: error: expected ';' before ')' token
    9 |  for(i=0,i<n,++i){
      |                 ^
      |                 ;
main.c:9:17: error: expected expression before ')' token
main.c:13:18: error: expected ';' before ')' token
   13 |  for(i=n,i>=0,--i){
      |                  ^
      |                  ;
main.c:13:18: error: expected expression before ')' token
Language: C

// AIZU ONLINE JUDGE http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10011//*#include <stdio.h>int main(){    int i, n;    int arr[100];    scanf("%d", &n);    for(i=0;i<n;i++){        scanf(" %d", &arr[i]);    }    for(i=0;i<n;i++){        if(i)printf(" ");        printf("%d", arr[n-i-1]);    }    printf("\n");    return 0;}//*/

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:8: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |        ^~~~
main.c: In function 'main':
main.c:1:8: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:8: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |                  ^~~~~
main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:74: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |                                                                          ^~~~~~
main.c:1:74: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:74: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:74: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:110: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |                                                                                                              ^~~~
main.c:1:110: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:118: error: expected ';' before ')' token
    1 | a[100];main(n,i){scanf("%d",&n);for(i=n;i--;)scanf("%d",a+i);for(;++i<n;)printf("%s%d",i?" ":"",a[i]);return puts(""));}
      |                                                                                                                      ^
      |                                                                                                                      ;
main.c:1:118: error: expected statement before ')' token
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=0,i<n,i++){
if(i<n-1)printf("%d ",a[i]);
if(i<n)printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ';' before ')' token
   11 | for(i=0,i<n,i++){
      |                ^
      |                ;
main.c:11:16: error: expected expression before ')' token
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=0,i<n,i++){
if(i<n-1)printf("%d ",a[i]);
if(i<n)printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ';' before ')' token
   11 | for(i=0,i<n,i++){
      |                ^
      |                ;
main.c:11:16: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main(){

int n,i,list[100];

scanf("%d",&n);

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 | if(i==0)print("%d",list[n-1-i]);
      |         ^~~~~
      |         printf
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main() {
      | ^~~~
main.c: In function 'main':
main.c:13:16: error: expected ')' before 'a'
   13 |   printf("%d\n"a[1]);
      |         ~      ^
      |                )
Language: C

#include <stdio.h>

int main(void){
         int n,i,j;
           scanf("%d",&n);
         int num[n];
            for(i=0; i<n;i++){
              scanf("%d",&num[i]);
            }
            for(j=n-1;0<=j; j--){
              printf("%d",num[j]);
            return 0;
        }
          

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

include <stdio.h>
int main(void){
  int a[100];
  int n,i;
  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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
main(n){scanf("%d",&n),x(n-1,n),exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
      | ^
main.c: In function 'x':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
main.c:1:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
      |        ^~~~~
main.c:1:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
      |                                ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:54: error: expected ';' before '}' token
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
      |                                                      ^
      |                                                      ;
main.c: At top level:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(n){scanf("%d",&n),x(n-1,n),exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:2:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:2:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | main(n){scanf("%d",&n),x(n-1,n),exit(0);}
      |         ^~~~~
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:33: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    2 | main(n){scanf("%d",&n),x(n-1,n),exit(0);}
      |                                 ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | x(n,a){scanf("%d",&a),x(n-1,a),printf(n?" %d":"%d",a)};
main.c:2:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    2 | main(n){scanf("%d",&n),x(n-1,n),exit(0);}
      |                                 ^~~~
main.c:2:33: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

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

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

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

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

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

#include <stdio.h>

#define LEN 50

int main(void) {
int len;
int a[LEN];
int k;

scanf("%d", &len);

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

for ( k = k-1; k >= 0; k-- ) {
printf("%d ", arr[k]);
}
puts("");


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: 'arr' undeclared (first use in this function)
   13 | scanf("%d", &arr[k]);
      |              ^~~
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

int main(){
	
	int n;

	scanf("%d", &n);

	int a[n];

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         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:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d", &n);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:23: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |                 if(i) printf(" ");
      |                       ^~~~~~
main.c:14:23: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:23: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:23: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |                 printf("%d", a[i]);
      |                 ^~~~~~
main.c:15:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |         printf("\n");
      |         ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
	
	int n;
	int i;

	scanf("%d", &n);

	int a[n];

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

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

	printf("\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         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:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d", &n);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |                         if(i) printf(" ");
      |                               ^~~~~~
main.c:15:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("%d", a[i]);
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |         printf("\n");
      |         ^~~~~~
main.c:19:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
main(){

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

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

return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:12:20: error: expected ')' before 'array'
   12 |       printf("%d\n"array[i]);
      |             ~      ^~~~~
      |                    )
Language: C

#include<stdio.h>
main(){

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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>
      | ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:15: error: 'MAX' undeclared (first use in this function)
    3 |         int a[MAX];
      |               ^~~
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d\n", &n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d\n", &n);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("%d", a[i]);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |         printf("%d\n", a[i]);
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:15: error: 'MAX' undeclared (first use in this function)
    3 |         int a[MAX];
      |               ^~~
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         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:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d", &n);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("%d", a[i]);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |         printf("%d\n", a[i]);
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:13:21: error: 'a' undeclared (first use in this function)
   13 |         scanf("%d",&a[i]);
      |                     ^
main.c:13: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 const *argv[])
{
  int n;
  int numseq[100];

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

  printf("\n");

  return 0;
}

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

#include <stdio.h>

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

  scanf("%d", &n);

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

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

    if(i==0)
      printf("\n");
    else
      printf(" ");
  }

  rerutn 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ')' before 'i'
    9 |   for(i=0; i<n; i++i)
      |      ~             ^
      |                    )
main.c:24:3: error: 'rerutn' undeclared (first use in this function)
   24 |   rerutn 0;
      |   ^~~~~~
main.c:24:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:9: error: expected ';' before numeric constant
   24 |   rerutn 0;
      |         ^~
      |         ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:3: error: 'rerutn' undeclared (first use in this function)
   24 |   rerutn 0;
      |   ^~~~~~
main.c:24:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:9: error: expected ';' before numeric constant
   24 |   rerutn 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>

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

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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:11: error: subscripted value is neither array nor pointer nor vector
   10 |       if(a[c-1]<a[c]){
      |           ^
main.c:10:18: error: subscripted value is neither array nor pointer nor vector
   10 |       if(a[c-1]<a[c]){
      |                  ^
main.c:11:12: error: subscripted value is neither array nor pointer nor vector
   11 |         d=a[c];
      |            ^
main.c:12:10: error: subscripted value is neither array nor pointer nor vector
   12 |         a[c]=a[c-1];
      |          ^
main.c:12:15: error: subscripted value is neither array nor pointer nor vector
   12 |         a[c]=a[c-1];
      |               ^
main.c:13:10: error: subscripted value is neither array nor pointer nor vector
   13 |         a[c-1]=d;
      |          ^
main.c:19:18: error: expected ')' before 'a'
   19 |       printf("%d"a[b]);
      |             ~    ^
      |                  )
main.c:22:19: error: expected ')' before 'a'
   22 |       printf("%d "a[b]);
      |             ~     ^
      |                   )
Language: C

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

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

include<stdio.h>
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--){
    printf("%d ",a[i]);
  }
  printf("%d\n",a[0]);
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:19: error: stray '\343' in program
    5 |         scanf("%d"<U+3000>,&i);
      |                   ^~~~~~~~
main.c:14:30: error: stray '\343' in program
   14 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

	scanf("%d",&i);

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

Compiler output:
main.c: In function 'main':
main.c:16:30: error: stray '\343' in program
   16 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

	scanf("%d",&i);

	for(j=0; j>i; j++){

		scanf("%d\n",&a[j]);
	}
	
	for(j=i=1; j>=0; j--){
		if(j==0)
		{
			printf("%d",a[j]);
			break　;
		}
		printf("%d　",a[j]);
	}
}

Compiler output:
main.c: In function 'main':
main.c:17:30: error: stray '\343' in program
   17 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

	scanf("%d",&i);

	for(j=0; j>i; j++){

		scanf("%d",&a[j]);
	}
	
	for(j=i=1; j>=0; j--){
		if(j==0)
		{
			printf("%d",a[j]);
			break　;
		}
		printf("%d　",a[j]);
	}
}

Compiler output:
main.c: In function 'main':
main.c:17:30: error: stray '\343' in program
   17 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

	scanf("%d",&i);

	for(j=0; j＜i; j++){

		scanf("%d",&a[j]);
	}
	
	for(j=i=1; j>=0; j--){
		if(j==0)
		{
			printf("%d/n",a[j]);
			break　;
		}
		printf("%d　",a[j]);
	}
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: 'j\U0000ff1ci' undeclared (first use in this function)
    8 |         for(j=0; j＜i; j++){
      |                  ^~~~
main.c:8:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:30: error: stray '\343' in program
   17 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

	scanf("%d",&i);

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

		scanf("%d ",&a[j]);
	}
	
	for(j=i-1; j>=0; j--){
		if(j==0)
		{
			printf("%d/n",a[j]);
			break　;
		}
		printf("%d ",a[j]);
	}
}

Compiler output:
main.c: In function 'main':
main.c:17:30: error: stray '\343' in program
   17 |                         break<U+3000>;
      |                              ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'scanf'
    5 |     j=5
      |        ^
      |        ;
    6 |     scanf("%d",&n);
      |     ~~~~~
Language: C

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

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:46: error: expected ';' before 'printf'
    7 |         for(i=n-1;i>0;i--) printf("%d ",a[i])
      |                                              ^
      |                                              ;
    8 |         printf("%d\n",a[0]);
      |         ~~~~~~
Language: C++

#include <stdio.h>

int main(void)
{
    scanf("%d", &n);
    int x[n];
    for (int i = n-1; i > 0; --i) {
        printf("%d\n", x[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'n' was not declared in this scope
    5 |     scanf("%d", &n);
      |                  ^
a.cc:8:24: error: 'x' was not declared in this scope
    8 |         printf("%d\n", x[i]);
      |                        ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'for'
    8 |     for (int i = 0, i < n, ++1) {
      |     ^~~
a.cc:11:24: error: expected ';' before '>=' token
   11 |     for (int j = n-1, j >= 0, --1) {
      |                        ^~~
      |                        ;
a.cc:11:25: error: expected primary-expression before '>=' token
   11 |     for (int j = n-1, j >= 0, --1) {
      |                         ^~
a.cc:11:33: error: lvalue required as decrement operand
   11 |     for (int j = n-1, j >= 0, --1) {
      |                                 ^
a.cc:11:34: error: expected ';' before ')' token
   11 |     for (int j = n-1, j >= 0, --1) {
      |                                  ^
      |                                  ;
a.cc:12:22: error: 'x' was not declared in this scope
   12 |         printf("%d", x[j]);
      |                      ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'prntf' was not declared in this scope; did you mean 'printf'?
   14 |     prntf("%d\n", x[0]);
      |     ^~~~~
      |     printf
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc:9:15: warning: missing terminating " character
    9 |         scanf("%d, &a[i]);
      |               ^
a.cc:9:15: error: missing terminating " character
    9 |         scanf("%d, &a[i]);
      |               ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'i' was not declared in this scope
   14 |         printf("%d" , a[i]);
      |                         ^
a.cc:19:11: error: expected ';' before '}' token
   19 |        --j
      |           ^
      |           ;
   20 |         }
      |         ~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'i' was not declared in this scope
   13 |         printf("%d" , a[i]);
      |                         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d", &n);
      |     ^~~~~
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("%d", a[n-1-i]);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include<stdio.h>

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

 
Compile Error Logs: 

code.cpp: In function ‘int main()’: 
code.cpp:5:19: error: ‘scanf’ was not declared in this scope 
 code.cpp:10:30: error: ‘printf’ was not declared in this scope 

 
 
Status 
Judge: 0/4  C++  CPU: 00.00 sec  Memory: 0 [KB]  Length: 316 [B]  2014-07-02 22:22  2014-07-02 22:22  
Results for testcases 

















 Case #1:  : Compile Error  - -  in1.txt   40 B   out1.txt   37 B  
  

Compiler output:
a.cc:26:23: error: extended character ‘ is not valid in an identifier
   26 | code.cpp: In function ‘int main()’:
      |                       ^
a.cc:26:34: error: extended character ’ is not valid in an identifier
   26 | code.cpp: In function ‘int main()’:
      |                                  ^
a.cc:27:23: error: extended character ‘ is not valid in an identifier
   27 | code.cpp:5:19: error: ‘scanf’ was not declared in this scope
      |                       ^
a.cc:27:23: error: extended character ’ is not valid in an identifier
a.cc:28:25: error: extended character ‘ is not valid in an identifier
   28 |  code.cpp:10:30: error: ‘printf’ was not declared in this scope
      |                         ^
a.cc:28:25: error: extended character ’ is not valid in an identifier
a.cc:52:7: error: stray '#' in program
   52 |  Case #1:  : Compile Error  - -  in1.txt   40 B   out1.txt   37 B
      |       ^
a.cc:24:1: error: 'Compile' does not name a type
   24 | Compile Error Logs:
      | ^~~~~~~