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

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

#define fir first
#define sec second
#define rep(i,n) rep2(i,0,n)
#define rep2(i,j,k) for(int i=j;i<k;i++)
#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:16:9: warning: "rep" redefined
   16 | #define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
      |         ^~~
a.cc:9:9: note: this is the location of the previous definition
    9 | #define rep(i,n) rep2(i,0,n)
      |         ^~~
a.cc: In function 'void input()':
a.cc:25:13: error: expected ';' before '}' token
   25 |     cin >> N
      |             ^
      |             ;
   26 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define f first
#define s second
#define pb push_back
#define mk make_pair
#define MOD 1000000007
#define fo(i,a,b) for(i=a;i<b;i++)
#define foe(i,a,b) for(i=a;i<=b;i++)
#define boost ios::sync_with_stdio(false); cin.tie(0)
using namespace std;
int main()
{
	boost;
	cin >> n;
	cout << n * n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'n' was not declared in this scope; did you mean 'yn'?
   16 |         cin >> n;
      |                ^
      |                yn
Language: C++

#include<bits/stdc++.h>

int main(void){ 

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


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

#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begin(), v.end()
#define INF 1e9

using namespace std;

/**
 * calculate GCD(greatest common divisor)
 * @param a
 * @param b
 * @return
 */
unsigned euclidean_gcd(unsigned a, unsigned b) {
    if (a < b) return euclidean_gcd(b, a);
    unsigned r;
    while ((r = a % b)) {
        a = b;
        b = r;
    }
    return b;
}

/**
 * change minimum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMinimum(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * change maximum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMaximum(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * output answer
 * @tparam T
 * @param answer
 * @return
 */
template<typename T>
T output(T answer) {
    cout << answer << endl;
    return 0;
}

/** ----from here ---------------------------------------------------------- */

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:82:15: error: invalid type argument of unary '*' (have 'int')
   82 |     cout << r**2 << endl;
      |               ^~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #using
    1 | #using <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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #using <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << n*n << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |   cout << n*n << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #using <bits/stdc++.h>
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    4 |   int n;cin>>n;cout<n*n<<endl;
      |                     ~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: invalid type argument of unary '*' (have 'int')
    4 |   int n;cin>>n;cout<n**2<<endl;
      |                       ^~
Language: C++

#include "stdafx.h"
#include <iostream>
#include <set>
#include <queue>
#include <vector>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <string>
#include <cstring>
#include <functional>
#include <climits>
#include <sstream>
#include <iomanip>
#include <map>
#include <stack>
#include <tuple>
#include <numeric>
#include <assert.h>
#include <functional>
#include <unordered_map>

using namespace std;

/*-----------------------------------------------------------------------------
　定義
 -------------------------------------------------------------------------------*/
#define REP(i, n)				for (int (i) = 0 ; (i) < (int)(n) ; ++(i))
#define REPN(i, m, n)			for (int (i) = m ; (i) < (int)(n) ; ++(i))
#define INF						2e9
#define MOD						(1000 * 1000 * 1000 + 7)
#define Ceil(x, n)				(((((x))+((n)-1))/n))		/* Nの倍数に切り上げ割り算 */
#define CeilN(x, n)				(((((x))+((n)-1))/n)*n)		/* Nの倍数に切り上げ */
#define FloorN(x, n)			((x)-(x)%(n))				/* Nの倍数に切り下げ */
#define IsOdd(x)				(((x)&0x01UL) == 0x01UL)			
#define IsEven(x)				(!IsOdd((x)))						
#define	BitSetV(Val,Bit)		((Val) |= (Bit))			
#define	BitTstV(Val,Bit)		((Val) & (Bit))				
#define ArrayLength(x)			(sizeof( x ) / sizeof( x[ 0 ]))
#define MAX_DWORD				(0xFFFFFFFF)
#define	MAX_SDWORD				((SDWORD)0x7FFFFFFF)
#define	MIN_SDWORD				((SDWORD)0x80000000)
#define	MAX_QWORD				((QWORD)0xFFFFFFFFFFFFFFFF)
#define	MIN_QWORD				((QWORD)0x0000000000000000)
#define	MAX_SQWORD				((SQWORD)0x7FFFFFFFFFFFFFFF)
#define	MIN_SQWORD				((SQWORD)0x8000000000000000)
#define M_PI					3.14159265358979323846

typedef long					SDWORD;
typedef long long				SQWORD;
typedef unsigned long			DWORD;
typedef unsigned long long int	QWORD;
typedef long long ll;
typedef pair<ll, ll>			P;

/*-----------------------------------------------------------------------------
　処理
 -------------------------------------------------------------------------------*/
int main()
{
	int r;
	cin >> r;
	cout << r * r;
	return 0;
}


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

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

int main(){
  int a=read();
  cout<<a*a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
    5 |   int a=read();
      |         ~~~~^~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:1:
/usr/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
Language: Java

public class Main {
    public static void main(String args[]) {
        int r = read();
        System.out.println(r * r);
    }

    // 入出力用関数
    private static int read() {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            return Integer.valueOf(reader.readLine().trim());
        } catch (IOException e) {
            e.printStackTrace();
            return -1;
        }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                                       ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:12: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Main
4 errors
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);
        TaskB solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, FastReader in, PrintWriter out) {
            out.println((int) Math.pow(in.nextInt(), 2));
        }

    }

    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());
        }

    }
}



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 <iostream>
#include <stdio.h>

using namespace std;

int Main()
{
    int r = 0;
    cin >> r;
    
    r = r * r;

    cout << r;
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

int Main()
{
    int r = 0;
    cin >> r;
    
    r = r * r;

    cout << r;
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

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

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

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

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

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


#include<bits/stdc++.h>


using namespace std;

using ll   = long long;
using ii   = pair   < int , int >;
using i3   = pair   < int , ii  >;
using li   = pair   < ll  , int >;
using lii  = pair   < ll  , ii  >;
using pll  = pair   < ll  , ll  >;
using vi   = vector < int       >;
using vl   = vector < ll        >;
using vii  = vector < ii        >;
using vpll = vector < pll       >;
using vi3  = vector < i3        >;
using vlii = vector < lii       >;


const int N;
const ll INF = 1e17 + 7;
const double eps = 1e-9 , PI = acos(-1);



int n , m;


void solve(int testCase){

    scanf("%d" , &n);
    printf("%d\n" , n*n);


}

main(){

    int t = 1;
    // scanf("%d" , &t);

    for(int testCase = 1 ; testCase <= t ; testCase ++){
            solve(testCase);
    }

    return 0;
}


Compiler output:
a.cc:21:11: error: uninitialized 'const N' [-fpermissive]
   21 | const int N;
      |           ^
a.cc:38:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   38 | main(){
      | ^~~~
Language: C++

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

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

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

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

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

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

#include <iostream>
using namespace std;
int main()
{
    unsigned long long rș
    cin>>r;
    cout<<r*r;;
    
    return 0;
}


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>r;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<bits/stdc++.h>
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<r*r<<endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:14: error: 'endl' was not declared in this scope
    6 |   cout<<r*r<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<bits/stdc++.h>
Language: Java

import java.util.*;

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

Compiler output:
Main.java:6: error: cannot find symbol
      	int n = nextInt();
      	        ^
  symbol:   method nextInt()
  location: class Main
1 error
Language: C++

import java.util.*;

public class Main {
	public static void main(String args[]) {
    	Scanner s = new Scanner(System.in);
      	int n = nextInt();
      	System.out.println(n*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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

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

int main(void)
{
  int N;
  int a = 1,b = 1,c,d = 1,e;
  int x[8];
  int y[8];
  double l[28];
  int h,i = 1,j;
  double sum = 0,ans;

  printf("N:"); 
  scanf("%d",&N);
  
  for(i = 1;i <= N;i++){
    a *= i;
  }/*a = N!*/
 
  for(i = 1;i <= N - 2;i++){
    b *= i;
  }
  
  /*
  for(i = 1;i <= N-1;i++){
    d *= i;
    printf("d:%d\n",d);
  }
  */

  e = N * (N - 1)/2;

  for(i = 0;i < N;i++){
    printf("x[%d] y[%d]",i,i);
    scanf("%d%d",&x[i],&y[i]);
  }

  
  h = 0;
  
    for(i = 0;i < N;i++){
      for(j = i + 1;j < N;j++){

        c = (x[i] - x[j])*(x[i] - x[j]) + (y[i] - y[j])*(y[i] - y[j]);  
        l[h] = sqrt(c);
	printf("i:%d j:%d l[%d]%5.2f\n",i,j,h,l[h]);
		h++;
      }
    }
   
   
  
  for(h = 0;h < e;h++){
    printf("l[%d]:%.2f\n",h,l[h]);
    sum += l[h];
    printf("sum:%.2f\n",sum);
  }
  
  ans = ((sum*2)*b)/a;   
  
  printf("%f\n",ans);
 
  
  return 0;




  

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

#include <iostream>
 
int main(){
    int r;
    int ret = 0;
    cin >> r;
    ret = r * r;
    printf("%d\n",ret);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> r;
      |     ^~~
      |     std::cin
In file included from 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 <cmath>
#include <vector>
#include <string>
#include <ctime>
#include <climits>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <utility>
#include <cstdlib>

using namespace std;

int main()
{
    int n;
    cin >> c;
    cout << pow(n,2) << endl;



}

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

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


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
    4 |   scanf(%d,&x);
      |         ^
main.c:5:10: error: expected expression before '%' token
    5 |   printf(%d, x*x);
      |          ^
Language: C

int main(){
  int x;
  scanf(%d,&x);
  printf(%d, x*x);
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
    4 |   scanf(%d,&a);
      |         ^
main.c:5:10: error: expected expression before '%' token
    5 |   printf(%d,a*a);
      |          ^
main.c: At top level:
main.c:7:1: error: expected identifier or '(' before 'return'
    7 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
  int a;
  scahf(%d,&a);
  printf(%d,a*a);
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scahf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scahf(%d,&a);
      |   ^~~~~
      |   scanf
main.c:4:9: error: expected expression before '%' token
    4 |   scahf(%d,&a);
      |         ^
main.c:5:10: error: expected expression before '%' token
    5 |   printf(%d,a*a);
      |          ^
main.c: At top level:
main.c:7:1: error: expected identifier or '(' before 'return'
    7 | return 0;
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(0
      |     ^~~~
a.cc:3:11: error: expected ')' before '{' token
    3 | int main(0
      |         ~ ^
      |           )
    4 |          {
      |          ~
Language: C++

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

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

// C++ 14
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <algorithm>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <unordered_map>
#include <math.h>
#include <sstream>

#define ll long long
#define Int ll
#define loop(x, start, end) for(Int x = start; x < end; x++)
#define loopdown(x, start, end) for(int x = start; x > end; x--)
#define span(a,x,y) a.begin()+x,a.begin()+y
#define span_all(a) a.begin(),a.end()
#define len(x) (x.size())
#define last(x) (*(x.end()-1))

using namespace std;

#define EPS 0.0000000001

class Vector2 {
public:
  double x, y;
  
  Vector2(double x = 0, double y = 0): x(x), y(y) {}
  
  Vector2 operator + (Vector2 v) { return Vector2(x + v.x, y + v.y); }
  Vector2 operator - (Vector2 v) { return Vector2(x - v.x, y - v.y); }
  Vector2 operator * (double k) { return Vector2(x * k, y * k); }
  Vector2 operator / (double k) { return Vector2(x / k, y / k); }
  
  double length() { return sqrt(norm()); }
  double norm() { return x * x + y * y; }
  double dot (Vector2 v) { return x * v.x + y * v.y; }
  double cross (Vector2 v) { return x * v.y - y * v.x; }
  
  bool operator < (const Vector2 &v) const {
    return x != v.x ? x < v.x : y < v.y;
  }
  
  bool operator == (const Vector2 &v) const {
    return fabs(x - v.x) < EPS && fabs(y - v.y) < EPS;
  }
};

ostream & operator << (ostream & out, Vector2 const & v) { 
  out<< "Vector2(" << v.x << ", " << v.y << ')';
  return out;
}

istream & operator >> (istream & in, Vector2 & v) { 
  double x, y;
  in >> x;
  in >> y;
  v.x = x;
  v.y = y;
  return in;
}

//     0 1 2 3 4 5
// ---------------
// 0 | 1 0 0 0 0 0
// 1 | 0 0 1 0 0 0
// 2 | 0 1 0 0 1 0
// 3 | 0 0 0 2 0 0
// 4 | 1 0 1 0 0 2
// 5 | 0 0 0 0 2 0
// 6 | 0 2 0 1 2 0


#define MAX_X 1000001
#define MOD 1000000007

Int X_, Y_;
Int B[MAX__X_][MAX__X_];

void input() {
  cin >> X_ >> Y_;
  loop(y,0,Y_+1) {
    loop(x,0,X_+1) {
      B[y][x] = 0;
    }
  }
}

void dfs(Int y, Int x) {
  if (y > Y_ || x > X_) return;
  B[y][x] = (B[y][x] + 1) % MOD;
  dfs(y + 1, x + 2);
  dfs(y + 2, x + 1);
}

void solve() {
  dfs(0, 0);
  cout << B[Y_][X_] << endl;
}

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


Compiler output:
a.cc:82:7: error: 'MAX__X_' was not declared in this scope; did you mean 'MAX_X'?
   82 | Int B[MAX__X_][MAX__X_];
      |       ^~~~~~~
      |       MAX_X
a.cc:82:16: error: 'MAX__X_' was not declared in this scope; did you mean 'MAX_X'?
   82 | Int B[MAX__X_][MAX__X_];
      |                ^~~~~~~
      |                MAX_X
a.cc: In function 'void input()':
a.cc:88:7: error: 'B' was not declared in this scope
   88 |       B[y][x] = 0;
      |       ^
a.cc: In function 'void dfs(long long int, long long int)':
a.cc:95:3: error: 'B' was not declared in this scope
   95 |   B[y][x] = (B[y][x] + 1) % MOD;
      |   ^
a.cc: In function 'void solve()':
a.cc:102:11: error: 'B' was not declared in this scope
  102 |   cout << B[Y_][X_] << 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:7:25: error: expected '}' at end of input
    7 |   cout << r * r << endl;
      |                         ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;

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

  cout << ans << endl;
  return 0;
}

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

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;

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

  cout <<  << endl;
  return 0;
}

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

#include<bits/stdc++.h> 

using namespace std;
typedef long long ll;

ll power(int x, unsigned int y, int p) 
{ 
    ll res = 1; // Initialize result 
    x = x % p; // Update x if it is more than or 
    // equal to p 
    while (y > 0) { 
        // If y is odd, multiply x with result 
        if (y & 1) 
            res = (res * x) % p; 
  
        // y must be even now 
        y = y >> 1; // y = y/2 
        x = (x * x) % p; 
    } 
    return res; 
} 
  
// Function to find modular inverse of a under modulo p 
// using Fermat's method. Assumption: p is prime 
ll modInverse(int a, int p) 
{ 
    return power(a, p - 2, p); 
} 
  
// Returns n! % p using Wilson's Theorem 
ll modFact(int n, int p) 
{ 
    // n! % p is 0 if n >= p 
    if (p <= n) 
        return 0; 
  
    // Initialize result as (p-1)! which is -1 or (p-1) 
    ll res = (p - 1); 
  
    // Multiply modulo inverse of all numbers from (n+1) 
    // to p 
    for (int i = n + 1; i < p; i++) 
        res = (res * modInverse(i, p)) % p; 
    return res; 
} 

int main(){
	ll p = 10e9+7;
	ll x,y; cin>>x>>y;

	if(x%3==0&&y%3==0&&x==y){
		cout<<modfact(x/3,p)/modfact(x/6,p)/modfact(x/6,p);

	}
	else {
		if((x-2)%3==0&&(y-1)%3==0&&x-2==y-1){
			cout<<modfact((x-2)/3+1,p)/modfact((x-2)/6,p)/modfact((x-2)/6+1,p);
		}
		else if((y-2)%3==0&&(x-1)%3==0&&x-1==y-2){
			cout<<modfact((x-1)/3+1,p)/modfact((x-1)/6,p)/modfact((x-1)/6+1,p);
		}
		else{
			cout<<0;
		}

	}



	
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:23: error: 'modfact' was not declared in this scope; did you mean 'modFact'?
   52 |                 cout<<modfact(x/3,p)/modfact(x/6,p)/modfact(x/6,p);
      |                       ^~~~~~~
      |                       modFact
a.cc:57:31: error: 'modfact' was not declared in this scope; did you mean 'modFact'?
   57 |                         cout<<modfact((x-2)/3+1,p)/modfact((x-2)/6,p)/modfact((x-2)/6+1,p);
      |                               ^~~~~~~
      |                               modFact
a.cc:60:31: error: 'modfact' was not declared in this scope; did you mean 'modFact'?
   60 |                         cout<<modfact((x-1)/3+1,p)/modfact((x-1)/6,p)/modfact((x-1)/6+1,p);
      |                               ^~~~~~~
      |                               modFact
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
int main(){
  int n;
  cin>>n;
  vector<int> x(n),y(n);
  for(int i=0;i<n;i++){
    cin>>x[i]>>y[i];
    }
   for(int i=0;i<n-1;i++){
     for(int j=i+1;j<n;j++){
       ans+=2*sqrt((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]))/n;
     }
   }
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |        ans+=2*sqrt((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]))/n;
      |        ^~~
      |        abs
a.cc:17:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: Java


    
    public static void main(String args[]){ 
     double pi;
        pi = 3.14;
      int r = 0;
      int a= (int) (3.14*r*r);
      int a2= (int) 3.14;
      
      int howMuch= a/a2;
      System.out.print(howMuch);
       
	}  



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

public class contest {
    
    public static void main(String args[]){ 
     double pi;
        pi = 3.14;
      int r = 0;
      int a= (int) (3.14*r*r);
      int a2= (int) 3.14;
      
      int howMuch= a/a2;
      System.out.print(howMuch);
       
	}  

}

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

        #include<stdio.h>
        #include<string.h>
                                 
                                int main(void){
                                  int n;
                                  int s;
                                  scanf("%d/n",&n);
                                  char str[n+1];
                                  
                                  scanf("%s",str);
                                  if((n%2)==0){
                                    char t[(n/2)+1];
                                    for(int i;i<(n/2);i++){
                                    t[i]=str[i];
                                    }
                                    char t2[n+1]=t+t;
                                    if(str==t2){
                                     printf("Yes\n");
                                       return 0;
                                    }
                                  }
                                  printf("No\n");
                                 return 0; 
                                }

Compiler output:
main.c: In function 'main':
main.c:16:51: error: invalid operands to binary + (have 'char *' and 'char *')
   16 |                                     char t2[n+1]=t+t;
      |                                                  ~^
      |                                                  ||
      |                                                  |char *
      |                                                  char *
main.c:16:50: error: variable-sized object may not be initialized except with an empty initializer
   16 |                                     char t2[n+1]=t+t;
      |                                                  ^
Language: C

    #include<stdio.h>
    #include<string.h>
                             
                            int main(void){
                              int n;
                              int s;
                              scanf("%d/n",&n);
                              char str[n+1];
                              
                              scanf("%s",str);
                              if((n%2)==0){
                                char t[n/2];
                                for(int i;i<(n/2);i++){
                                t[i]=str[i];
                                }
                                char t2[n+1]=t[n/2]+t[n/2];
                                if(str==t2){
                                 printf("Yes\n");
                                   return 0;
                                }
                              }
                              printf("No\n");
                             return 0; 
                            }

Compiler output:
main.c: In function 'main':
main.c:16:46: error: variable-sized object may not be initialized except with an empty initializer
   16 |                                 char t2[n+1]=t[n/2]+t[n/2];
      |                                              ^
Language: C

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

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

    #include<stdio.h>
                             
                            int main(void){
                              int n;
                              int s;
                              scanf("%d/n",&n);
                              char str[n+1];
                              
                              scanf("%s",str);
                              if((n%2)==0){
                                char t[n/2];
                                for(int i;i<(n/2);i++){
                                t[i]=str[i];
                                }
                                char t2[n+1]=*t+*t;
                                if(str==t2){
                                 printf("Yes\n");
                                   return 0;
                                }
                              }
                              printf("No\n");
                             return 0; 
                            }

Compiler output:
main.c: In function 'main':
main.c:15:46: error: variable-sized object may not be initialized except with an empty initializer
   15 |                                 char t2[n+1]=*t+*t;
      |                                              ^
Language: C

#include<stdio.h>
#include<string.h>
                         
                        int main(void){
                          int n;
                          int s;
                          scanf("%d/n",&n);
                          char str[n+1];
                          
                          scanf("%s",str);
                          if((n%2)==0){
                            char t[n/2];
                            for(int i;i<(n/2);i++){
                            t[i]=str[i]
                            }
                            char t2[n+1]=t+t;
                            if(str==t2){
                             printf("Yes\n");
                               return 0;
                            }
                          }
                          printf("No\n");
                         return 0; 
                        }

Compiler output:
main.c: In function 'main':
main.c:14:40: error: expected ';' before '}' token
   14 |                             t[i]=str[i]
      |                                        ^
      |                                        ;
   15 |                             }
      |                             ~           
main.c:16:43: error: invalid operands to binary + (have 'char *' and 'char *')
   16 |                             char t2[n+1]=t+t;
      |                                          ~^
      |                                          ||
      |                                          |char *
      |                                          char *
main.c:16:42: error: variable-sized object may not be initialized except with an empty initializer
   16 |                             char t2[n+1]=t+t;
      |                                          ^
Language: C++

#include <iostream>

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


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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << r*r;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:3: error: 'retunr' was not declared in this scope
    8 |   retunr 0;
      |   ^~~~~~
Language: C++

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

int main() {
  int r;
  cin >> r;
      cout << r*r << endl	//3.14*r^2
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before '}' token
    7 |       cout << r*r << endl       //3.14*r^2
      |                          ^~~~~~~
      |                                ;
    8 | }
      | ~
Language: C++

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

int main() {
  int r;
  cin >> r;
      cout << r*r << endl	//3.14*r^2
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before '}' token
    7 |       cout << r*r << endl       //3.14*r^2
      |                          ^~~~~~~
      |                                ;
    8 |   }
      |   ~                       
a.cc: At global scope:
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include <stdio.h>
int main(int argc, char const *argv[])
{
  int a;
  scanf("%d",&a);
  char b[a];
  scanf("%s",b);
  if(a%2!=0){
    printf("No");
    return (0);
  }
  for(int i=0;i<n/2;i++){
    if(b[i]!=b[i+n/2]){
      printf("No");
      return (0);
    }
  }
  printf("Yes");
  return (0);
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:17: error: 'n' was not declared in this scope
   12 |   for(int i=0;i<n/2;i++){
      |                 ^
Language: C

#include<stdio.h>
#include<string.h>
                         
                        int main(void){
                          int n;
                          int s;
                          scanf("%d/n",&n);
                          char str[n+1];
                          
                          scanf("%s",str);
                          if((n%2)==0){
                            char t[(n/2)+1];
                            for(int i;i<(n/2);i++){
                            t[i]=str[i]
                            }
                            strcat(t,t);
                            if(str==t){
                             printf("Yes\n");
                               return 0;
                            }
                          }
                          printf("No\n");
                         return 0; 
                        }

Compiler output:
main.c: In function 'main':
main.c:14:40: error: expected ';' before '}' token
   14 |                             t[i]=str[i]
      |                                        ^
      |                                        ;
   15 |                             }
      |                             ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  char a[256];
  string t,d;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a[i];
    d+=a[i];
  }
  b=n/2;
  for(int i=0;i<b;i++){
    t+=a[i];
  }
  if(d==t+t){
    cout<<"Yes"<<'\n';
  }
  else{
    cout<<"No"<<'\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'b' was not declared in this scope
   12 |   b=n/2;
      |   ^
Language: C

                        #include<stdio.h>
                         
                        int main(void){
                          int n;
                          int s;
                          scanf("%d/n",&n);
                          char str[n+1];
                          scanf("%s",str);
                          if((n%2)==0){
                            for(int i;i<(n/2);i++){
                            char t[(n/2)+1]=str[i]
                            }
                            if(str==(t+t)){
                             printf("Yes\n");
                               return 0;
                            }
                          }
                          printf("No\n");
                         return 0; 
                        }

Compiler output:
main.c: In function 'main':
main.c:11:45: error: variable-sized object may not be initialized except with an empty initializer
   11 |                             char t[(n/2)+1]=str[i]
      |                                             ^~~
main.c:12:29: error: expected ',' or ';' before '}' token
   12 |                             }
      |                             ^
main.c:13:39: error: invalid operands to binary + (have 'char *' and 'char *')
   13 |                             if(str==(t+t)){
      |                                      ~^
      |                                      ||
      |                                      |char *
      |                                      char *
main.c:20:25: error: expected declaration or statement at end of input
   20 |                         }
      |                         ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 |   int r:
      |        ^
      |        ::
a.cc:4:7: error: 'r' has not been declared
    4 |   int r:
      |       ^
a.cc:5:12: error: qualified-id in declaration before '>>' token
    5 |   std::cin >> r:
      |            ^~
Language: C++

#include<iostream>
using namespace std;
{
  int r,a,b,c;
  cin>>r;
  a=3.14*r*r;
  b=3.14*1*1;
  c=a/b;
  cout<<c;
}
  

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int main () {
	int a,b,c;
	cin >> a;
	b = 3;
	c = 1 * 1 * 3;
cout << (a * a * b) / c;
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '}' at end of input
    9 | return 0;
      |          ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^
Language: C++

#include <iostream>
using namespace std;
int mian(){
int "r";
  0<=r<=100
  cin>>"r";
  cout<<"r"*"r"/1*1<<endl;
  
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:4:5: error: expected unqualified-id before string constant
    4 | int "r";
      |     ^~~
a.cc:5:6: error: 'r' was not declared in this scope
    5 |   0<=r<=100
      |      ^
a.cc:7:12: error: invalid operands of types 'const char [2]' and 'const char [2]' to binary 'operator*'
    7 |   cout<<"r"*"r"/1*1<<endl;
      |         ~~~^~~~
      |         |   |
      |         |   const char [2]
      |         const char [2]
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
Language: C

#include<stdio.h>

int main ()
{ int n,p;
  scanf("%d",&n);
  p=n*n;
  printf("%d",p);
  getch():
  return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
    8 |   getch():
      |   ^~~~~
      |   getc
main.c:8:10: error: expected ';' before ':' token
    8 |   getch():
      |          ^
      |          ;
Language: C++

#include <iostream>

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

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

#include<stdio.h>
#include<conio.h>
int main ()
{ int n,p;
  scanf("%d",&n);
  p=n*n;
  printf("%d",p);
  getch():
  return 0 ;
}


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

#include <bits/stdc++.h>
#define rep(i,cc,n) for(int i=cc;i<=n;++i)
#define drep(i,cc,n) for(int i=cc;i>=n;--i)
#define sz(s) (int)(s.size())
#define vecprint(v) rep(i,0,v.size()-1)cout << v[i] << " ";cout << endl;
#define mod 1000000007
using namespace std;

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

    cout << r*r << endl;
//  printf("%.10f\n",ans);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected initializer before 'cin'
   11 |     cin >> r;
      |     ^~~
a.cc:13:13: error: 'r' was not declared in this scope
   13 |     cout << r*r << endl;
      |             ^
Language: C

#include<stdio.h>
#include<conio.h>
int main ()
{ int n,p;
  scanf("%d",&n);
  p=n*n;
  printf(" p is : %d\n",p);
  getch():
  return 0 ;
}

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

import java.util.Scanner;

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


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