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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int r; 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:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   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:4:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   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++

https://atcoder.jp/contests/abc147#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll,ll> pll;
typedef vector<bool> vb;
const ll oo = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-9;
#define sz(c) ll((c).size())
#define all(c) begin(c), end(c)
#define FOR(i,a,b) for (ll i = (a); i < (b); i++)
#define FORD(i,a,b) for (ll i = (b)-1; i >= (a); i--)
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define xx first
#define yy second
#define TR(X) ({ if(1) cerr << "TR: " << (#X) << " = " << (X) << endl; })

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	
	ll n; cin >> n;
	cout << n*n << endl;

}



Compiler output:
a.cc:1:1: error: 'https' does not name a type
    1 | https://atcoder.jp/contests/abc147#include <bits/stdc++.h>
      | ^~~~~
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<ll> vl;
      |         ^~~~~~
a.cc:6:9: error: 'vector' does not name a type
    6 | typedef vector<vl> vvl;
      |         ^~~~~~
a.cc:7:9: error: 'pair' does not name a type
    7 | typedef pair<ll,ll> pll;
      |         ^~~~
a.cc:8:9: error: 'vector' does not name a type
    8 | typedef vector<bool> vb;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:23:9: error: 'ios_base' has not been declared
   23 |         ios_base::sync_with_stdio(false);
      |         ^~~~~~~~
a.cc:24:9: error: 'cin' was not declared in this scope
   24 |         cin.tie(NULL);
      |         ^~~
a.cc:24:17: error: 'NULL' was not declared in this scope
   24 |         cin.tie(NULL);
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | https://atcoder.jp/contests/abc147#include <bits/stdc++.h>
a.cc:27:9: error: 'cout' was not declared in this scope
   27 |         cout << n*n << endl;
      |         ^~~~
a.cc:27:24: error: 'endl' was not declared in this scope
   27 |         cout << n*n << endl;
      |                        ^~~~
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:6:11: error: expected ';' before 'cout'
    6 |   cin >> r
      |           ^
      |           ;
    7 |   cout << r * r << endl;
      |   ~~~~
Language: C++

import java.util.*;
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:
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:3:9: error: expected ':' before 'static'
    3 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:3:27: error: 'String' has not been declared
    3 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:3:36: error: expected ',' or '...' before 'args'
    3 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:8:2: error: expected ';' after class definition
    8 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:5: error: 'Scanner' was not declared in this scope
    4 |     Scanner scan=new Scanner(System.in);
      |     ^~~~~~~
a.cc:5:11: error: 'scan' was not declared in this scope
    5 |     int r=scan.nextInt();
      |           ^~~~
a.cc:6:5: error: 'System' was not declared in this scope
    6 |     System.out.println(r*r);
      |     ^~~~~~
Language: C++

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

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

    coout << r * r <<  endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'coout' was not declared in this scope
    8 |     coout << r * r <<  endl;
      |     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before ';' token
    7 |   a**;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before ';' token
    7 |   a **;
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: found ':' in nested-name-specifier, expected '::'
    6 |   cin >> a:
      |           ^
      |           ::
a.cc:6:10: error: 'a' is not a class, namespace, or enumeration
    6 |   cin >> a:
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: found ':' in nested-name-specifier, expected '::'
    6 |   cin >> r:
      |           ^
      |           ::
a.cc:6:10: error: 'r' is not a class, namespace, or enumeration
    6 |   cin >> r:
      |          ^
Language: C++

#include <iostream>
#include<cstring>;
 
using namespace std;
 
int main()
{
   int n;
   string s,t,d;
   cin>>n;
   cin>>s;
  if((strlen(s))==1)
    cout<<"No";
  else
  {
    for(int i=0;i<(n/2);i++)
   {
       t[i]=s[i];
   }
   int j=0;
    for(int i=n/2;i<n;i++)
   {
       d[j]=s[i];
       j++;
   }
   if(t==d)
   cout<<"Yes";
   else
   cout<<"No";
  }
   
 
   return 0;
}


Compiler output:
a.cc:2:18: warning: extra tokens at end of #include directive
    2 | #include<cstring>;
      |                  ^
a.cc: In function 'int main()':
a.cc:12:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |   if((strlen(s))==1)
      |              ^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include<cstring>;
 
using namespace std;
 
int main()
{
   int n;
   string s,t,d;
   cin>>n;
   cin>>s;
  if(strlen(s)==1)
    cout<<"No";
  else
  {
    for(int i=0;i<(n/2);i++)
   {
       t[i]=s[i];
   }
   int j=0;
    for(int i=n/2;i<n;i++)
   {
       d[j]=s[i];
       j++;
   }
   if(t==d)
   cout<<"Yes";
   else
   cout<<"No";
  }
   
 
   return 0;
}


Compiler output:
a.cc:2:18: warning: extra tokens at end of #include directive
    2 | #include<cstring>;
      |                  ^
a.cc: In function 'int main()':
a.cc:12:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |   if(strlen(s)==1)
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include<cstring>;
 
using namespace std;
 
int main()
{
   int n;
   string s,t,d;
   cin>>n;
   cin>>s;
  if(strlen(s)=1)
    cout<<"No";
  else
  {
    for(int i=0;i<(n/2);i++)
   {
       t[i]=s[i];
   }
   int j=0;
    for(int i=n/2;i<n;i++)
   {
       d[j]=s[i];
       j++;
   }
   if(t==d)
   cout<<"Yes";
   else
   cout<<"No";
  }
   
 
   return 0;
}

Compiler output:
a.cc:2:18: warning: extra tokens at end of #include directive
    2 | #include<cstring>;
      |                  ^
a.cc: In function 'int main()':
a.cc:12:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |   if(strlen(s)=1)
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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

int main(){
	double n , x[10] , y[10],a[10];
  cin >> n;
  for(int i=0; i<n; i++){
  	cin >> x[i] >> y[i];
  }
  vector<int> v(n);
  for(int i=0; i<n; ++i) v(i) = i+1;
  
  double sum=0;
  do{
  	for(int i=0; i<n; ++i) {
    sum += pow( pow(x[v[i]]-x[v[i+1]],2) + pow(y[v[i]] + y[v[i+1]] , 2) , 0.5)
    }
  }while(next_permutation(v.begin(),v.end()))
    
    cout << (double)sum / n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: no match for call to '(std::vector<int>) (int&)'
   11 |   for(int i=0; i<n; ++i) v(i) = i+1;
      |                          ~^~~
a.cc:16:79: error: expected ';' before '}' token
   16 |     sum += pow( pow(x[v[i]]-x[v[i+1]],2) + pow(y[v[i]] + y[v[i+1]] , 2) , 0.5)
      |                                                                               ^
      |                                                                               ;
   17 |     }
      |     ~                                                                          
a.cc:18:46: error: expected ';' before 'cout'
   18 |   }while(next_permutation(v.begin(),v.end()))
      |                                              ^
      |                                              ;
   19 | 
   20 |     cout << (double)sum / n;
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n;
  char s[200];
  
  cin >> n;
  
  for(int i=0; i<n; ++i){
  	cin >> s[i];
  }
  if(n%2 == 1){
  	cout << No;
    return 0;
  }
  
  int k=n/2;
  int ans=0;
  for(int i=0; i<k; i++){
  	if(s[i] == s[k+i]) ans++;
  }
  if(ans != k) {
  cout << "No";
    return 0;
  }
  
  cout << Yes;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'No' was not declared in this scope
   14 |         cout << No;
      |                 ^~
a.cc:28:11: error: 'Yes' was not declared in this scope
   28 |   cout << Yes;
      |           ^~~
Language: Java

public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		System.out.println(a * a);

	}

Compiler output:
Main.java:1: 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: Java

Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
System.out.println(a * a);

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

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

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> r;
      | ^~~
a.cc:5:1: error: 'cout' does not name a type
    5 | cout << r*r << endl;
      | ^~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'return'
    7 |         cout<<r*r
      |                  ^
      |                  ;
    8 |         return 0;
      |         ~~~~~~
Language: Java

import java.io.*;

class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int num = Integer.parseInt(br.readLine());
    System.out.println(Math.pow(num,2));
  }
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
    int num = Integer.parseInt(br.readLine());
                                          ^
1 error
Language: Java

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

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
    String r = sc.nextInt();   
                         ^
Main.java:7: error: bad operand types for binary operator '*'
    System.out.println(r*r);
                        ^
  first type:  String
  second type: String
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
    String r = sc.nextInt();
                         ^
Main.java:8: error: cannot find symbol
    r2 = r * r;
    ^
  symbol:   variable r2
  location: class Main
Main.java:8: error: bad operand types for binary operator '*'
    r2 = r * r;
           ^
  first type:  String
  second type: String
Main.java:10: error: cannot find symbol
    System.out.println(r2);
                       ^
  symbol:   variable r2
  location: class Main
4 errors
Language: C++

#include <bits/stdc++.h>
int main(){
  int r;
  int k;
  int a;
  k = r * r;
  cin >> a;
  cout << k <<endl;
}

Compiler output:
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 >> 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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << k <<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:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << k <<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>
usisng namespace std;
int main()
{
  int n;
  cin>>n;
  cout<<(n*n);
  return 0;
}

Compiler output:
a.cc:2:1: error: 'usisng' does not name a type
    2 | usisng namespace 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>>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);
      |   ^~~~
      |   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 <stdio.h>

int main() {
	double n;

	scanf("%lf", &n);

	printf("%d", (int)((n*n*3.14) / 3.14));
	return 0;
}
hh

Compiler output:
main.c:11:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   11 | hh
      | ^~
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.println(r * r)
      }
}

Compiler output:
Main.java:8: error: ';' expected
      System.out.println(r * r)
                               ^
1 error
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vc= vector<char>;
#define REP(i,x,n) for(int i=x; i<n; i++)
#define rep(i,n) REP(i,0,n)
#define all(x) x.begin(), x.end()

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

  return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected declaration or statement at end of input
    6 |   printf("%d",t);
      |   ^~~~~~
Language: C

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

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

#include
int main()
{
  int a;
  
  scanf("%d",&a);
  
  printf("%d",a*a);
  
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |   printf("%d",a*a);
      |   ^~~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include
int main()
{
  int a;
  
  scanf("%d",&a);
  
  printf("%d",a*a);
  
  return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d",&a);
      |   ^~~~~
a.cc:8:3: error: 'printf' was not declared in this scope
    8 |   printf("%d",a*a);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
#include <ctype.h>
#include <math.h>
#define ll long long
char toupper(char c);
char toupper(char c)
{
    return (c - 0x20);
}

using namespace std;
int main()
{
  int n;
  sin >> n;
  cout << n*n << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>>'
   22 |   sin >> n;
      |   ~~~~^~~~
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> P1;
typedef pair<P,P> P2;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 1000000000
#define mod 998244353 
#define fi first
#define sc second
#define rep(i,x) for(int i=0;i<x;i++)
#define repn(i,x) for(int i=1;i<=x;i++)
#define SORT(x) sort(x.begin(),x.end())
#define ERASE(x) x.erase(unique(x.begin(),x.end()),x.end())
#define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin())
#define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin())
int main(){
	cin>>n;cout<<n*n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   27 |         cin>>n;cout<<n*n<<endl;
      |              ^
      |              yn
Language: Java

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

public class Sample {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int num1 = Integer.parseInt(str);

		double num2 = Math.pow(num1, 2);
		int num3 = (int) num2;
		System.out.println(num3);
	}
}


Compiler output:
Main.java:5: error: class Sample is public, should be declared in a file named Sample.java
public class Sample {
       ^
1 error
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:9:13: error: invalid type argument of unary '*' (have 'int')
    9 |   cout << r**2 << endl;
      |             ^~
Language: C++

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

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


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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'x' was not declared in this scope
    8 | x
      | ^
Language: C++


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


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'x' was not declared in this scope
    8 | x
      | ^
Language: C++

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



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



return 0;
}


Compiler output:
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:2:20: error: expected ';' before '++' token
    2 | using namespace std++;
      |                    ^~
      |                    ;
a.cc:2:20: error: expected unqualified-id before '++' token
    2 | using namespace std++;
      |                    ^~
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
      |                      ^
      |                      ;
    8 | }
      | ~
Language: Java

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


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

#include <stdio.h>

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 |   scanf(r,"%d");
      |         ^
      |         |
      |         int
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.Scanner;
public class Circle {

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

}


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

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

int main(){
int r =0;
cin >> r;
if(r =< 100){
int x;
x = r*r;
cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before '<' token
    7 | if(r =< 100){
      |       ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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


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

let scan_int () = Scanf.scanf " %d" (fun x -> x)
let print_int n = Printf.printf "%d\n" n

let () =
  let r = scan_int() in
  print_int (r*r)

Compiler output:
a.cc:1:1: error: 'let' does not name a type
    1 | let scan_int () = Scanf.scanf " %d" (fun x -> x)
      | ^~~
Language: Java

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

Compiler output:
Main.java:4: error: cannot find symbol
    int r = (int) new Scanner(System.in).nextLine();
                      ^
  symbol:   class Scanner
  location: class Main
1 error
Language: C++

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

void solve() {
  int n;
  cin >> n;
  cout << pow(n,2) << endl;
}

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


Compiler output:
a.cc: In function 'void solve()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << pow(n,2) << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:11: error: 'pow' was not declared in this scope
    8 |   cout << pow(n,2) << endl;
      |           ^~~
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |   cout << pow(n,2) << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i,n) for (int i = 0; i < (n); ++i)
Language: C++

#include <iostream>

using namspace std;

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


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace 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 >> 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
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<a*a<<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<<a*a<<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<stdio.h>

int main(void){

	int r;

	scanf_s("%d", &r);

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

	return(0);

}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h> 
int main() {
   int radius;
   float area, perimeter;    
	scanf("%d", &radius);

	area = radius*radius;
	printf(area);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: incompatible type for argument 1 of 'printf'
    8 |         printf(area);
      |                ^~~~
      |                |
      |                float
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'float'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h> 
int main() {
   int radius;
   float area, perimeter;    
	scanf("%d", &radius);

	area = radius*radius
	printf("Area of the Circle = %f square inches\n", area);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:29: error: expected ';' before 'printf'
    7 |         area = radius*radius
      |                             ^
      |                             ;
    8 |         printf("Area of the Circle = %f square inches\n", area);
      |         ~~~~~~
Language: C

#include <stdio.h> 
int main() {
   int radius;
   float area, perimeter;    
	scanf("%d", &radius);

	area = radius*radius
	printf("Area of the Circle = %f square inches\n", area);

return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:29: error: expected ';' before 'printf'
    7 |         area = radius*radius
      |                             ^
      |                             ;
    8 |         printf("Area of the Circle = %f square inches\n", area);
      |         ~~~~~~
Language: C++

#include <bits/stdc++.h>
int main(){
	int t;
  cin>>t;
  cout<<t*t;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>t;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<t*t;
      |   ^~~~
      |   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()
{
  int r ; 
  cin>>r ; 
  cout<< r*r ; 
}

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 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<< 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: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int a = sc.nextInt();
		// output
		System.out.println((a * a);
	}
}

Compiler output:
Main.java:8: error: ')' or ',' expected
		System.out.println((a * a);
		                          ^
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: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cout'
    6 |   cin >> r
      |           ^
      |           ;
    7 |     cout << r*r << endl;
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: invalid type argument of unary '*' (have 'int')
    6 |   cout << r**2;
      |             ^~
Language: Java

import java.util.Scanner;

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


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

package src.AtCoder.abc145;

import java.util.Scanner;

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


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

package src.AtCoder.abc145;

import java.util.Scanner;

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


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

#include<bits/stdc++.h>
using namespace std;
int main() {
    /* Enter your code here. Read input from STDIN. Print output to STDOUT */ 
    int n;>>cin>>n;
    cout<<n*n;  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before '>>' token
    5 |     int n;>>cin>>n;
      |           ^~
Language: C++

// Author:: MUKUL KUMAR RAI
// Institution:: Jalpaiguri Government Engineering College
//If you are not doing well now just stick to it and learn new things one day you will be...
//Compete with yourself 
#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
#define ld long double
#define fi first
#define se second
#define pb push_back
///*template{{{
#define sz(x) (ll)x.size()
#define all(x) (x.begin(),x.end())
#define trav(a,x) for(auto &a:x)
#define fr(i,a,b)  for(ll i=a;i<=b;i++)
#define fr1(i,a)   for(ll i=0;i<a;i++)
#define frr(i,a,b) for(ll i=b;i>=a;i--)
#define frr1(i,a)   for(ll i=a-1;i>=0;i--)
#define sorta(a,n) sort(a,a+n)
#define sortd(a,n) sort(a,a+n,greater<ll>())
#define sorva(a) sort(a.begin(),a.end())
#define sortvd(a) sort(a.begin(),a.end(),greater<ll>())
#define tc(t) while(t--)
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);
using vi= vector<ll>;
using vvi= vector<vi>;
using vb =vector<bool>;
using vc =vector<char>;
using vs =vector<string>;
using vld =vector<ld>;
using pii =pair<ll,ll>;
using psi =pair<string,ll>;
using pci =pair<char,ll>;
using vpii =vector<pii>;
//}}}template*/
ll mod=1e9+7;
ll const maxn=2e6+6;
ll const inf=1e18;
ll add(ll a,ll b){
    return ((a%mod)+(b%mod))%mod;
}
ll mul(ll a,ll b){
    return ((a%mod)*(b%mod))%mod;
}
ll powm(ll x,ll n,ll M)
{
    ll result=1;
    while(n>0)
    {
        if(n % 2 ==1)
            result=(result * x)%M;
        x=(x*x)%M;
        n=n/2;
    }
    return result;
}
ll modinverse(ll a, ll m){
    return powm(a,m-2,m);
}
bool prime(ll x){
    if(x<=1)return false;
    for(int i=2;i<=sqrt(x);i++)if(x%i==0)return false;
    return true;
}
ll divisor(ll x){
    ll cnt=0;
    for(int i=1;i<=sqrt(x);i++){
        if(x%i==0){
            if(i!=x/i)cnt+=2;
            else cnt+=1;
        }
    }
    return cnt;
}
vector<ll> sieve(ll n) {     
    bool prim[n+1]; 
    memset(prim, true, sizeof(prim)); 
  
    for (ll p=2; p*p<=n; p++) {
        if (prim[p] == true) { 
            for (int i=p*p; i<=n; i += p) 
                prim[i] = false; 
        } 
    }
    vector<ll>v;
    for(int i=2;i<=n;i++)if(prim[i])v.push_back(i);
    return v; 
}
vi fact(maxn);
void solve(){
    fact[0]=fact[1]=1;
    for(ll i=2;i<maxn;i++){
        fact[i]=mul(fact[i-1],i);
    }
}
int main(){
    // #ifndef ONLINE_JUDGE
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
    // #endif
    fio;
    solve();
    ll x,y;
    cin>>x>>y;
    if((x+y)%3!=0 or (n<r)){
        cout<<0;
        return 0;
    }
    ll n=(x+y)/3;
    ll r=min(x-n,y-n);
    ll ans=mul(fact[n],mul(modinverse(fact[n-r],mod),modinverse(fact[r],mod)));
    cout<<ans;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:106:23: error: 'n' was not declared in this scope
  106 |     if((x+y)%3!=0 or (n<r)){
      |                       ^
a.cc:106:25: error: 'r' was not declared in this scope
  106 |     if((x+y)%3!=0 or (n<r)){
      |                         ^
Language: Java

import java.util.Scanner;

public class abc145_a {
    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        final int n = Integer.parseInt(sc.next());
        System.out.println(n*n);
        sc.close();
    }
}

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

import java.util.Scanner;

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

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

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //System.out.print("入力してください > ");
        String input_text = scanner.nextLine();
        int r = Integer.parseInt(input_text);
        
        System.out.println(r*r);

        // Scannerクラスのインスタンスをクローズ
        scanner.close();
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid type argument of unary '*' (have 'int')
    7 |   r = r**2;
      |         ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid type argument of unary '*' (have 'int')
    7 |   r = r**2
      |         ^~
Language: Java

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


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<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  cout<<n*n<<endl;
}

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include<bits/stdc++.h>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<n*n<<endl;
      |   ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |   cout<<n*n<<endl;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>

int main(){
 	int r;
  cin >> r;
  long long int ans = r*r;
  cout << ans << 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 >> 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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << ans << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << ans << 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: Java

import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
/* Name of the class has to be "Main" only if the class is public. */


/* Name of the class has to be "Main" only if the class is public. */
public class codeforces
{
    
    public static void main (String[] args) throws java.lang.Exception
    {
        Scanner s=new Scanner(System.in);
        int t=s.nextInt();
      System.out.println(t*t);
    }
}

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

import java.util.*;

public class Circle {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int r = s.nextInt();
        int result = r * r;

        System.out.println(result);
    }
}

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

import java.util.*;

public class InteractiveSorting {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        
        int r = s.nextInt();
        int result = (int) (Math.pow(r, 2));

        System.out.println(result);
    }
}

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

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

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

#include<stdio.h>

int main(){
int a;
scanf("%d",&a);
print("%d",a*a)
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 | print("%d",a*a)
      | ^~~~~
      | printf
main.c:6:16: error: expected ';' before '}' token
    6 | print("%d",a*a)
      |                ^
      |                ;
    7 | }
      | ~
Language: C++

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

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

#include < bits/stdc++.>

using namespace std;

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

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

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

int main(){

  int r;
  cin >> r;
  
  int a = (r*r);
 
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs