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

int Circle = 0;
int r = 100;
Circle = r*r*3.14;
System.out.println(Circle+"倍です");



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int Circle = 0;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
Circle = r*r*3.14;
^
Main.java:4: error: class, interface, enum, or record expected
System.out.println(Circle+"???");
^
3 errors
Language: Java

int  R =  r*r*3.14;
System.out.println(R);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int  R =  r*r*3.14;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
System.out.println(R);
^
2 errors
Language: C++

include <iostream>

using namespace std;

int main() {
    int r;
    cin >> r;
    cout << r * r << endl;
    return 0;
}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> r;
      |     ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << r * r << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << r * r << endl;
      |                      ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int r;
  cin >> r;
  int answer = r * r;
  printf(answer);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |   printf(answer);
      |          ^~~~~~
      |          |
      |          int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
	int r;
	cin >> r;
	int answer = pow(r, 2);
	cout << answer << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'pow' was not declared in this scope
    8 |         int answer = pow(r, 2);
      |                      ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int r;
	cin >> r;
	int answer = pow(r, 2);
	cout << answer << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'pow' was not declared in this scope
    7 |         int answer = pow(r, 2);
      |                      ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int r;
	cout << "Type number 'r': ";
	cin >> r;
	int answer = pow(r, 2);
	cout << answer << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'pow' was not declared in this scope
    8 |         int answer = pow(r, 2);
      |                      ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int r　<< cin;
    cout << r * r << endl;
    return 0;
}

Compiler output:
a.cc:5:9: error: extended character 　 is not valid in an identifier
    5 |     int r　<< cin;
      |         ^
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before '<<' token
    5 |     int r　<< cin;
      |            ^~
a.cc:6:13: error: 'r' was not declared in this scope
    6 |     cout << r * r << endl;
      |             ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int answer = r^2;
  cout << answer << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'r' was not declared in this scope
    4 |   int answer = r^2;
      |                ^
Language: Java

import java.util.Scanner;

public class Study２ {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int r = sc.nextInt();
		int answer = r*r;
		System.out.println(answer);
		System.out.println();
	}

  }


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

import java.util.Scanner;

public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();
		
		System.out.print(r * r);

	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int r;
  cin >> r;
  cout << r^2 << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout << r^2 << endl;}
      |             ~~^~~~~~~
Language: C++

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

int main(){
  int k; cin >> k;

  printf("%lld\n",K*k);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'K' was not declared in this scope
    9 |   printf("%lld\n",K*k);
      |                   ^
Language: C++

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

int N;
double x[10], y[10];

double dist(int i, int j) {
  double dx = x[i] - x[j];
  double dy = y[i] - y[j];
  return pow(dx*dx + dy*dy, 0.5);
}

int main() {
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> x[i] >> y[i];
  double sum = 0.0;
  vector<int> towns(N);
  for (int i = 0; i < N; i++) towns[i] = i+1;
  do {
    for (int i = 0; i < N-1; i++) {
      sum += dist(towns[i], towns[i+1])
    }
  } while (next_permutation(towns.begin(), towns.end()));
  int fact = 1;
  for (int i = 2; i <= N; i++) fact *= i;
  cout << fixed << setprecision(12) << sum/fact << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:40: error: expected ';' before '}' token
   21 |       sum += dist(towns[i], towns[i+1])
      |                                        ^
      |                                        ;
   22 |     }
      |     ~
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

void Main()
{
	int r;
  
  	cin >> r;
  
    printf("%d", r * r);
	
	
}

int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

public class Atcoder{
    public static void main(String[] args) {
        int N = new java.util.Scanner(System.in).nextInt();
        String S = new java.util.Scanner(System.in).nextLine();
        String T = S.substring(N/2);
            System.out.println(T);
        if(S.equals(T + T)){
            System.out.println("Yes");
        }
        else System.out.println("No");
    }
}

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

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

int main(){
  int r;
  cin >> r;
  
  cout << r*r << endl;
}


Compiler output:
a.cc:1:9: fatal error: bits/stdC++.h: No such file or directory
    1 | #include<bits/stdC++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(long long i = 0;i < n;i++)
#define repr(i, n) for(int i = n;i >= 0;i--)
#define Sort(v, n) sort(v, v+n);
#define VSort(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define cY cout<<"Yes";
#define cN cout<<"No";
#define cA(a) cout<<a;
const ll MOD = 1000000007;


int main() {
    int r;
    cin >> r;
    cout << r*r;

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: expected '}' at end of input
   19 |     cout << r*r;
      |                 ^
a.cc:16:12: note: to match this '{'
   16 | int main() {
      |            ^
Language: C++

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

int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;


  if(s.substr(0,n/2-1)==s.substr(n/2,n-1)){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using P = pair<int,int>
      |           ^~~~~~~~~~~~~
Language: Java

import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextInt()){
			int a = sc.nextInt();
			System.out.println(a * a);
		}

	}

}


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

    #include<stdio.h>
    #include<string.h>
    int main(){
        char str[100],str1[50],str2[50];
        int i =0,j,k=0;
        scanf("%s",char);
        i = strlen(str);
        for(j=0;j==(i/2);j++){
            str1[j]=str[j];
            str2[j]=str[i-j];
        }
        for(j=0;j==(i/2);j++){
            if(str1[j]!=str2[j]){
                ++k;
            }
        }
        printf("%d",k);
      return 0;
      
        
    }

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected expression before 'char'
    6 |         scanf("%s",char);
      |                    ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
    char str[100],str1[50],str2[50];
    int i =0,j,k=0;
    scanf("%s",char);
    i = strlen(str);
    for(j=0;j==(i/2);j++){
        str1[j]=str[j];
        str2[j]=str[i-j];
    }
    for(j=0;j==(i/2),j++){
        if(str1[j]!=str2[j]){
            ++k;
        }
    }
    printf("%d",k);
  return 0;
  
    
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before 'char'
    6 |     scanf("%s",char);
      |                ^~~~
main.c:12:25: error: expected ';' before ')' token
   12 |     for(j=0;j==(i/2),j++){
      |                         ^
      |                         ;
Language: C++

import java.util.*;

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

        System.out.println(num * num);
    }
}


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:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
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:19: error: 'sc' was not declared in this scope
    6 |         int num = sc.nextInt();
      |                   ^~
a.cc:8:9: error: 'System' was not declared in this scope
    8 |         System.out.println(num * num);
      |         ^~~~~~
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;


int main()
{
	int r;
	cin >> r;
	cout << r * r << endl;
    return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>

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

    printf("%d",r*r);

    return 0;
}

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

#include<bits/stdc++.h>
//Aryan Kabir
int main()
{
    int r;
    cin>>r;

    cout<<r*r;

    return 0;
}

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

#include<bits/stdc++.h>
//Aryan Kabir
int main()
{
    int r;
    cin>>r;

    cout<<r*r;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>r;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<r*r;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

# coding: utf-8

r = int(input())
r = r*r

print(r)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:3:1: error: 'r' does not name a type
    3 | r = int(input())
      | ^
Language: C++

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

#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define endl '\n'
#define fcin ios::sync_with_stdio(false); cin.tie(nullptr);
#define INF 0x3f3f3f3f
#define all(x) x.begin(), x.end()
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

template <typename A, typename B>
string to_string(pair<A, B> p){
    return "(" + to_string(p.fi) + ", " + to_string(p.se) + ")";
}

template <typename T>
string to_string(T v){
    string s = "{";
    bool first = true;
    for(const auto & x : v){
        if(!first) s += ", ";
        first = false;
        s += to_string(x);
    }
    return s + "}";
}

void debug_out(){ cerr << endl;}
template <typename First, typename... Next>
void debug_out(First F, Next... N){
    cerr << " " << to_string(F);
    debug_out(N...);
}

#ifdef LOCAL
    #define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
    #define debug(...) 1
#endif

typedef long long ll;
typedef pair<int, int> pii;

const int N = 6003;
int dp1[N][N];
int dp2[N][N];
int w[N], v[N];
int n, T;

int solve(int i, int t){
    if(i == n and t <= T - 1) return 0;
    if(i == n and t > T - 1) return -INF;

    int& ret = dp1[i][t];
    if(~ret) return ret;

    return ret = max(solve(i+1, t+w[i]) + v[i], solve(i+1,t));
}

int solve2(int i, int t){
    if(i == -1 and t <= T - 1) return 0;
    if(i == -1 and t > T - 1) return -INF;

    int& ret = dp2[i][t];
    if(~ret) return ret;

    return ret = max(solve2(i-1, t+w[i]) + v[i], solve2(i-1,t));
}

int main(){
    fcin;

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

    int ans = 0;

    memset(dp, -1, sizeof dp);
    memset(dp2, -1, sizeof dp2);
    solve(0, 0);
    solve2(n-1, 0);

    for(int t = 0; t < T; t++){
        ans = max(ans, dp2[n-2][t] + v[n-1]);
        ans = max(ans, dp1[1][t] + v[0]);
    }

    for(int i = 1; i < n - 1; i++){
        for(int t = 0; t < T; t++){
            ans = max(ans, dp1[i+1][t] + dp2[i-1][T-1-t] + v[i]);
        }
    }

    cout << ans << endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:84:12: error: 'dp' was not declared in this scope; did you mean 'dup'?
   84 |     memset(dp, -1, sizeof dp);
      |            ^~
      |            dup
Language: C++

#include<bits/stdc++.h>
using namespace std;
#deefine int long long
signed main()
{
  int r,a;
  cin>>r;
  a=r*r;
  cout<<a<<endl;
  return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #deefine; did you mean #define?
    3 | #deefine int long long
      |  ^~~~~~~
      |  define
Language: C++

v#include <bits/stdc++.h>
#define debug(x) cout << #x << ": " << (x) << endl
using namespace std;

using ull = unsigned long long;
using ll = long long;

using Int = int;
using Double = double;

using P = pair<Int, Int>;
using V = vector<Int>;
using M = vector<V>;

const double PI  = 3.141592653589793238463;
const int MOD = 1000000007;
const Int INF = numeric_limits<Int>::max() / 3;

template<typename T>
istream& operator >> (istream& is, vector<T>& vec){
    for(T& x: vec){
        is >> x;
    }
    return is;
}

int main(int argc, char* argv[]){
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);

    int r;
    cin >> r;
    cout << r * r << "\n";

    return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc:11:11: error: 'pair' does not name a type
   11 | using P = pair<Int, Int>;
      |           ^~~~
a.cc:12:11: error: 'vector' does not name a type
   12 | using V = vector<Int>;
      |           ^~~~~~
a.cc:13:11: error: 'vector' does not name a type
   13 | using M = vector<V>;
      |           ^~~~~~
a.cc:17:17: error: 'numeric_limits' was not declared in this scope
   17 | const Int INF = numeric_limits<Int>::max() / 3;
      |                 ^~~~~~~~~~~~~~
a.cc:17:35: error: expected primary-expression before '>' token
   17 | const Int INF = numeric_limits<Int>::max() / 3;
      |                                   ^
a.cc:17:38: error: '::max' has not been declared
   17 | const Int INF = numeric_limits<Int>::max() / 3;
      |                                      ^~~
a.cc:20:1: error: 'istream' does not name a type
   20 | istream& operator >> (istream& is, vector<T>& vec){
      | ^~~~~~~
a.cc: In function 'int main(int, char**)':
a.cc:28:5: error: 'cin' was not declared in this scope
   28 |     cin.tie(0);
      |     ^~~
a.cc:29:5: error: 'ios' has not been declared
   29 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:30:5: error: 'cout' was not declared in this scope
   30 |     cout << fixed << setprecision(15);
      |     ^~~~
a.cc:30:13: error: 'fixed' was not declared in this scope
   30 |     cout << fixed << setprecision(15);
      |             ^~~~~
a.cc:30:22: error: 'setprecision' was not declared in this scope
   30 |     cout << fixed << setprecision(15);
      |                      ^~~~~~~~~~~~
Language: C

#inclde <stdio.h>
int main(){
int r;
  scanf("%d",&r);
  printf("%d\n",r * r);
  return 0;
}

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

#inclde <stdio.h>
int main(){
int a;
  scanf("%d",&a);
  printf("%d\n",a * a);
  return 0;
}

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

#inclde <stdio.h>
int main(){
  int a;
  scanf("%d",&a);
  
  printf("%d\n",a * a);
  return 0;
}

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

using namespace std;

int main(){
	int r;
  	cin>>r;
  	cout<<r*r<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>r;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<r*r<<endl;
      |         ^~~~
a.cc:6:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |         cout<<r*r<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
//-std=c++11
#define print(x) printf("%.12f",x);
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define Red ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define rep(i, n) for(int i =0 ; i < n; ++i)
#define repr(i, n) for(int i=n-1;i>=0;i--)
#define Rep(i,a,b) for(int i=a;i<=b;i++)
#define Repr(i,a,b) for(int i=a;i>=b;i--)
#define pii pair < int, int >
#define iter ::iterator
#define forit(a) for(it=a.begin();it!=a.end();it++)
typedef vector<int> vi;
typedef  long long ll;
const int inf = int(1e9);
const int mod = 998244353;
const int N = (int)2e5 + 5;

void solve(){
	int n;
	cin>>n;
	cout<<n*n;


int main(){
	Red;
	int t=1;
	//cin>>t;
	while(t--)
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:31:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   31 | int main(){
      |         ^~
a.cc:31:9: note: remove parentheses to default-initialize a variable
   31 | int main(){
      |         ^~
      |         --
a.cc:31:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:31:11: error: a function-definition is not allowed here before '{' token
   31 | int main(){
      |           ^
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:25:13: note: to match this '{'
   25 | void solve(){
      |             ^
Language: C++

#<iostream>

using namespace std;

int main (){
  int a;
  cin>>a;
  cout<<a*a;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #<
    1 | #<iostream>
      |  ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #<iostream>
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<a*a;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
 
using namespace std;
 
main(){
  int a;
  cin>>a;
  cout<< a*a<<endl;
  return 0
}
#include<iostream>

using namespace std;

main(){
  int a;
  cin>>a;
  cout<< a*a<<endl;
  return 0;
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 | }
      | ~          
a.cc: At global scope:
a.cc:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   15 | main(){
      | ^~~~
a.cc:15:1: error: redefinition of 'int main()'
a.cc:5:1: note: 'int main()' previously defined here
    5 | main(){
      | ^~~~
Language: C++

#include<iostream>

using namespace std;

main(){
  int a;
  cin>>a;
  cout<< a*a<<endl;
  return 0
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 | }
      | ~
Language: C++

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

int main() {
int N;
  cin >> N;
  cout << N * N << endl;
  

}

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << N * N << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << N * N << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main() {
  cin >> r;
  cout << r * r << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'r' was not declared in this scope
    6 |   cin >> r;
      |          ^
Language: C

#include <stdio.h>

void main() {
 int r ;
 int s ;
 
 scanf("%d", &r);
 
 s = r * r ;
 
 printf("%d¥n", s);
  
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   13 |  return 0;
      |         ^
main.c:3:6: note: declared here
    3 | void main() {
      |      ^~~~
Language: Java

public class Main {
  
 public static void main(String args[]) {
 	
   Scanner sc = new Scanner(Systm.in);
   
   int r,sum;
   
   r = sc.nextInt();
   
   System.out.print(r);
   
 }
  
}

Compiler output:
Main.java:5: error: cannot find symbol
   Scanner sc = new Scanner(Systm.in);
   ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
   Scanner sc = new Scanner(Systm.in);
                    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
   Scanner sc = new Scanner(Systm.in);
                            ^
  symbol:   variable Systm
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
using u64 = uint64_t;
using u128 = __uint128_t;

int main(){
    int n;
    cin>>n;
    cout<<n*n<<endl;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int r;
    cin >> r;
    cout << r * r << endl;
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected '}' at end of input
    8 |     return 0;
      |              ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>
  2 
  3 int main(void) 
  4 {
  5     int r; 
  6 
  7     scanf("%d", &r); 
  8 
  9     printf("%d", r*r); 
 10 
 11     return 0; 
 12 }

Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
Language: C

#include <stdio.h>↲
  2 ↲
  3 int main(void) ↲
  4 {↲
  5     int r; ↲
  6 ↲
  7     scanf("%d", &r); ↲
  8 ↲
  9     printf("%d", r*r); ↲
 10 ↲
 11     return 0; ↲
 12 }↲

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>↲
      |                   ^
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2 ↲
      |   ^
main.c:2:5: error: stray '\342' in program
    2 |   2 <U+21B2>
      |     ^~~~~~~~
main.c:3:20: error: stray '\342' in program
    3 |   3 int main(void) <U+21B2>
      |                    ^~~~~~~~
main.c:4:6: error: stray '\342' in program
    4 |   4 {<U+21B2>
      |      ^~~~~~~~
main.c:5:16: error: stray '\342' in program
    5 |   5     int r; <U+21B2>
      |                ^~~~~~~~
main.c:6:5: error: stray '\342' in program
    6 |   6 <U+21B2>
      |     ^~~~~~~~
main.c:7:26: error: stray '\342' in program
    7 |   7     scanf("%d", &r); <U+21B2>
      |                          ^~~~~~~~
main.c:8:5: error: stray '\342' in program
    8 |   8 <U+21B2>
      |     ^~~~~~~~
main.c:9:28: error: stray '\342' in program
    9 |   9     printf("%d", r*r); <U+21B2>
      |                            ^~~~~~~~
main.c:10:5: error: stray '\342' in program
   10 |  10 <U+21B2>
      |     ^~~~~~~~
main.c:11:19: error: stray '\342' in program
   11 |  11     return 0; <U+21B2>
      |                   ^~~~~~~~
main.c:12:6: error: stray '\342' in program
   12 |  12 }<U+21B2>
      |      ^~~~~~~~
Language: C++

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

int square();

int main() {
  
int N;
  cin >>N;
  cout << square(N) <<endl;
	
}

int square(int x){
	x *=x;
  return x;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: too many arguments to function 'int square()'
   10 |   cout << square(N) <<endl;
      |           ~~~~~~^~~
a.cc:4:5: note: declared here
    4 | int square();
      |     ^~~~~~
Language: C++

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



int main() {
  
int N;
  cin >>N;
  cout << square(N) <<endl;
	
}

int square(int x){
	x *=x;
  return x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'square' was not declared in this scope
   10 |   cout << square(N) <<endl;
      |           ^~~~~~
Language: C

#include <stdio.h>

int main(void){
  double r;
  scanf("%lf", &r);
  printf("%d",r^2);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: invalid operands to binary ^ (have 'double' and 'int')
    6 |   printf("%d",r^2);
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int r;
  cin >> r;
  cout << r*r << endl;
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'return0' was not declared in this scope
    8 |   return0;
      |   ^~~~~~~
Language: C

#include<stdio.h>
int main(void){
int r;
  scanf("%d",&r);
  prntf("%d",r*r);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   prntf("%d",r*r);
      |   ^~~~~
      |   printf
Language: C++

include<iostream>

using namespace std;

int main(){
  int r;
  scanf("%d",&r);
  return r*r;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf' was not declared in this scope
    7 |   scanf("%d",&r);
      |   ^~~~~
Language: C++

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

//define gcd and lcm (using 64bit)
ll gcd(ll a,ll b){
    if (a < b) {
        //^はxor(bitwise operator)。以下三行でswap(a,b)を行っている。
        a ^= b;
        b ^= a;
        a ^= b;
    }
    //only when b==0,this program finds that b means false and returns a.
    return b ? gcd(b, a % b) : a;
}

ll lcm(ll a,ll b){
    return a * b / gcd(a, b);
}


int main()

Compiler output:
a.cc:23:11: error: expected initializer at end of input
   23 | int main()
      |           ^
Language: Java

import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println(r*r);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		System.out.println(r*r);
		                   ^
  symbol:   variable r
  location: class Main
Main.java:6: error: cannot find symbol
		System.out.println(r*r);
		                     ^
  symbol:   variable r
  location: class Main
2 errors
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package test;
import java.util.*;
/**
 *
 * @author jackt
 */
public class Test {

    /**
     * @param args the command line arguments
     */

    
    
    public static void main(String[] args) {
             
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        String s = in.next();
        
        if (n % 2  == 1){
            System.out.println("No");
        }else{
            int mid = (int)n / 2;
            String s_1 = s.substring(0, mid);
            String s_2 = s.substring(mid);
            if (s_1.equals(s_2))
                System.out.println("Yes");
            else
                System.out.println("No");
           
        }        
            
        }
    }
    


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

#include <iostream>
using namespace std;

int main(void)
{
  unsigned char r;
  cin >> r;
  cout << r * r << endl;
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 | }
      | ~
Language: C++

#include<stdio.h>

int main(void)
{
  unsigned char r;
  cin >> r;
  cout << r * r << endl;
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> r;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << r * r << endl;
      |   ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   cout << r * r << endl;
      |                    ^~~~
a.cc:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int r;
  cin >> r;
  cout << r*r << endl:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before ':' token
    7 |   cout << r*r << endl:
      |                      ^
      |                      ;
Language: C++

#include <iostram>

int main(int argc, char **argv)
{
  int r=0;
  std::cin >> r;
  std::cout << r*r << std::endl;
}

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

#include<stdio.h>

int main(void){
  scanf("%d", &r);
  printf("%d\n",r*r);
  
  return 0;
}


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

int r;
printf("%d",r*r);

Compiler output:
main.c:2:8: error: expected declaration specifiers or '...' before string constant
    2 | printf("%d",r*r);
      |        ^~~~
main.c:2:13: error: expected declaration specifiers or '...' before 'r'
    2 | printf("%d",r*r);
      |             ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int r = sc.nextInt();
    System.out.priintln(r*r);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    System.out.priintln(r*r);
              ^
  symbol:   method priintln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

int main() {
  　int a = 1 * 1 * π
    int b = r * r * π
     cout << b / a << endl;
}


Compiler output:
a.cc:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int a = 1 * 1 * π
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int a = 1 * 1 * π
      |   ^~~~~
Language: C++

#include<ios>
int main(){std::int n;std::cin>>n;std::cout<<n*n;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: expected unqualified-id before 'int'
    2 | int main(){std::int n;std::cin>>n;std::cout<<n*n;}
      |                 ^~~
a.cc:2:28: error: 'cin' is not a member of 'std'
    2 | int main(){std::int n;std::cin>>n;std::cout<<n*n;}
      |                            ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<ios>
  +++ |+#include <iostream>
    2 | int main(){std::int n;std::cin>>n;std::cout<<n*n;}
a.cc:2:33: error: 'n' was not declared in this scope
    2 | int main(){std::int n;std::cin>>n;std::cout<<n*n;}
      |                                 ^
a.cc:2:40: error: 'cout' is not a member of 'std'
    2 | int main(){std::int n;std::cin>>n;std::cout<<n*n;}
      |                                        ^~~~
a.cc:2:40: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<ios>
int main(){std::int n;cin>>n;std::cout<<n*n;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: expected unqualified-id before 'int'
    2 | int main(){std::int n;cin>>n;std::cout<<n*n;}
      |                 ^~~
a.cc:2:23: error: 'cin' was not declared in this scope
    2 | int main(){std::int n;cin>>n;std::cout<<n*n;}
      |                       ^~~
a.cc:2:28: error: 'n' was not declared in this scope
    2 | int main(){std::int n;cin>>n;std::cout<<n*n;}
      |                            ^
a.cc:2:35: error: 'cout' is not a member of 'std'
    2 | int main(){std::int n;cin>>n;std::cout<<n*n;}
      |                                   ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<ios>
  +++ |+#include <iostream>
    2 | int main(){std::int n;cin>>n;std::cout<<n*n;}
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
 
using namespace std;
 

int calcConbination(int n, int r) {
  int ans = 1;
  for (int i = 1; i <= r; i++)
  {
    ans = ans * (n - i + 1) / i;
  }
  return ans;
}



int calcFactorial(int n) {
  int num = 1;
  for (int i = 2; i <= n; i++) num = num * i;
  return num;
}


void AverageLength()
{
  int n;
  float res = 0;
  cin >> n;
  vector<int> x(n);
  vector<int> y(n);
  vector<int> v(n);
  for (int i = 0; i < n; i++)
  {
    cin >> x[i] >> y[i];
    v[i] = i + 1;
  }
 
  int c = calcConbination(n, 2);
  int f = calcFactorial(n);
  cout << f * (n - 1) / c << endl;
  if (n > 2)
  {
    for (int i = 0; i < n; i++)
    {
      for (int j = i + 1; j < n; j++)
      {
        res += sqrt(pow((x[i] - x[j]), 2) + pow((y[i] - y[j]), 2));
  
      }
    }
  }
  else res += sqrt(pow((x[0] - x[1]), 2) + pow((y[0] - y[1]), 2)) * 2;
  cout << setprecision(10) << res * (n - 1) / c << endl;
}
 
 
int main()
{ 
  AverageLength();
  return 0;
}

Compiler output:
a.cc: In function 'void AverageLength()':
a.cc:55:11: error: 'setprecision' was not declared in this scope
   55 |   cout << setprecision(10) << res * (n - 1) / c << endl;
      |           ^~~~~~~~~~~~
a.cc:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <cmath>
  +++ |+#include <iomanip>
    4 |
Language: C++

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int r = Integer.parseInt(sc.next());
		System.out.println(r*r);
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main {
      | ^~~~~~
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();
		r = r * r;
		System.out.println(r);
	}
}

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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();
		System.out.println(r*r);
	}
}

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

import java.util.Scanner;

public class a_circle {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();
		System.out.println(r*r);
	}

}

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

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    Integer lenChara = Integer.valueOf(scan.nextLine());
    String targetChara = scan.nextLine();

    if (lenChara % 2 == 0) {
      int divide = lenChara / 2;
      String start = targetChara.substring(0, divide);
      String end = targetChara.substring(divide, targetChara.length());
      if (start.equals(end)) {
        System.out.println("Yes");
      } else {
        System.out.println("No");
      }
    } else {
      System.out.println("No");
    } 
}

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

#include <iostream>
using namespace std;

int main(){
  int r;
  cin >> r;
  cout << r*r <<endl;
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

int main () {
	int r;
  	cin >> r;
  	cout << r * r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> r;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout << r * r << endl;
      |         ^~~~
a.cc:4:26: error: 'endl' was not declared in this scope
    4 |         cout << r * r << endl;
      |                          ^~~~
Language: Java

import java.util.Scanner;

class Main
{
	public static void main(String args[])
    {
         Scanner scan = new Scanner(System.in);
         int r = scan.nextInt();
         
         unit_square = circle_square(1);
         square = circle_square(r);
      	 System.out.println(square/unit_square);
    }
    public circle_square(int r)
    {
    	return r*r*Math.PI;
    }
}

Compiler output:
Main.java:14: error: invalid method declaration; return type required
    public circle_square(int r)
           ^
1 error
Language: C++

using namespace std;

int main() {
    int r;
    cin >> r;
    cout << r * r << endl;
    ret

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> r;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << r * r << endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |     cout << r * r << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:7:5: error: 'ret' was not declared in this scope
    7 |     ret
      |     ^~~
a.cc:7:8: error: expected '}' at end of input
    7 |     ret
      |        ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^