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

import java.util.*;
import java.text.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int r = sc.nextInt();
		int big = Math.pow(r, 2);
		System.out.println(big);
	}
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int big = Math.pow(r, 2);
		                  ^
1 error
Language: Java

import java.util.*;
public class Competition2E
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		double r = sc.nextDouble();
		double c = 1;

		System.out.println((int)(Math.pow(r,2)));

	}
}


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

#include <iostream>
int main()
{
	int r;
	cin >> r;
  	cout << r * r;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> r;
      |         ^~~
      |         std::cin
In file included 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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         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++

import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int r = sc.nextInt();
        int n = (r*r)/(1*1);
        System.out.println(n);
    }
}

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:2:1: error: 'import' does not name a type
    2 | import java.lang.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:11: error: expected ':' before 'static'
    7 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:7:29: error: 'String' has not been declared
    7 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:7:38: error: expected ',' or '...' before 'args'
    7 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:8:9: error: 'Scanner' was not declared in this scope
    8 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:9:17: error: 'sc' was not declared in this scope
    9 |         int r = sc.nextInt();
      |                 ^~
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.println(n);
      |         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ll r;
    cin>>r;
   ll ans=r*r;
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll r;
      |     ^~
a.cc:6:10: error: 'r' was not declared in this scope
    6 |     cin>>r;
      |          ^
a.cc:7:6: error: expected ';' before 'ans'
    7 |    ll ans=r*r;
      |      ^~~~
      |      ;
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     cout<<ans;
      |           ^~~
      |           abs
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   std::cin
In file included 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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<n*n<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

// template
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep1(i, n) for(int i = 1; i <= (int)(n); i++)
#define SZ(x) ((int)(x).size())
#define INF (1e16)
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

  　int r;
    cin >> r;
    cout << r * r << endl;
    return 0;
}


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

// Author:: Mohammad Faisal
#include<bits/stdc++.h.
using namespace std;
int main()
{
  int t;
  cin >> t;
  cout<<t*t;
  return 0;
}

Compiler output:
a.cc:2:24: error: missing terminating > character
    2 | #include<bits/stdc++.h.
      |                        ^
a.cc:2:9: fatal error: bits/stdc++.h.: No such file or directory
    2 | #include<bits/stdc++.h.
      |         ^
compilation terminated.
Language: C

#include <stdio.h>

int main(){
	int n;
	scanf("%d, &n);
	n=n*n
	printf("%d", n)
}


Compiler output:
main.c: In function 'main':
main.c:5:15: warning: missing terminating " character
    5 |         scanf("%d, &n);
      |               ^
main.c:5:15: error: missing terminating " character
    5 |         scanf("%d, &n);
      |               ^~~~~~~~~
main.c:6:14: error: expected ')' before 'printf'
    6 |         n=n*n
      |              ^
      |              )
    7 |         printf("%d", n)
      |         ~~~~~~
main.c:5:14: note: to match this '('
    5 |         scanf("%d, &n);
      |              ^
main.c:6:10: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |         n=n*n
      |         ~^~~~
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:7:24: error: expected ';' before '}' token
    7 |         printf("%d", n)
      |                        ^
      |                        ;
    8 | }
      | ~
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:19: error: expected primary-expression before ';' token
    7 |   cout << r * r <<;
      |                   ^
a.cc:8:7: error: statement cannot resolve address of overloaded function
    8 |   endl;
      |       ^
Language: C++

import math
x = int(input())
print ('{0}'.format(x**2))

Compiler output:
a.cc:3:8: warning: multi-character character constant [-Wmultichar]
    3 | print ('{0}'.format(x**2))
      |        ^~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<cmath>
int main()
{
int x;
cin>>x;
cout<<pow(x,2);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>x;
      | ^~~
      | std::cin
In file included 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<pow(x,2);
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
int x;
cin>>x;
cout<<pow(x,2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>x;
      | ^~~
      | 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:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<pow(x,2);
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   std::cout<<r*r<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

using namespace std ;

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

 if (T>=1&& T<=100)
 {
   T=1*(T*T);


 }
cout <<T<< endl;





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

#include <iostream>

using namespace std ;

int main ()
{
 int T;
 cin >> T ;
 int x;
 if (T>=1&& T<=100)
 {
   x=1*(T*T);


 }
cout <<x<< endl;



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

#include<bits\stdc++.h>
int main()
{
  int r;
  cin >> r;
  printf("%d", r*r);
  return 0;
}

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>
int main()
{
  int r;
  cin >> r;
  printf("%d", r*r);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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
      |                  ^~~
Language: C++

#include<bits/stdc++.h>
void main()
{
  int r;
  cin >> r;
  printf("%d", r*r);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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
      |                  ^~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<queue>

#define rep(i,n) for(int i=1;i<(n);i++)

typedef long long ll;
using namespace std;

int main() {

	int r;
	cin >> r;
	int N=0;
  	N=pow(r,2.0);
 
  
	cout << N << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'pow' was not declared in this scope
   16 |         N=pow(r,2.0);
      |           ^~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<queue>

#define rep(i,n) for(int i=1;i<(n);i++)

typedef long long ll;
using namespace std;

int main() {

	int r;
	cin >> r;
	
	cout << pow(r, 2.0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'pow' was not declared in this scope
   16 |         cout << pow(r, 2.0) << endl;
      |                 ^~~
Language: C++

#include<iostream>
using namespace std;

int main() {

	int r;
	cin >> r;
	
	cout << pow(r, 2.0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'pow' was not declared in this scope
    9 |         cout << pow(r, 2.0) << endl;
      |                 ^~~
Language: Java

#include<iostream>
using namespace std;
int main(){
  int r;
  cin >> r;
  int x = r*r;
  cout << x << endl;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:5: error: not a statement
  cin >> r;
      ^
Main.java:7: error: not a statement
  cout << x << endl;
            ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

#include<iostream>
#include<string>
using namespace std;
int main() {
  int r;
  cin >> r;
  cout << r*r << endl;

}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<string>
^
Main.java:6: error: not a statement
  cin >> r;
      ^
Main.java:7: error: not a statement
  cout << r*r << endl;
              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
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:7:24: error: expected ';' before ':' token
    7 |         cout<<r*r<<endl:
      |                        ^
      |                        ;
Language: C++

include<iostream>
using namespace std;

int main(void){
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: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:18: error: 'endl' was not declared in this scope
    7 |   cout << r*r << endl;
      |                  ^~~~
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      
      int[][] array = new int[8][2];
      for (int i = 0; i < N; ++i) {
          // i番目のx座標
          array[i][0] = sc.nextInt();
          // i番目のy座標
          array[i][1] = sc.nextInt();
      }
      
      double total = 0.0d;
      
      // 全道の長さの和を求める
      for (int i = 0; i < N; i++) {
        for (int j = 0; j < N; j++) {
          if (i == j) continue;
          total += Math.sqrt(nijo(array[i][0] - array[j][0]) + nijo(array[i][1] - array[j][1]));
        }
      }
      
      System.out.println(2.0d * total / N);
      
    }
  
  private int nijo(int x) { return x * x;}
}

Compiler output:
Main.java:22: error: non-static method nijo(int) cannot be referenced from a static context
          total += Math.sqrt(nijo(array[i][0] - array[j][0]) + nijo(array[i][1] - array[j][1]));
                             ^
Main.java:22: error: non-static method nijo(int) cannot be referenced from a static context
          total += Math.sqrt(nijo(array[i][0] - array[j][0]) + nijo(array[i][1] - array[j][1]));
                                                               ^
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String S = sc.next();
      
      if (N % 2 == 1) {
        System.out.println("No");
        return;
      }
      
      // 分解したものが一致するか比較
      if (S.substring(0, N/2).equals(S.substring(N/2, N))) {
        System.out.println("Yes");
      } else {
        System.out.println("No");
      }
    }
}


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
2 errors
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    int a;
    cin >> a;
    int c = a * a;
  cout << c << endl;

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

using namespace std;
 
int main() {
    int a;
    cin >> a;
    int c = a * a;
  cout << c << endl;

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using namespace std;
      | ^~~~~
main.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    1 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:5:5: error: 'cin' undeclared (first use in this function)
    5 |     cin >> a;
      |     ^~~
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: 'cout' undeclared (first use in this function)
    7 |   cout << c << endl;
      |   ^~~~
main.c:7:16: error: 'endl' undeclared (first use in this function)
    7 |   cout << c << endl;
      |                ^~~~
main.c:7:3: error: expected declaration or statement at end of input
    7 |   cout << c << endl;
      |   ^~~~
Language: C

#include <iostream>
#include <string>
using namespace std;

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

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

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

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

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin >> r;
      |        ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:7:8: error: 'cout' is not a member of 'std'
    7 |   std::cout << r*r << endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   std::cout << r*r << endl;
      |                       ^~~~
Language: Java

import java.util.Scanner;
public static void main(String[]args){
  int r,area;
  Scanner kbScanner=new Scanner(System.in);
  r=kbScanner.nextInt();
  area=r*r;
  System.out.print(area);
  kbScanner.close();
  
  

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[]args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: reached end of file while parsing
  kbScanner.close();
                    ^
2 errors
Language: C++

#include <iostream>
#include <string>
#include <vector>
using int64 = long long;
using vint = vector<int>;
#define Rep(i, n) for (int i = 0; i < (n); ++i)
#define InitRep(i, init, n) for (int i = (init); i < (n); ++i)
#define RepLong(i, n) for (int64 i = 0; i < (n); ++i)
#define InitRepLong(i, init, n) for (int64 i = (init); i < (n); ++i)
#define RepItr(it, itBegin, itEnd) for (auto it = (itBegin); it != (itEnd); ++it)
using namespace std;

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

	return 0;
}

Compiler output:
a.cc:5:14: error: 'vector' does not name a type
    5 | using vint = vector<int>;
      |              ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int r;
cin>>r;
cout <<r*r
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before '}' token
    6 | cout <<r*r
      |           ^
      |           ;
    7 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: warning: missing terminating " character
    5 |         printf("%d,r * r);
      |                ^
main.c:5:16: error: missing terminating " character
    5 |         printf("%d,r * r);
      |                ^~~~~~~~~~~
main.c:6:1: error: expected expression before '}' token
    6 | }
      | ^
main.c:5:16: error: expected ';' before '}' token
    5 |         printf("%d,r * r);
      |                ^
      |                ;
    6 | }
      | ~
Language: C++

#include <iostream>
#include <numeric>
#include <math.h>
#include <algorithm>
#include <float.h>
#include <limits>
#include <vector> 
#include <string.h>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define ll long long
#define asort(a) sort(a.begin(),a.end());

using namespace::std;

int jo(ll int jxo, ll int jyo){//累乗
	ll int jhogeo = 1;
	rep(jinto,0,jyo) jhogeo=jhogeo*jxo;
	return jhogeo;
}
char tobig(char toxbig){//char大文字化
  return (toxbig-0x20);
}
char tolow(char toxlow){//char小文字化
  return (toxlow+0x20);
}
int ctoi(char cctoi){//char->int
  if('0' <= cctoi && cctoi <= '9') return (cctoi-'0');
  return -1;
}
int gcd(int gcad, int gcbd) {//最大公約数
  if(gcad < gcbd) return gcd(gcbd, gcad);
  int gcrd;
  while ((gcrd=gcad%gcbd)) {
    gcad = gcbd;
    gcbd = gcrd;
  }
  return gcbd;
}
int lcm(int lcam, int lcbm){//最小公倍数
 return (lcam*lcbm)/gcd(lcam,lcbm);
}


int main(){
　　int r;
  cin>>r;
  cout>>r*r;
  
}
// int *p = new int[N];

//  vector<int> 変数名(要素数);
//  sort(変数名.begin(),変数名.end());//昇順ソート

// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//


Compiler output:
a.cc:48:1: error: extended character 　 is not valid in an identifier
   48 | 　　int r;
      | ^
a.cc:48:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:48:1: error: '\U00003000\U00003000int' was not declared in this scope
   48 | 　　int r;
      | ^~~~~~~
a.cc:49:8: error: 'r' was not declared in this scope
   49 |   cin>>r;
      |        ^
Language: C++

#include "bits/stdc++.h"
 
using std;
 
int main() {
  int n; cin >> n;
  cout << (n * n) << endl;
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'std'
    3 | using std;
      |       ^~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   int n; 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:22: 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 "bits/stdc++.H"

using std;

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

Compiler output:
a.cc:1:10: fatal error: bits/stdc++.H: No such file or directory
    1 | #include "bits/stdc++.H"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#include <intrin.h>

#define fore(i,a,b) for(int i = a; i < (b); i++)
#define fr(i,a,b) for(int i = a; i >= b; i--)
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define __builtin_popcount __popcnt
#define N 200005
#define FH 400005
#define inf INT32_MAX
#define MOD 1000000007LL

using namespace std;
typedef long long ll;
typedef pair<int, int> pr;


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



int main()
{
	fast;
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	solve();
}

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

#include <iostream>
#include <cstring>
using namespace std;
long long dp[301][301]={0};
int v[301] = {0};
int main(){
    int n, k;
    long long m = 1e15
    cin >> n >> k;
    memset(*dp+1,1,sizeof(dp)-8);
    for(int i = 1; i <= n; i++){
        cin >> v[i];
        for(int e = 0; e <= i; e++)
            for(int j = k; j >= 0; j--){
                dp[i][j] = min(dp[i][j], dp[e][j] + max(0, v[i]-v[e]));
                dp[e][j] = j?dp[e][j-1]:m;
            }
    }
    for(int i = 0; i <= n; i++)for(int j = 0; j <= k; j++)m = min(m, dp[i][j]);
    cout << m << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'cin'
    9 |     cin >> n >> k;
      |     ^~~
Language: C++

#include <stdio.h>
#include <iostream>
#include <math.h>

int main() {
	int n;
	scanf_s("%d", &n);
	n = n*n;
	printf("%d\n", n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>
#include <iostream>
#include <math.h>

int main() {
	int n;
	scanf_s("%d", &n);
	n = n*2;
	printf("%d\n", n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<map>
#include<algorithm>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before ',' token
   12 |     cout << r * r ,, endl;
      |                    ^
Language: C

int dim(int r) {
  int m = r*r;
  return m
}

int main(void) {
  int r;
  scanf("%d",&r);
  printf("%d",dim(r));
}
  

Compiler output:
main.c: In function 'dim':
main.c:3:11: error: expected ';' before '}' token
    3 |   return m
      |           ^
      |           ;
    4 | }
      | ~          
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&r);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int dim(int r) {
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&r);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%d",dim(r));
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

Scanner scan = new Scanner(System.in);
    String str = scan.nextLine();
    int num = Integer.parseInt(str);
    System.out.println(num*num);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
    System.out.println(num*num);
    ^
2 errors
Language: Java

import java.util.Scanner;

public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String str = scan.nextLine();
    int num = Integer.parseInt(str);
    System.out.println(num*num);
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

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

int main(void){
  scanf("%d",n);
  printf("%d^2",n);
  return 0;
}

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

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

int main(){
  scanf("%d",n);
  printf("%d^2",n);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'n' was not declared in this scope
    5 |   scanf("%d",n);
      |              ^
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int r = sc.nextInt();
        System.out.println((int)Math.pow(r, 2));
        sc.close();
    }
}


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++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include?
    1 | #incluce<stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d",&r);
      |     ^~~~~
a.cc:5:5: error: 'printf' was not declared in this scope
    5 |     printf("%d",r*r);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #incluce<stdio.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main ( ) {
 int n ;
  cin >> n ;
  if(n==1){
   cout<<0;
    break;
  }
  cout<<(n*n);
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
Language: C

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

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

#include<bits\stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  cout<<a*a<<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 namepace std;
int main()
{
long long int a;
  cin>>a;
  cout<<(a*a);

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
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>>a;
      |   ^~~
      |   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<<(a*a);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
usin namespace std;

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

Compiler output:
a.cc:2:1: error: 'usin' does not name a type
    2 | usin namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>r;
      |   ^~~
      |   std::cin
In file included 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<r*r<<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:8:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<r*r<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         int n ; cin >> n ;
      |                 ^~~
      |                 std::cin
In file included 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:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         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:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         cout << n * n << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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




}

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

#include <iostream>

using namespace std;

int main()
{
	int r;

	cin >> r;

	cout << r^2 / 1;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int')
   11 |         cout << r^2 / 1;
      |         ~~~~~~~~~^~~~~~
      |              |      |
      |              |      int
      |              std::basic_ostream<char>
a.cc:11:18: note: candidate: 'operator^(int, int)' (built-in)
   11 |         cout << r^2 / 1;
      |         ~~~~~~~~~^~~~~~
a.cc:11:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 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/cstddef:146:3: note: candidate: 'constexpr std::byte std::operator^(byte, byte)'
  146 |   operator^(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:146:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::byte'
  146 |   operator^(byte __l, byte __r) noexcept
      |             ~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:94:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator^(_Ios_Fmtflags, _Ios_Fmtflags)'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:94:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags'
   94 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:144:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator^(_Ios_Openmode, _Ios_Openmode)'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:144:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode'
  144 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:191:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator^(_Ios_Iostate, _Ios_Iostate)'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:191:26: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'
  191 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
#define all(c) (c).begin(), (c).end()
#define zero(a) memset(a, 0, sizeof a)
#define minus(a) memset(a, -1, sizeof a)
#define watch(a) { std::cout << #a << " = " << a << "\n"; }
template<class T1, class T2> inline bool minimize(T1 &a, T2 b) { return b < a && (a = b, 1); }
template<class T1, class T2> inline bool maximize(T1 &a, T2 b) { return a < b && (a = b, 1); }
template<class T, class V> istream& operator>> (istream& ist, pair<T, V>& p) { return ist >> p.first >> p.second; }
template<class T> ostream& operator<< (ostream& ost, pair<T, T>& p) { return ost << p.first << ", " << p.second; }
template<class T> istream& operator>> (istream& ist, vector<T>& vs) { for(auto& e: vs) ist >> e; return ist; }

typedef long long ll;
int const inf = INT_MAX / 2;

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


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

#include<iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author EDGE
 */
public class Solution {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, FastReader in, PrintWriter out) {
            int t = in.nextInt();
            int case_no = 1;
            while (t-- > 0) {
                int n = in.nextInt();
                long[] a = new long[n + 1];

                for (int i = 01; i < n + 1; i++) {
                    a[i] = in.nextLong();
                }
                StringBuffer sb = new StringBuffer();
                int ans = 1, min = 0;
                for (int i = 0; i < n; i++) {
                    int k = i + 1;
                    int te = 0;
                    while (k >= 1) {

                        for (int j = 1; j <= i + 1; j++) {
                            if (a[j] >= k)
                                te++;
                        }
                        if (k > te) k--;
                        else
                            break;
                    }
                    sb.append(k + " ");
                }
                out.println("Case #" + (case_no) + ": " + sb.toString());
                case_no++;
            }
        }

    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

    }
}



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

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> vi;
typedef pair<int,int> ii;
#define inf 1e9
#define F first
#define S second
#define dbg(x) cout<<#x<<" value : "<<x<<"\n";
#define rep(i,j,k) for(int i = (j); i <= (k); i++)
#define rep__(i,j,k) for(int i = (j); i < (k); i++)
#define per(i,j,k) for(int i = (j); i >= (k); i--)
#define per__(i,j,k) for(int i = (j); i > (k); i--)
#define mst(a,b) memset(a,b,sizeof(a))
#define sf(n) scanf("%d",&n)
#define stf(n,m) scanf("%d%d",&n,&m)
#define pf(n) printf("%d\n",n)
#define slf(n) scanf("%lld",&n)
#define plf(n) printf("%lld\n",n)
priority_queue<int,vector<int>,less<int> > q;
const int N=4e6+10;
const int mod=1e9+7;

void solve(){
	sf(r);
	printf("%d\n",r*r);
	return;
} 

int main()
{
	solve();
	return 0;
} 

Compiler output:
a.cc: In function 'void solve()':
a.cc:25:12: error: 'r' was not declared in this scope
   25 |         sf(r);
      |            ^
a.cc:15:27: note: in definition of macro 'sf'
   15 | #define sf(n) scanf("%d",&n)
      |                           ^
Language: C++

#include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <iostream>
#include <utility>

#define fir first
#define sec second
#define get(n) scanf("%d",&n);
#define gets(s) string s;cin >> (s);
#define All(s) (c).begin(), (c).end()
#define chmin(x, y) x = min(x, y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

int N;

void input() {
    cin >> N 
}

void solve(){
    input();
    int a = N*N;
    cout << a << endl;
    return ;
}

int main (){
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:23:13: error: expected ';' before '}' token
   23 |     cin >> N
      |             ^
      |             ;
   24 | }
      | ~