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

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
         int n=sc.nextInt();
        Integer h[]=new Integer[n];
        Map<Integer,Integer>map=new TreeMap<>();
        for(int i=0;i<n;i++){
            map.put(sc.nextInt(),i);
        }
        for(Integer value:map.values()){
            System.out.println(value+1);
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc=new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:16: error: 'sc' was not declared in this scope
    6 |          int n=sc.nextInt();
      |                ^~
a.cc:7:9: error: 'Integer' was not declared in this scope
    7 |         Integer h[]=new Integer[n];
      |         ^~~~~~~
a.cc:8:9: error: 'Map' was not declared in this scope
    8 |         Map<Integer,Integer>map=new TreeMap<>();
      |         ^~~
a.cc:8:29: error: 'map' was not declared in this scope
    8 |         Map<Integer,Integer>map=new TreeMap<>();
      |                             ^~~
a.cc:8:37: error: 'TreeMap' does not name a type
    8 |         Map<Integer,Integer>map=new TreeMap<>();
      |                                     ^~~~~~~
a.cc:8:45: error: expected primary-expression before '>' token
    8 |         Map<Integer,Integer>map=new TreeMap<>();
      |                                             ^
a.cc:8:47: error: expected primary-expression before ')' token
    8 |         Map<Integer,Integer>map=new TreeMap<>();
      |                                               ^
a.cc:12:21: error: expected ';' before 'value'
   12 |         for(Integer value:map.values()){
      |                     ^~~~~
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
a.cc:15:5: error: expected ';' before '}' token
a.cc:15:5: error: expected primary-expression before '}' token
a.cc:15:5: error: expected ')' before '}' token
a.cc:12:12: note: to match this '('
   12 |         for(Integer value:map.values()){
      |            ^
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
Language: C

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

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

#include<iostream>
#include <list>
using namespace std;
int main()
{
	int n;
	cin >> n;	
	int A [n] = { };
	int outp[n] = { };
	list<int> pos_index;
	for (int i = 0; i < n; i++) {
		cin >> A[i];
		pos_index.push_back((i+1));
	}
	for (int x = 1; x <= n; x++) {
		bool gefunden = false;
		list<int>::iterator it;
		for (it = pos_index.begin(); it != pos_index.end(); ++it)
		{
			nrsteps++;
			if (A[(int)*it - 1] == x) {
				outp[x - 1] = (int)*it;
				pos_index.remove((int)*it);
				gefunden = true;
			}
			if (gefunden) {
				break;
			}
		}
	}
	if (n > 0) {
		cout << outp[0];
	}
	if (n > 1) {
		for (int i = 1; i < n; i++) {
			cout << " " << outp[i];
		}
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: 'nrsteps' was not declared in this scope
   20 |                         nrsteps++;
      |                         ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

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

cin>>n;
for (i = 0; i< n; i++){
    cin>>a[i];
}

for (i = 1; i <= n; i++){
    for (j = 0; j < n; j++) {
    if (a[j] == i){
        cout << j+1<< endl;
    }
    }
}
return 0;
}#include <bits/stdc++.h>
using namespace std;

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

cin>>n;
for (i = 0; i< n; i++){
    cin>>a[i];
}

for (i = 1; i <= n; i++){
    for (j = 0; j < n; j++) {
    if (a[j] == i){
        cout << j+1<< endl;
    }
    }
}
return 0;
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include <bits/stdc++.h>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long int ll;
ll MOD = 1000000007;
ll INFL = 1ll << 60;
ll INF = 1 << 28;

// ====================================================================

int main() {

  int a;
  　cin >> a;

  vector<int> v(a);
  for (int i = 0; i < a; i++) {
    cin >> v[i];
  }

  vector<int> ans(a);

  for (int i = 0; i < a; i++) {
    ans[v[i] - 1] = i + 1;
  }

  for (int i = 0; i < a; i++) {
    cout << ans[i] << endl;
  }
  return 0;
}


Compiler output:
a.cc:14:3: error: extended character 　 is not valid in an identifier
   14 |   　cin >> a;
      |   ^
a.cc: In function 'int main()':
a.cc:14:3: error: '\U00003000cin' was not declared in this scope
   14 |   　cin >> a;
      |   ^~~~~
Language: C++

int main()
{
	int n;
	cin >> n;
	int a;
	int c[10 ^ 5];
	for (size_t i = 0; i < n; i++)
	{
		cin >> a;
		c[a - 1] = i + 1;
	}
	for (size_t i = 0; i < n; i++)
	{
		cout << c[i] << " ";
	}
	cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n;
      |         ^~~
a.cc:6:18: warning: result of '10^5' is 15; did you mean '1e5'? [-Wxor-used-as-pow]
    6 |         int c[10 ^ 5];
      |                  ^
      |               --
      |               1  e
a.cc:6:15: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    6 |         int c[10 ^ 5];
      |               ^~
      |               0xa
a.cc:7:14: error: 'size_t' was not declared in this scope
    7 |         for (size_t i = 0; i < n; i++)
      |              ^~~~~~
a.cc:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | int main()
a.cc:7:28: error: 'i' was not declared in this scope
    7 |         for (size_t i = 0; i < n; i++)
      |                            ^
a.cc:12:14: error: 'size_t' was not declared in this scope
   12 |         for (size_t i = 0; i < n; i++)
      |              ^~~~~~
a.cc:12:14: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
a.cc:12:28: error: 'i' was not declared in this scope
   12 |         for (size_t i = 0; i < n; i++)
      |                            ^
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << c[i] << " ";
      |                 ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << endl;
      |         ^~~~
a.cc:16:17: error: 'endl' was not declared in this scope
   16 |         cout << endl;
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;

int main() {
	int N;
	cin >> N;
	vector<int> A(N);
	rep(i, N) cin >> A.at(i);
	vector<int> ans(N);
	rep(i, N) ans.at(A.at(i) - 1) = i + 1;
	rep(i, N) cout << ans.at(i) << " ";
  　cout << endl;
}


Compiler output:
a.cc:13:3: error: extended character 　 is not valid in an identifier
   13 |   　cout << endl;
      |   ^
a.cc: In function 'int main()':
a.cc:13:3: error: '\U00003000cout' was not declared in this scope
   13 |   　cout << endl;
      |   ^~~~~~
Language: Java

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Map<Integer,Integer> a = new HashMap<>();
        int []ans = new int [n];
        for(int i=0;i<n;i++){
            a.put(sc.nextInt()-1,i);
        }
        for(int i=0;i<n;i++){
            ans[i]=a.get(i);
            System.out.println(ans[i]+1);
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Map<Integer,Integer> a = new HashMap<>();
        ^
  symbol:   class Map
  location: class Main
Main.java:5: error: cannot find symbol
        Map<Integer,Integer> a = new HashMap<>();
                                     ^
  symbol:   class HashMap
  location: class Main
4 errors
Language: Java

import java.util.*;
import java.io.*;
 
class Main {
  public static void main(String argv[]) {
    int n;
    Scanner sc = new Scanner(System.in);
    n = Integer.parseInt(sc.next());
    int a[] = new int[n];
    for (int i = 0;i < n;i++) {
      a[i] = Integer.parseInt(sc.next());
    }
    
    PrintWriter out = new PrintWriter(System.out);
      for (int j = 0;j < n;j++) {
        if (a[j] == 0) continue;
        if (int i = 1;i <= n;i++) {
          if (a[j] == i) {
            out.print((j + 1) + " ");
            a[j] = 0;
            break;
          }
        }
      }
    }
    out.println();
    out.flush();
  }
}

Compiler output:
Main.java:17: error: '.class' expected
        if (int i = 1;i <= n;i++) {
                ^
Main.java:17: error: not a statement
        if (int i = 1;i <= n;i++) {
                        ^
Main.java:17: error: ';' expected
        if (int i = 1;i <= n;i++) {
                                ^
Main.java:26: error: <identifier> expected
    out.println();
               ^
Main.java:27: error: <identifier> expected
    out.flush();
             ^
Main.java:29: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++


InitDB()
 

 
 
void InitDB()
 

 
 
- Initializes the DataBase
 

 
 
Parameters:
 

 
 
Returns:
 

Add()
 

 
 
void Add(char* name, char* number, char* birthday, char* email, char* memo)
 

 
 
- Adds one record to the DataBase.

- A record contains of 5 fields such as name, number, birthday, email, memo.
 

 
 
Parameters:
 

 
 
name
 
: NAME field value
 

 
 
number
 
: NUMBER field value
 

 
 
birthday
 
: BIRTHDAY field value
 

 
 
email
 
: EMAIL field value
 

 
 
memo
 
: MEMO field value
 

 
 
Returns:
 

Delete()
 

 
 
int Delete(FIELD field, char* str)
 

 
 
- Delete record(s) which field value is matched to str.
 

 
 
Parameters:
 

 
 
field
 
: field information
 

 
 
str
 
: field value of record to delete
 

 
 
Returns:
 

 
 
int
 
: number of deleted records. If there is no deleted record, 0
 

Change()
 

 
 
int Change(FIELD field, char* str, FIELD changefield, char* changestr)
 

 
 
-Finds record(s) which field value is matched to str. then changes the changefield value of the corresponding record(s) to changestr
 

 
 
Parameters:
 

 
 
field
 
: field information
 

 
 
str
 
: field value
 

 
 
changefield
 
: information of field to change
 

 
 
changestr
 
: value of field to change
 

 
 
Returns:
 

 
 
int
 
: number of changed records, If there is no changed record, 0
 

Search()
 

 
 
RESULT Search(FIELD field, char* str, FIELD returnfield)
 

 
 
- Finds record(s) which field value is matched to str. The number of records and the returnfield value of record are returned. 
 

 

 
 
Parameters:
 

 
 
field
 
: field information
 

 
 
str
 
: field value
 

 
 
returnfield
 
: information of field to return
 

 
 
Returns:
 

 
 
count
 
: number of records which field value is matched to str
 

 
 
str
 
: returnfield value of corresponding record

if the count value is 0 or greater than or equal to 2, str is ignored.
 


Compiler output:
a.cc:7:1: error: expected constructor, destructor, or type conversion before 'void'
    7 | void InitDB()
      | ^~~~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
    int N;
    cin >> N;
    vector<int> A(N);
    for (int i = 0; i < N; i++) {
        cin >> vec.at(i);
    }

    vector<int> rev(N);
    for (int i = 0;i < N; i++) {
        rev.at(A.at(i) - 1) = i + 1;
    }

    for (int i = 0; i < N; i++) {
        cout << rev.at(i) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'vec' was not declared in this scope
    9 |         cin >> vec.at(i);
      |                ^~~
Language: C++

#include<iostream>
#include<unordered_map>

int main(void)
{
  int n = 0;
  std::cin >> n;
  std::unordered_map<int, int> map;
  int number = 0;
  for(int index = 0; n > count; ++count)
  {
    std::cin >> number;
    map.emplace_back(number, index + 1);
  }
  for(int number = 1; n >= number; ++number)
  {
    std::cout << map[number] << ' ';
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'count' was not declared in this scope
   10 |   for(int index = 0; n > count; ++count)
      |                          ^~~~~
a.cc:13:9: error: 'class std::unordered_map<int, int>' has no member named 'emplace_back'; did you mean 'emplace_hint'?
   13 |     map.emplace_back(number, index + 1);
      |         ^~~~~~~~~~~~
      |         emplace_hint
Language: Java

public class Main {

   
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int N=0;
        if(sc.hasNextInt())
        {
            N=sc.nextInt();
        }
        int[]Arr=new int[N];
        for(int i=0;i<N;i++)
        {
            Arr[i]=sc.nextInt();
        }
        
          int[]Arr1=new int[N];
          for(int i=0;i<N;i++)
          {
             Arr1[Arr[i]-1]=i+1;
          }
          for(int i=0;i<N;i++)
          {
          System.out.print(Arr1[i]);
          }
 
        // TODO code application logic here
    }
    
}


Compiler output:
Main.java:5: error: cannot find symbol
        Scanner sc=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc=new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

/**
 *
 * @author HP
 */
public class Main {

   
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int N=0;
        if(sc.hasNextInt())
        {
            N=sc.nextInt();
        }
        int[]Arr=new int[N];
        for(int i=0;i<N;i++)
        {
            Arr[i]=sc.nextInt();
        }
        ArrayList<Integer> Arr1=new ArrayList<>();
          //int[]Arr1=new int[N];
          for(int i=0;i<N;i++)
          {
              for(int j=0;j<N;j++)
              {
                  if(Arr[j]==i+1)
                  {
                      Arr1.add(j+1);
                  }
              }
          }
          for(int i=0;i<N;i++)
          {
          System.out.print(Arr1.get(i));
          }
 
        // TODO code application logic here
    }
    
}

Compiler output:
Main.java:22: error: cannot find symbol
        ArrayList<Integer> Arr1=new ArrayList<>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:22: error: cannot find symbol
        ArrayList<Integer> Arr1=new ArrayList<>();
                                    ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  
  int n;
  cin>>n;
  int a[n+1] , b[n+2;
  for(int i = 1 ; i <= n ; ++i)
    cin>>a[i] , b[a[i] = i;
                  
   for(int i = 1 ; i <= n ; ++i)
                  cout<<b[i]<<" ";
    cout<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ']' before ';' token
    8 |   int a[n+1] , b[n+2;
      |                     ^
      |                     ]
a.cc:10:17: error: 'b' was not declared in this scope
   10 |     cin>>a[i] , b[a[i] = i;
      |                 ^
a.cc:10:27: error: expected ']' before ';' token
   10 |     cin>>a[i] , b[a[i] = i;
      |                           ^
      |                           ]
a.cc:13:25: error: 'b' was not declared in this scope
   13 |                   cout<<b[i]<<" ";
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin >> n;
  vector<pain<int, int>> v(n);
  int ans=0;
  for(int i=0;i<n;i++) {
    int x;
    cin >> x;
    v[i] = make_pair(x, i+1);
  }
  sort(v.begin(),v.end());
  for(auto x: v) cout << x << " ";
  cout << endl;
}
                                          

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'pain' was not declared in this scope; did you mean 'main'?
    5 |   vector<pain<int, int>> v(n);
      |          ^~~~
      |          main
a.cc:5:23: error: template argument 1 is invalid
    5 |   vector<pain<int, int>> v(n);
      |                       ^~
a.cc:5:23: error: template argument 2 is invalid
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 |     v[i] = make_pair(x, i+1);
      |      ^
a.cc:12:10: error: request for member 'begin' in 'v', which is of non-class type 'int'
   12 |   sort(v.begin(),v.end());
      |          ^~~~~
a.cc:12:20: error: request for member 'end' in 'v', which is of non-class type 'int'
   12 |   sort(v.begin(),v.end());
      |                    ^~~
a.cc:13:15: error: 'begin' was not declared in this scope
   13 |   for(auto x: v) cout << x << " ";
      |               ^
a.cc:13:15: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:15: error: 'end' was not declared in this scope
   13 |   for(auto x: v) cout << x << " ";
      |               ^
a.cc:13:15: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<pair<int, int>> A(N);
  for(int i=0; i<N; i++){
    int a;
    cin >> a;
    A[i] = make_pair(a, i);
  }
  sort(A.begin(), A.end());
  for(int i=0; i<N; i++){
    cout << A[i].second << " ";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<pair<int, int>> A(N);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<math.h>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:7:23: error: expected primary-expression before '>' token
    7 |   vector<pair<int, int>> A(N);
      |                       ^~
a.cc:7:26: error: 'A' was not declared in this scope
    7 |   vector<pair<int, int>> A(N);
      |                          ^
a.cc:13:3: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   13 |   sort(A.begin(), A.end());
      |   ^~~~
      |   sqrt
Language: C++

#include <iostream>
2 #include <vector>
3 using namespace std;
4 int main(){
5 int N;
6 cin>>N;
7 vector<int> A(N);
8 for(int i=0;i<N;i++) cin>>A[i];
9
10 vector<int> rev(N);
11 for(int i=0;i<N;i++) rev[A[i]-1]=i+1;
12 for(int i=0;i<N;i++) cout<<rev[i]<<endl;
13 return 0;
14 }

Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 2 #include <vector>
      |   ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 #include <vector>
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 int main(){
      | ^
Language: C

include<stdio.h>
int main(void){
	int n;
	int i,j;
	int b[100000]={0};
	int a[100000]={0};
	if (scanf("%d", &n) == 1) {
	} else {
        printf("Failed to read integer.\n");
    }
	for(i=1;i<=n;i++){
		if (scanf("%d", &a[i]) == 1) {
		} else {
        	printf("Failed to read integer.\n");
    	}
	}
	for(j=1;j<=n;j++){
		for(i=1;i<=n;i++){
			if(j==a[i]){
				b[j]=i;
				break;
			}	
		}
	}
	for(i=1;i<=n;i++){
		printf("%d ",b[i]);
	}
	return 0;
}

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

#include <iostream>
#include <stdio.h>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <cstring>
#include <string>
#include <time.h>
#include <algorithm>
using namespace std;
#define INF 2147483647

long long get_gcd(long long a, long long b) {
	if (b == 0) {
		return a;
	}
	else {
		return get_gcd(b, a % b);
	}

}

/********************************* Main *********************************/
int main() {
	ios_base::sync_with_stdio(false);

	long long a, b; cin >> a >> b;
	long long min = a < b ? a : b;
	long long max = a > b ? a : b;
	long long gcd = get_gcd(max, min);

	long long cnt = 1;
	long long root = sqrt(gcd);
	vector<bool> check(root);

	for (long long i = 2; i <= root; i++) {
		if (gcd % i == 0 && check[i] == false) {
			cnt += 1;
			for (long long j = i + i; j <= root; j += i) {
				check[j] = true;
			}
		}
	}
	cout << cnt << "\n";
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:26: error: 'sqrt' was not declared in this scope
   35 |         long long root = sqrt(gcd);
      |                          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N, tmp;
  cin >> N;
  priorioty_queue<pair<int, int>> A;
  for(int i=0; i<N; i++){
    cin >> tmp;
    A.push(make_pair(i, tmp)); //出席番号と人数のペア
  }
/*
  pair<int, int> ptmp;
  for(int i=0; i<N; i++){
    for(int j=N-1; i<j; j--){
      if(A.at(j).second < A.at(j-1).second){
        ptmp = A.at(j);
        A.at(j) = A.at(j-1);
        A.at(j-1) = ptmp;
      }
    }
  }
  
  for(int i=0; i<N; i++){
    cout << A.at(i).first+1;
    if(i == N-1){
      cout << endl;
    }else{
      cout << " ";
    }
  }
  */
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'priorioty_queue' was not declared in this scope
    7 |   priorioty_queue<pair<int, int>> A;
      |   ^~~~~~~~~~~~~~~
a.cc:7:32: error: expected primary-expression before '>' token
    7 |   priorioty_queue<pair<int, int>> A;
      |                                ^~
a.cc:7:35: error: 'A' was not declared in this scope
    7 |   priorioty_queue<pair<int, int>> A;
      |                                   ^
Language: C++

#include <iostream>
#include <cstdint>
#include <vector>
#include <tuple>

using namespace std;
using u8 = uint64_t;
using u4 = uint32_t;


bool compare(const tuple<u4, u4> &a, const tuple<u4, u4> &b) {
    return get<1>(a) < get<1>(b);
}

int main() {
    u4 n;
    cin >> n;
    vector<tuple<u4, u4>> a(n);
    
    tuple<u4, u4> tmp;
    u4 tmp_in;
    for (u4 i=0; i < n; i++) {
        cin >> tmp_in;
        tmp = make_tuple(i, tmp_in);
        a[i] = tmp;
    }

    sort(a.begin(), a.end(), compare);

    for (auto t : a) {
        cout << get<0>(t)+1 << " ";
    }

    
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   28 |     sort(a.begin(), a.end(), compare);
      |     ^~~~
      |     short
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
	struct classes {
		int a, b;
		operator < (const classes& x) const {
			return b > x.b;
		}
	};
	vector <classes> v;
	int n, a ,b;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> b;
		a = i;
		v.push_back((classes){a, b});
	}
	sort(v.begin(), v.end());
	for (int i = n - 1; i >= 0; i--) cout << v[i].a << ' ';
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive]
    8 |                 operator < (const classes& x) const {
      |                 ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin >> n;
  int value;
  pair<int, int> p[n];
  for(int i = 1; i <= n; i++)
  {
    cin >> value;
    p.insert(make_pair(value, i));
  }
  sort(p, p + p.size());
  for(int i = 0; i < n; i++)
  {
    cout << p[i].second();
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: request for member 'insert' in 'p', which is of non-class type 'std::pair<int, int> [n]'
   12 |     p.insert(make_pair(value, i));
      |       ^~~~~~
a.cc:14:17: error: request for member 'size' in 'p', which is of non-class type 'std::pair<int, int> [n]'
   14 |   sort(p, p + p.size());
      |                 ^~~~
a.cc:17:24: error: expression cannot be used as a function
   17 |     cout << p[i].second();
      |             ~~~~~~~~~~~^~
Language: C

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

#define N 100000

int main(void) {
    int n;
    int arr[N];

    scanf("%d", &n);

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

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

    return 0;
}
	

Compiler output:
main.c:29:5: error: redefinition of 'main'
   29 | int main(void) {
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int(void)'
    5 | int main(void) {
      |     ^~~~
Language: C

#include<Stdio.h>
#include<stdlib.h>
int main()
{
    int x,i,j,a,fact;
    scanf("%d",&x);
    int A[10000],B[10000];
    for(i=0;i<x;i++)
    {
        scanf("%d",&A[i]);
        B[i]=A[i];
    }
     for(i=0;i<x;i++)
    {
        for(j=1+i;j<x;j++)
        {
            if(A[i]>A[j])
            {
                a=A[i];
                A[i]=A[j];
                A[j]=a;
            }
        }
    }

     for(i=0;i<x;i++)
     {
         for(j=0;j<x;j++)
      {
        if(A[i]==B[j])
        {
          printf("%d",j+1);
        }
      }
     }
}


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

#include<Stdio.h>
#include<stdlib.h>
int main()
{
    int x,i,j,a,fact;
    scanf("%d",&x);
    int A[10000],B[100000];
    for(i=0;i<x;i++)
    {
        scanf("%d",&A[i]);
        B[i]=A[i];
    }
     for(i=0;i<x;i++)
    {
        for(j=1+i;j<x;j++)
        {
            if(A[i]>A[j])
            {
                a=A[i];
                A[i]=A[j];
                A[j]=a;
            }
        }
    }

     for(i=0;i<x;i++)
     {
         for(j=0;j<x;j++)
      {
        if(A[i]==B[j])
        {
          printf("%d",j+1);
        }
      }
     }
}


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

/* C++14(GCC5.4.1) */
#include <bits/stdc++.h>
using namespace std;
using ll=long long;

int main(void){
    int n; cin >> n;
    vector<pair<int, int>> st(n);
    for(int i=0; i<n; i++){
        st[i].second = i;
        cin >> st[i].first;
    }
    
    sort(st.begin(),st.end);

    for(int i=0; i<n; i++){
        cout << st[i].second << " ";
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: no matching function for call to 'sort(std::vector<std::pair<int, int> >::iterator, <unresolved overloaded function type>)'
   14 |     sort(st.begin(),st.end);
      |     ~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<pair<int, int>*, vector<pair<int, int> > >]'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:63: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |                                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int mem[]=new int[num];
    int come[]=new int[num];
    for(int a=0;a<num;a++){
      mem[a]=scan.nextInt();
    }
    for(int a=1;a<num+1;a++){
          come[mem[a-1]]=a;
        }
      }
    }
    for(int a=0;a<num;a++){
      System.out.print(come[a]+" ");
    }
  }
}

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
    for(int a=0;a<num;a++){
    ^
Main.java:16: error: class, interface, enum, or record expected
    for(int a=0;a<num;a++){
                ^
Main.java:16: error: class, interface, enum, or record expected
    for(int a=0;a<num;a++){
                      ^
Main.java:18: error: class, interface, enum, or record expected
    }
    ^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
    ll n, x, i;
    cin >> n;
    vector < pair < ll, ll > > v;
    for(i = 0; i < n; i++){
        cin >> x;
        v.push_back(x, i+1);
    }
    sort(v.begin(), v.end());
    for(auto it : v){
        cout << it.second << " ";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no matching function for call to 'std::vector<std::pair<long long int, long long int> >::push_back(long long int&, long long int)'
   10 |         v.push_back(x, i+1);
      |         ~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:22: error: expected ']' before ';' token
   13 |     d[b[a[i]]=b[a[i]];
      |                      ^
      |                      ]
main.c:14:26: error: expected ';' before '}' token
   14 |     printf("%d",b[a[i]]);
      |                          ^
      |                          ;
   15 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);++i)
using namespace std;

int main(){
  int n;
  cin >> n;
  vector<vector<int>> vec(n,vector<int>(2));
  rep(i,n){
    rep(j,2){
      if (j==1) vec.at(i).at(j)=i+1;
      else cin >> vec.at(i).at(j);
    }
  }
  sort(vec.begin(),vec.end());
"  reverse(vec.begin(),vec.end());
  rep(i,n) cout << vec.at(i).at(1) << endl;
}
  

Compiler output:
a.cc:16:1: warning: missing terminating " character
   16 | "  reverse(vec.begin(),vec.end());
      | ^
a.cc:16:1: error: missing terminating " character
   16 | "  reverse(vec.begin(),vec.end());
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);++i)
using namespace std;

int main(){
  int n;
  cin >> n;
  vector<vector<int>> vec(n,vector<int>(2));
  rep(i,n){
    rep(j,2){
      if (j==1) vec.at(i).at(j)=i+1;
      else cin >> vec.at(i).at(j);
    }
  }
  sort(vec.begin(),vec.end());
#  reverse(vec.begin(),vec.end());
  rep(i,n) cout << vec.at(i).at(1) << endl;
}
  

Compiler output:
a.cc:16:4: error: invalid preprocessing directive #reverse
   16 | #  reverse(vec.begin(),vec.end());
      |    ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
using namespace std;
typedef long long ll;
 
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
 
    int N;

    cin >> N;

    vector<int> V(N);
  
    rep(i, N) cin >> V[i];
  
    vector<int> A(N);

    rep(i, N) A[V[i]-1] = i+1;

    rep(i, N) cout << A[i]　<< " ";

    return 0;
}

Compiler output:
a.cc:23:27: error: extended character 　 is not valid in an identifier
   23 |     rep(i, N) cout << A[i]　<< " ";
      |                           ^
a.cc: In function 'int main()':
a.cc:23:27: error: expected ';' before '\U00003000'
   23 |     rep(i, N) cout << A[i]　<< " ";
      |                           ^~
      |                           ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'N' was not declared in this scope
    5 |         N, i;
      |         ^
a.cc:5:12: error: 'i' was not declared in this scope
    5 |         N, i;
      |            ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int N,i;
  cin >> N;
  int h[N];
  for(int k=1; k<(N+1); k++;){
    cin >> i;
    h[i]=k;
  }
  for(int n=1; n<(N+1); n++;){
    cout << h[n];
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ')' before ';' token
    8 |   for(int k=1; k<(N+1); k++;){
      |      ~                     ^
      |                            )
a.cc:8:29: error: expected primary-expression before ')' token
    8 |   for(int k=1; k<(N+1); k++;){
      |                             ^
a.cc:12:28: error: expected ')' before ';' token
   12 |   for(int n=1; n<(N+1); n++;){
      |      ~                     ^
      |                            )
a.cc:12:29: error: expected primary-expression before ')' token
   12 |   for(int n=1; n<(N+1); n++;){
      |                             ^
Language: C++

#include <iostram>
//GotoSchool
int main(){
  int N;
  cin>>N;
  int a[N]
  for (int i=0;i<N;i++){
    cin>>temp;
    a[temp-1]=i;
  }
  for (int i=0;i<N-1;i++){
    std::cout<<a[i]<<" ";
  }
  std::cout<<a[N-1]<<std::endl;
  return 0;
}


Compiler output:
a.cc:1:10: fatal error: iostram: No such file or directory
    1 | #include <iostram>
      |          ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

  public class CGotoSchool{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        Map <Integer,Integer> map = new TreeMap<>();
                for(int i=1;i<=n;i++){
                    map.put(sc.nextInt(),i);
                }

                for(int i=1;i<=n;i++){
                    System.out.print(map.get(i)+" ");
                }

            }
        }

Compiler output:
Main.java:3: error: class CGotoSchool is public, should be declared in a file named CGotoSchool.java
  public class CGotoSchool{
         ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int n;
  cin >> n;
  vetor<int> a(n),b(n);
  for(int i=0;i<n;i++){
    cin >> a.at(i);
    b.at(a.at(i)-1) = i+1;
  }
  for(int i=0;i<n;i++){
    cout << b.at(i) << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vetor' was not declared in this scope
    8 |   vetor<int> a(n),b(n);
      |   ^~~~~
a.cc:8:9: error: expected primary-expression before 'int'
    8 |   vetor<int> a(n),b(n);
      |         ^~~
a.cc:10:12: error: 'a' was not declared in this scope
   10 |     cin >> a.at(i);
      |            ^
a.cc:11:5: error: 'b' was not declared in this scope
   11 |     b.at(a.at(i)-1) = i+1;
      |     ^
a.cc:14:13: error: 'b' was not declared in this scope
   14 |     cout << b.at(i) << endl;
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  
  std::cin>>n;
  vector<int> ar;
  int i=0;
  int j=0;
  for(i=0;i<n;i++)
  {
    std::cin>>j;
    ar.push_back(j);
  }
  for(i=1;i<=n;i+=1)
  {
    for(j=0;j<n;j++)
      if(ar[j]==i)
        std::cout<<j+1;
  }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> ar;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> ar;
      |          ^~~
a.cc:14:5: error: 'ar' was not declared in this scope
   14 |     ar.push_back(j);
      |     ^~
a.cc:19:10: error: 'ar' was not declared in this scope
   19 |       if(ar[j]==i)
      |          ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  int h[N];
  for(int k=0; k<N; k++){
    cin >> i;
    h[i]=k;
  }
  for(int n=0; n<N; n++){
    cout << h[n];
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'i' was not declared in this scope
    9 |     cin >> i;
      |            ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
int main(){
    int n=0;
    scanf("%d",&n);
    int a[n+1];
    int b[n+1];
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        b[i]=i;
    }
   pair<int,int> p[n];
   for(int i=1;i<n;i++){
       p[i]=make_pair(a[i],b[i])
   }
    sort(p+1,p+n+1);


    for(k=1;k<=n;k++){
        printf("%d\n",p[k].second);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
   14 |    pair<int,int> p[n];
      |    ^~~~
      |    std::pair
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:3013:12: note: 'std::pair' declared here
 3013 |     struct pair;
      |            ^~~~
a.cc:14:9: error: expected primary-expression before 'int'
   14 |    pair<int,int> p[n];
      |         ^~~
a.cc:16:8: error: 'p' was not declared in this scope
   16 |        p[i]=make_pair(a[i],b[i])
      |        ^
a.cc:16:13: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
   16 |        p[i]=make_pair(a[i],b[i])
      |             ^~~~~~~~~
      |             std::make_pair
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1132:5: note: 'std::make_pair' declared here
 1132 |     make_pair(_T1&& __x, _T2&& __y)
      |     ^~~~~~~~~
a.cc:18:10: error: 'p' was not declared in this scope
   18 |     sort(p+1,p+n+1);
      |          ^
a.cc:18:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   18 |     sort(p+1,p+n+1);
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:21:9: error: 'k' was not declared in this scope
   21 |     for(k=1;k<=n;k++){
      |         ^
Language: C

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

struct st{
  int a,int num;
}

int compare_int(const void *a,const void *b){
  struct st A= *(struct st*)a,B= *(struct st*)b;
  return A.a-B.a;
}

int main(){
  int n,i;
  struct st a[10001];
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&a[i].a),a[i].num=i+1;
  qsort(a,n,sizeof(int),compare_int);
  for(i=0;i<n;i++)printf("%d ",a[i].num);
  return 0;
}


Compiler output:
main.c:5:9: error: expected identifier or '(' before 'int'
    5 |   int a,int num;
      |         ^~~
main.c:6:1: warning: no semicolon at end of struct or union
    6 | }
      | ^
main.c:8:1: error: expected ';', identifier or '(' before 'int'
    8 | int compare_int(const void *a,const void *b){
      | ^~~
main.c: In function 'main':
main.c:17:43: error: 'struct st' has no member named 'num'
   17 |   for(i=0;i<n;i++)scanf("%d",&a[i].a),a[i].num=i+1;
      |                                           ^
main.c:19:36: error: 'struct st' has no member named 'num'
   19 |   for(i=0;i<n;i++)printf("%d ",a[i].num);
      |                                    ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        Map<Integer,Integer> a = new TreeMap<>();
        for(int i = 1;i<n+1;i++){
            a.put(i,Integer.parseInt(sc.next()));
        }
        for(Integer num: a.values){
            System.out.println(num);
        }
    }
}


Compiler output:
Main.java:11: error: cannot find symbol
        for(Integer num: a.values){
                          ^
  symbol:   variable values
  location: variable a of type Map<Integer,Integer>
1 error
Language: C++

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
const int N = 100005;

int n;
pii a[N];


int main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    cin >> n;
    for (int i = 0; i < n; ++i) {
        cin >> a[i].ff,
        a[i].ss = i + 1;
    }
    sort(a, a + n);
    for (int i = 0; i < n; ++i)
        cout << a[i].ff << " \n"[i + 1 == n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'using pii = struct std::pair<int, int>' {aka 'struct std::pair<int, int>'} has no member named 'ff'
   15 |         cin >> a[i].ff,
      |                     ^~
a.cc:16:14: error: 'using pii = struct std::pair<int, int>' {aka 'struct std::pair<int, int>'} has no member named 'ss'
   16 |         a[i].ss = i + 1;
      |              ^~
a.cc:20:22: error: 'using pii = struct std::pair<int, int>' {aka 'struct std::pair<int, int>'} has no member named 'ff'
   20 |         cout << a[i].ff << " \n"[i + 1 == n];
      |                      ^~
Language: C++

#include<iostream>
using namespace::std;
int main(){
int n,k,i,j;
cin>>n;
int h[n+1];
for(i=1;i=<n;i++)
{
    cin>>j;
    h[j]=i;
}
for(i=1;i=<n;i++)
{
   cout<<h[i];
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '<' token
    7 | for(i=1;i=<n;i++)
      |           ^
a.cc:12:11: error: expected primary-expression before '<' token
   12 | for(i=1;i=<n;i++)
      |           ^
Language: C++

#include<iostream>
using namespace::std;
int main(){
int n,k,i,j,h=0;
cin>>n;
int h[n+1];
for(i=1;i=<n;i++)
{
    cin>>j;
    h[j-1]=i;
}
for(i=1;i=<n;i++)
{
   cout<<h[i];
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: conflicting declaration 'int h [(n + 1)]'
    6 | int h[n+1];
      |     ^
a.cc:4:13: note: previous declaration as 'int h'
    4 | int n,k,i,j,h=0;
      |             ^
a.cc:7:11: error: expected primary-expression before '<' token
    7 | for(i=1;i=<n;i++)
      |           ^
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 |     h[j-1]=i;
      |      ^
a.cc:12:11: error: expected primary-expression before '<' token
   12 | for(i=1;i=<n;i++)
      |           ^
a.cc:14:11: error: invalid types 'int[int]' for array subscript
   14 |    cout<<h[i];
      |           ^