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

x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |   ^
main.c:1:5: error: return type defaults to 'int' [-Wimplicit-int]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |     ^~~~
main.c: In function 'main':
main.c:1:5: error: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:55: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |                                                       ^~~
      |                                                       main
main.c:1:66: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | x,a;main(k){for(scanf("%*d%d",&k);~scanf("%d",&x);)a+=min(x,k-x);printf("%d",2*a);}
      |                                                                  ^~~~~~
main.c:1:66: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:66: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:66: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include "stdio.h"

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

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

#include <iostream>;
using namespace std;
int main();
{
int n,k,x,m;
cin>>n;
cin>>k;
int x=0;
for n to(ci>>x;if k-x>n m=x else m=k-x
x=x+m);
cout<<x;
system("pause");
return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

#include<cstdio>
int main(){
int n,a;
scanf("%d%d",&n,&a);
pritnf("%d",n*n-a);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
    5 | pritnf("%d",n*n-a);
      | ^~~~~~
      | printf
Language: Java

import java.util.Scanner;
public class Bichrome_Cells {
	public static void main(String[] args) {
		int n,a;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		a=scan.nextInt();
		System.out.println(n*n-a);
		
}
}


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

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

public class A {
    String fileName = "";


    public void solve() throws IOException {
        int n = nextInt();
        int a = nextInt();
        out.println(n * n - a);
    }

    public void run() {
        try {
            if ("".equals(fileName)) {
                br = new BufferedReader(new InputStreamReader(System.in));
                out = new PrintWriter(System.out);
            } else {
                br = new BufferedReader(new FileReader(fileName + ".in"));
                out = new PrintWriter(fileName + ".out");
            }
            solve();

            out.close();
        } catch (IOException e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    BufferedReader br;
    StringTokenizer in;
    PrintWriter out;

    public String nextToken() throws IOException {
        while (in == null || !in.hasMoreTokens()) {
            in = new StringTokenizer(br.readLine());
        }
        return in.nextToken();
    }

    public int nextInt() throws IOException {
        return Integer.parseInt(nextToken());
    }

    public double nextDouble() throws IOException {
        return Double.parseDouble(nextToken());
    }

    public long nextLong() throws IOException {
        return Long.parseLong(nextToken());
    }

    public static void main(String[] args) throws IOException {
        Locale.setDefault(Locale.US);
        new A().run();
    }

}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
   int N, A, ans;
   cin N, A;

   ans = N*N-A;
   
   cout << ans <<  endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'N'
    7 |    cin N, A;
      |       ^~
      |       ;
Language: Java

public class madn{

  public static void main(String[] args){
    
    System.out.println((Integer.parseInt(args[0]))*(Integer.parseInt(args[0]))
        -Integer.parseInt(args[1]));
  }
}

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

import java.util.*;
 
public class Main{
    public static void main(String... arg){
        Scanner sc = new Scanner(System.in);
        
        int square = sc.nextInt()
        int white = sc.nextInt();
        
        System.out.println((square * square) - white);
        
    }
 
}


Compiler output:
Main.java:7: error: ';' expected
        int square = sc.nextInt()
                                 ^
1 error
Language: Java

import java.util.*;
2. 
3.public class Main{
4.    public static void main(String... arg){
5.        Scanner sc = new Scanner(System.in);
6.        
7.        int square = sc.nextInt();
8.        int white = sc.nextInt();
9.        
10.        System.out.println((square * square) - white);
11.        
12.    }
13. 
14.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2. 
^
Main.java:4: error: illegal start of type
4.    public static void main(String... arg){
^
Main.java:5: error: not a statement
5.        Scanner sc = new Scanner(System.in);
^
Main.java:5: error: ';' expected
5.        Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: not a statement
6.        
^
Main.java:6: error: ';' expected
6.        
  ^
Main.java:8: error: not a statement
8.        int white = sc.nextInt();
^
Main.java:8: error: ';' expected
8.        int white = sc.nextInt();
  ^
Main.java:9: error: not a statement
9.        
^
Main.java:9: error: ';' expected
9.        
  ^
Main.java:11: error: not a statement
11.        
^
Main.java:11: error: ';' expected
11.        
   ^
Main.java:13: error: illegal start of type
13. 
^
13 errors
Language: Java

import java.util.*;

public class Main{
    public static void main(String... arg){
        Scanner sc = new Scanner(System.in);
        
        int square = sc.nextInt()
        int white = sc.nextInt();
        
        System.out.println((square * square) - white);
        
    }

}

Compiler output:
Main.java:7: error: ';' expected
        int square = sc.nextInt()
                                 ^
1 error
Language: C++

int main() {
	// your code goes here
	int N;
	scanf("%d\n",&N);
	
	int A;
	scanf("%d\n",&A);
	
	int total=N*N;
	int rem=total-A;
	printf("%d",rem);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d\n",&N);
      |         ^~~~~
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |         printf("%d",rem);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int N;
	cin >> N;
	int A;
	cin >> A;
	double z
	z << pow(N,2)
	cout << z-A << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected initializer before 'z'
   10 |         z << pow(N,2)
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int N;
	cin >> N;
	int A;
	cin >> A;
	cout << pow(N,A)-2 << endl;
	return 0;
}

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

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

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

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

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

#include<iostream>
using namespace std;
int main()
{
	int N;
	cin >> N;
	int A;
	cin >> A;
	cout << (N**2)-A;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: invalid type argument of unary '*' (have 'int')
    9 |         cout << (N**2)-A;
      |                    ^~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Here your code !
　int n,a;
　cin>>n>>a;
　cout<<n*n-a<<endl;
　return 0;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int n,a;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　cin>>n>>a;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　cout<<n*n-a<<endl;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000int' was not declared in this scope
    5 | 　int n,a;
      | ^~~~~
a.cc:6:1: error: '\U00003000cin' was not declared in this scope
    6 | 　cin>>n>>a;
      | ^~~~~
a.cc:6:8: error: 'n' was not declared in this scope
    6 | 　cin>>n>>a;
      |        ^
a.cc:6:11: error: 'a' was not declared in this scope
    6 | 　cin>>n>>a;
      |           ^
a.cc:7:1: error: '\U00003000cout' was not declared in this scope
    7 | 　cout<<n*n-a<<endl;
      | ^~~~~~
a.cc:8:1: error: '\U00003000return' was not declared in this scope
    8 | 　return 0;
      | ^~~~~~~~
Language: C++

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


Compiler output:
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | 　int n,a;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　cin>>n>>a;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　cout<<n*n-a<<endl;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U00003000int' was not declared in this scope
    4 | 　int n,a;
      | ^~~~~
a.cc:5:1: error: '\U00003000cin' was not declared in this scope
    5 | 　cin>>n>>a;
      | ^~~~~
a.cc:5:8: error: 'n' was not declared in this scope
    5 | 　cin>>n>>a;
      |        ^
a.cc:5:11: error: 'a' was not declared in this scope
    5 | 　cin>>n>>a;
      |           ^
a.cc:6:1: error: '\U00003000cout' was not declared in this scope
    6 | 　cout<<n*n-a<<endl;
      | ^~~~~~
a.cc:7:1: error: '\U00003000return' was not declared in this scope
    7 | 　return 0;
      | ^~~~~~~~
Language: Java

import java.util.*;
public class Test {
    public static void main(String[] args){
        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int A = sc.nextInt();

        // 出力
        System.out.println(N*N-A);
    }
}


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

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(n,a){
      |     ^~~~
a.cc:3:10: error: 'n' was not declared in this scope
    3 | int main(n,a){
      |          ^
a.cc:3:12: error: 'a' was not declared in this scope
    3 | int main(n,a){
      |            ^
a.cc:3:13: error: expression list treated as compound expression in initializer [-fpermissive]
    3 | int main(n,a){
      |             ^
Language: C

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


int main() {

	int a;
	int b;


	scanf("%d", &a);
	scanf("%d", &b);

	printf("%d", (a*a) - b);
}

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

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

int main() {

	int a,b;
	scanf_s("%d", &a);
	scanf_s("%d", &b);

	printf("%d", (a*a) - b);

	_getch();
}



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", &a);
      |         ^~~~~~~
      |         scanf
main.c:12:9: error: implicit declaration of function '_getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   12 |         _getch();
      |         ^~~~~~
      |         getc
Language: Java

import java.io.IOException;

/**
 * Created by nikitos on 19.09.17.
 */
public class Main.extension {

    public static void main(String[] args) throws IOException {
        java.io.BufferedReader buf = new java.io.BufferedReader( new java.io.InputStreamReader(System.in));
        int n = Integer.parseInt(buf.readLine());
        int a = Integer.parseInt(buf.readLine());
        System.out.println(n*n-a);
    }

}

Compiler output:
Main.java:6: error: '{' expected
public class Main.extension {
                 ^
1 error
Language: Java

import java.io.IOException;

/**
 * Created by nikitos on 19.09.17.
 */
public class A {

    public static void main(String[] args) throws IOException {
        java.io.BufferedReader buf = new java.io.BufferedReader( new java.io.InputStreamReader(System.in));
        int n = Integer.parseInt(buf.readLine());
        int a = Integer.parseInt(buf.readLine());
        System.out.println(n*n-a);
    }

}

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

#include<iostream>
using namespace std;
int main(){
int n,a;
cin>>n,a;
cout<<n^2-a;
return 0;
}

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

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

public class BichromeCells {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String y = br.readLine();
		int a = Integer.parseInt(x);
		int b = Integer.parseInt(y);

		System.out.println(a * a - b);
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main {
 
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String y = br.readLine();
		int a = Integer.parseInt(x);
		int b = Integer.parseInt(y);
 
		System.out.println(a * a - b);

Compiler output:
Main.java:13: error: reached end of file while parsing
		System.out.println(a * a - b);
		                              ^
1 error
Language: Java

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

public class A{

	public static void main(String[]arg) throws IOException{
		new A().read();
	}

	public void read() throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N,A;
		N = Integer.parseInt(in.readLine());
		A = Integer.parseInt(in.readLine());
		System.out.println(N*N - A);
	}
}

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

#include<iostream>
using namespace std;
typedef long long ll;
int main() {
	lla, b; cin >> a >> b; cout << a*a - b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'lla' was not declared in this scope; did you mean 'll'?
    5 |         lla, b; cin >> a >> b; cout << a*a - b << endl;
      |         ^~~
      |         ll
a.cc:5:14: error: 'b' was not declared in this scope
    5 |         lla, b; cin >> a >> b; cout << a*a - b << endl;
      |              ^
a.cc:5:24: error: 'a' was not declared in this scope
    5 |         lla, b; cin >> a >> b; cout << a*a - b << endl;
      |                        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	cin>>N;
	cin>>A;
	cout<<N*N-A<<"\n";
}

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

<?php
	$n = fgets(STDIN);
	$a = fgets(STDIN);
	
	echo (($n * $n ) - $a);
?>

Compiler output:
main.c:1:1: error: expected identifier or '(' before '<' token
    1 | <?php
      | ^
main.c:3:9: warning: data definition has no type or storage class
    3 |         $a = fgets(STDIN);
      |         ^~
main.c:3:9: error: type defaults to 'int' in declaration of '$a' [-Wimplicit-int]
main.c:3:14: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
    3 |         $a = fgets(STDIN);
      |              ^~~~~
main.c:3:20: error: 'STDIN' undeclared here (not in a function)
    3 |         $a = fgets(STDIN);
      |                    ^~~~~
main.c:5:15: error: expected declaration specifiers or '...' before '(' token
    5 |         echo (($n * $n ) - $a);
      |               ^
main.c:6:1: error: expected identifier or '(' before '?' token
    6 | ?>
      | ^
Language: Java

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

class Main {
	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int N = Integer.parseInt(str);
			str = br.readLine();
			int A = Integer.parseInt(str);
 
			System.out.println(N*N-A);
		}catch (Exception e) {
			System.exit(0);
		}
	
	}
 

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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;

#define REP(i,n) for (int i=0;i<(n);i++)
#define PII pair<int,int>
#define LL long long

int main(){
  LL n, a;
  cin >> n >> a;
  
  cout << pow(n,2) - a << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'pow' was not declared in this scope
   15 |   cout << pow(n,2) - a << endl;
      |           ^~~
Language: C++

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

int main()
{
    int n,a;
    cin>>n>>a;
    cout<<(n*n)-a;
}


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

import java.util.Scanner;

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

			System.out.printf("%d\n", n*n-a);
		} catch (Exception ex) {
			throw new RuntimeException(ex);
		}
	}
}	


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {

		public static void main(String[] args){
			 int sum ;
			
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int N = sc.nextInt();
			int K = sc.nextInt();

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		    String str;
			str = br.readLine();
		    StringTokenizer st = new StringTokenizer(str, " ");
		    int count = st.countTokens();
		    int goukei = 0;
			for (int i = 0; i < count;i ++ ){
			    int X = Integer.parseInt(st.nextToken());
			    int ans1 = Math.abs(X - 0);
			    int ans2 = Math.abs(X - K);
			    if (ans1 > ans2){
			    	goukei = goukei + ans2 * 2;
			    }else{
			    	goukei = goukei + ans1 * 2;
			    }
			    	
		    }

			// 出力
			System.out.println(goukei);
		}
}


Compiler output:
Main.java:22: error: unreported exception IOException; must be caught or declared to be thrown
			str = br.readLine();
			                 ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {

		public static void main(String[] args){
			 int sum ;
			
			Scanner sc = new Scanner(System.in);
			// 整数の入力
			// スペース区切りの整数の入力
			int N = sc.nextInt();
			int K = sc.nextInt();

			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		    String str;
				str = br.readLine();
		    StringTokenizer st = new StringTokenizer(str, " ");
		    int count = st.countTokens();
		    int goukei = 0;
			for (int i = 0; i < count;i ++ ){
			    int X = Integer.parseInt(st.nextToken());
			    int ans1 = Math.abs(X - 0);
			    int ans2 = Math.abs(X - K);
			    if (ans1 > ans2){
			    	goukei = goukei + ans2 * 2;
			    }else{
			    	goukei = goukei + ans1 * 2;
			    }
			    	
		    }

			// 出力
			System.out.println(goukei);
		}
}


Compiler output:
Main.java:22: error: unreported exception IOException; must be caught or declared to be thrown
				str = br.readLine();
				                 ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
cout << a ^ 2 - b << endl;
}

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

#include<iostream>
using namespace std;
int main()
{
	int x, y;
	if (x>=t)
		cout<<x-t<<endl;
	else
		cout<<"0"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 't' was not declared in this scope
    6 |         if (x>=t)
      |                ^
Language: C++

#include<iostream>

int a,  n;
int main(){
cin>>n>>a;
cout<<(n^2)-a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>n>>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:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<(n^2)-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:6:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout<<(n^2)-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>
#include <math.h>

int main()
{
	int A = 0;		//白い色のマス
	int N = 0;		//マスの大きさ
	int B = 0;		//黒色のマス
	


		printf("枡の大きさを入力してください\n");
		scanf_s("%d", &N);

		if (N >0 || N <= 100){

			printf("白色を塗る升目を%f", pow(N, 2.0));
			printf( "マスまで入力してください。\n");
			scanf_s("%d", &A);

		}else{
			printf("整数を入力してください。\n");
		}

		B = (int)pow(N, 2.0) - A;

		printf("%d", B);

		return 0;
}


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

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

int main()
{
	int A = 0;		//白い色のマス
	int N = 0;		//マスの大きさ
	int B = 0;		//黒色のマス
	


		printf("枡の大きさを入力してください\n");
		scanf_s("%d", &N);

		if (N >0 || N <= 100){

			printf("白色を塗る升目を%f", pow(N, 2.0));
			printf( "マスまで入力してください。\n");
			scanf_s("%d", &A);

		}else{
			printf("整数を入力してください。\n");
		}

		B = (int)pow(N, 2.0) - A;

		printf("%d", B);

		return 0;
}


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

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

int main()
{
	int A = 0;		//白い色のマス
	int N = 0;		//マスの大きさ
	int B = 0;		//黒色のマス
	


		printf("枡の大きさを入力してください\n");
		scanf_s("%d", &N);

		if (N >0 || N <= 100){

			printf("白色を塗る升目を%f", pow(N, 2.0));
			printf( "マスまで入力してください。\n");
			scanf_s("%d", &A);

		}else{
			printf("整数を入力してください。\n");
		}

		B = (int)pow(N, 2.0) - A;

		printf("%d", B);

		return 0;
}

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

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

int main()
{
	int A = 0;		//白い色のマス
	int N = 0;		//マスの大きさ
	int B = 0;		//黒色のマス
	


		printf("枡の大きさを入力してください\n");
		scanf_s("%d", &N);

		if (N >0 || N <= 100){

			printf("白色を塗る升目を%f", pow(N, 2.0));
			printf( "マスまで入力してください。\n");
			scanf_s("%d", &A);

		}else{
			printf("整数を入力してください。\n");
		}

		B = (int)pow(N, 2.0) - A;

		printf("%d", B);

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

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

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

#include <bits/stdc++.h>

using namesace std;

int main()
{
long long n, k;
cin>>n>>k;
cout<<n*n-k;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesace'
    3 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>n>>k;
      | ^~~
      | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<n*n-k;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d%d",&n,&m);
      |     ^~~~~
Language: C++

#include<iostream.h>
#include<conio.h>
void main()
{
 int a, n;
 cin>>a>>n;
 If(n>=1&&n<=1000&&a>=0&&a<=n*n)
 {
   cout<<(n*n)-a;
}
} 

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

#include <iostream>
#include <string>

using namespace std;

int main(void){
  int N;
  string ans;
  cin >> N;
  cin >> A;
  ans = N*N-A;
  cout << ans << "\n";
  return 0;
}


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

#include <stdio.h>
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<string>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<map>
#include<sstream>
#include <set>

int ProjectA();

int main()
{

	ProjectA();
	return 0;
}

int ProjectA() 
{
	int i, j, k, m, n, a, b, c, tc, o, ans, q, x, y;
	
	scanf("%d", &n);
	scanf("%d", &a);

	pf("%d", (n*n - a));

}

Compiler output:
a.cc: In function 'int ProjectA()':
a.cc:32:9: error: 'pf' was not declared in this scope
   32 |         pf("%d", (n*n - a));
      |         ^~
a.cc:34:1: warning: no return statement in function returning non-void [-Wreturn-type]
   34 | }
      | ^
Language: C++

#include<cstdio>
2.int main(){
3.   int n,a;
4.   scanf("%d",&n);
5.   scanf("%d",&a);
6.   int t;
7.   t=n^2-a;
8.   printf("%d\n",t);
9.   return 0;
10.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.int main(){
      | ^~~~~
Language: C++

#include<cstdio>
int main(){
   int n,a;
   scanf("%d",&n);
   scanf("%d",&a);
   int t;
   t=n^2-a;
   printf("%d\n,t);
   return 0;
}

Compiler output:
a.cc:8:11: warning: missing terminating " character
    8 |    printf("%d\n,t);
      |           ^
a.cc:8:11: error: missing terminating " character
    8 |    printf("%d\n,t);
      |           ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:4: error: expected primary-expression before 'return'
    9 |    return 0;
      |    ^~~~~~
Language: C++

#include <stdio.h>
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<string>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<map>
#include<sstream>
#include <set>
int ProjectA();

int main()
{

	ProjectA();
	return 0;
}

int ProjectA() 
{
	int i, j, k, m, n, a, b, c, tc, o, ans, q, x, y;
	
	si1(n);
	si1(a);

	pf("%d", (n*n - a));

}

Compiler output:
a.cc: In function 'int ProjectA()':
a.cc:28:9: error: 'si1' was not declared in this scope; did you mean 'sin'?
   28 |         si1(n);
      |         ^~~
      |         sin
a.cc:31:9: error: 'pf' was not declared in this scope
   31 |         pf("%d", (n*n - a));
      |         ^~
a.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
   33 | }
      | ^
Language: Java

# -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
b = int(raw_input())
# 文字列の入力
# 出力
print str(a^a - b)

Compiler output:
Main.java:1: error: illegal character: '#'
# -*- coding: utf-8 -*-
^
Main.java:1: error: class, interface, enum, or record expected
# -*- coding: utf-8 -*-
   ^
Main.java:2: error: illegal character: '#'
# ?????
^
Main.java:4: error: illegal character: '#'
# ?????????????
^
Main.java:6: error: illegal character: '#'
# ??????
^
Main.java:7: error: illegal character: '#'
# ??
^
6 errors
Language: C

#inculde<stdio.h>
int main (){
  int n,a,total,black;
  scanf("%d",&n);
  scanf("%d",&a);
  total=n*n;
  black=total-a;
  printf("%d",black);
  return 0;
}

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

int main(void)
{
 int N,A;

 cin>>N;
 N=N*N;
 N=N-A;

 cout<<N<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin>>N;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |  cout<<N<<endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |  cout<<N<<endl;
      |           ^~~~
      |           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int f(int , int);
int main()
{
    int n,a;
    cin >> n >> a;
    cout << f(n,a) << endl;
    return 0;
}
int f(int n, int a)
{
    int x = n*n - a;
    if(x<=0)
    {
        return 0;
    }
    else
    {
        return x;
    }
}

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 >> n >> 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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << f(n,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:7:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << f(n,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() {
int N,A,k;
scanf("%d",N);
scanf("%d",A);
k=N*N-A
printf("%d\n",k);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected ';' before 'printf'
    6 | k=N*N-A
      |        ^
      |        ;
    7 | printf("%d\n",k);
      | ~~~~~~
Language: C++

#include<stdio.h>
int main() {
int N,A,k;
scanf("%d",N);
scanf("%d",A);
k=N*N-A
printf("%d\n",k);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected ';' before 'printf'
    6 | k=N*N-A
      |        ^
      |        ;
    7 | printf("%d\n",k);
      | ~~~~~~
Language: C++

/*
 * 1.cpp
 */

//include files
#include <bits/stdc++.h>

using namespace std;

//DEFINE MACROS
#define MIN(a,b) (a>b?b:a)
#define MAX(a,b) (a>b?a:b)
#define PRINTLN(s) cout << s << endl

//DEFINE CONSTANT

//DEFINE PROTOTYPE

int main(){
  int a,b
  cin >> a;
  cin >> b;

  cout << a*a -b   << "\n";
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: expected initializer before 'cin'
   21 |   cin >> a;
      |   ^~~
a.cc:22:10: error: 'b' was not declared in this scope
   22 |   cin >> b;
      |          ^
Language: C++

#include<iostream>
#include<ctsdio>
using namespace std;
int main()
{
	int N;
	while(~scanf("%d",&N))
	printf("%d\n",N*N-N);
}

Compiler output:
a.cc:2:9: fatal error: ctsdio: No such file or directory
    2 | #include<ctsdio>
      |         ^~~~~~~~
compilation terminated.
Language: C++

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

int main() {
	int n, a;

	cin >> n >> a;

	cout << n*n - a << endl;


	
	return 0;
}

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

#region Using directives
using System;
using static System.Console;
using static System.Convert;
using System.Collections.Generic;
#endregion

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = ToInt32(ReadLine());
            int a = ToInt32(ReadLine());
            WriteLine(n * n - a);
        }
    }
}



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #region
    1 | #region Using directives
      |  ^~~~~~
a.cc:6:2: error: invalid preprocessing directive #endregion
    6 | #endregion
      |  ^~~~~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'static'
    3 | using static System.Console;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'static'
    4 | using static System.Convert;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:14:29: error: 'ReadLine' was not declared in this scope
   14 |             int n = ToInt32(ReadLine());
      |                             ^~~~~~~~
a.cc:14:21: error: 'ToInt32' was not declared in this scope
   14 |             int n = ToInt32(ReadLine());
      |                     ^~~~~~~
a.cc:16:13: error: 'WriteLine' was not declared in this scope
   16 |             WriteLine(n * n - a);
      |             ^~~~~~~~~
Language: C++

#region Using directives
using System;
using static System.Console;
using static System.Convert;
using System.Collections.Generic;
#endregion

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = ToInt32(ReadLine());
            int a = ToInt32(ReadLine());
            WriteLine(n * n - a);
            ReadKey();
        }
    }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #region
    1 | #region Using directives
      |  ^~~~~~
a.cc:6:2: error: invalid preprocessing directive #endregion
    6 | #endregion
      |  ^~~~~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'static'
    3 | using static System.Console;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'static'
    4 | using static System.Convert;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:19:6: error: expected ';' after class definition
   19 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:14:29: error: 'ReadLine' was not declared in this scope
   14 |             int n = ToInt32(ReadLine());
      |                             ^~~~~~~~
a.cc:14:21: error: 'ToInt32' was not declared in this scope
   14 |             int n = ToInt32(ReadLine());
      |                     ^~~~~~~
a.cc:16:13: error: 'WriteLine' was not declared in this scope
   16 |             WriteLine(n * n - a);
      |             ^~~~~~~~~
a.cc:17:13: error: 'ReadKey' was not declared in this scope
   17 |             ReadKey();
      |             ^~~~~~~
Language: C

#define _CRT_SECURE_NO_WARNINGS

//#define DEBUG
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>

void warshall_floyd(int(*cost)[201], int n) {
	int i, j, k;
	for (i = 1; i<=n; i++) {
		for (j = 1; j<=n; j++) {
			for (k = 1; k<=n; k++) {
				cost[j][k] = min(cost[j][k], cost[j][i] + cost[i][k]);
			}
		}
	}
}

int main(){
#ifdef DEBUG
	
#endif
	int N, A;
	scanf("%d %d", &N, &A);

	printf("%d\n", N*N - A);
}

Compiler output:
main.c: In function 'warshall_floyd':
main.c:14:46: error: implicit declaration of function 'min'; did you mean 'fmin'? [-Wimplicit-function-declaration]
   14 |                                 cost[j][k] = min(cost[j][k], cost[j][i] + cost[i][k]);
      |                                              ^~~
      |                                              fmin
Language: C

#define _CRT_SECURE_NO_WARNINGS

#define DEBUG
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>

void warshall_floyd(int(*cost)[201], int n) {
	int i, j, k;
	for (i = 1; i<=n; i++) {
		for (j = 1; j<=n; j++) {
			for (k = 1; k<=n; k++) {
				cost[j][k] = min(cost[j][k], cost[j][i] + cost[i][k]);
			}
		}
	}
}

int main(){
#ifdef DEBUG
	
#endif
	int N, A;
	scanf("%d %d", &N, &A);

	printf("%d\n", N*N - A);
}

Compiler output:
main.c: In function 'warshall_floyd':
main.c:14:46: error: implicit declaration of function 'min'; did you mean 'fmin'? [-Wimplicit-function-declaration]
   14 |                                 cost[j][k] = min(cost[j][k], cost[j][i] + cost[i][k]);
      |                                              ^~~
      |                                              fmin