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

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


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

int main() {
  int N, A;
  cin >> N >> A;
  cout << N*N-A << endl;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <ios> 
#include <iomanip>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)
#define INF 1e7

typedef long long ll;
typedef long long int lli;

int main() {
	int N ,A cin >> N >> A;
	cout << N * N - A << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected initializer before 'cin'
   24 |         int N ,A cin >> N >> A;
      |                  ^~~
a.cc:25:25: error: 'A' was not declared in this scope
   25 |         cout << N * N - A << endl;
      |                         ^
Language: C++

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

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

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

#include <bits/stdc++.h>
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:7:13: error: invalid type argument of unary '*' (have 'int')
    7 |   cout << a**2 - b << endl;
      |             ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected '}' at end of input
    7 |   cout<< N * N - A << endl;
      |                            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  int N, A;
  cin >> N >>A;
  cout << N ** 2 - A << endl;
}


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

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

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

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

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

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

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

int main(){
  int N , A;
  cin >> N >> A;
  cout << N * N - A << 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;

int main(){
  int N,A;
  cin >> N >> A;
  cout << N*N-A << 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;

int main(){
  int N,A;
  cin >> N >> A;
  cout >> N*N-A;
}

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;

int main(){
  cin >> N >> A;
  cout >> N*N-A;
}

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;
 
int main() {
  int N;
  cin >> N;
  
  int A;
  cin >> A;
  
  cout << N^2 - A << endl;
  
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'N' was not declared in this scope
    4 |    cout<< N*N-A<<endl;
      |           ^
a.cc:4:15: error: 'A' was not declared in this scope
    4 |    cout<< N*N-A<<endl;
      |               ^
Language: C++

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

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

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

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

int main(){
  int N,A;
  cin>>N>>A;
  cout<<N**2-A<<endl;
}

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

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

int main() {
  // ここに追記
  int N,A;
  cin>>N>>A;
  cout<<N^2-A<<endl;
}


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

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

int main() {
  // ここに追記
  int N,A;
  cin>>N;
  cout<<N^2-A<<endl;
}


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

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

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


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

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

int main() {
  int N;
  int A;
  
  cin >> N >> A;
  cout << N * N - A << 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<iostream>
#include<string>
using namespace std;
int main(){
    int N,A;
    cin>>N>>A
    cout<<N*N-A<<endl;
   }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'cout'
    6 |     cin>>N>>A
      |              ^
      |              ;
    7 |     cout<<N*N-A<<endl;
      |     ~~~~
Language: C++

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

int main() {
  int N, A ;
  cin >> N >> A ;
  cout << N**2-A << endl;
}

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

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

int main() {
  int N, A ;
  cin >> N, A ;
  cout << N**2-A << endl;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

    return 0;
}

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

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

int main() {
  int A,N;
  cin >> A,N
  cout << N * N - A << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before 'cout'
    6 |   cin >> A,N
      |             ^
      |             ;
    7 |   cout << N * N - A << endl;
      |   ~~~~
Language: C++

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

int main() {
  // ここにプログラムを追記
  int N,A;
  cin>>N>>A;
  cout<<N**2-A <<endl;
}


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

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

int main() {
  int N,A;
  cin >> N >> A;
  cout << N * N - A << endl;
}

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

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

int main() {
  
  int N, A;
  
  cin >> N >> A;
  
  cout << N*N-A endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'endl'
   10 |   cout << N*N-A endl;
      |                ^~~~~
      |                ;
Language: C++

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

int main() {
  
  int N, A;
  
  cin >> N >> A;
  
  cout << G*G-R endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'G' was not declared in this scope
   10 |   cout << G*G-R endl;
      |           ^
a.cc:10:15: error: 'R' was not declared in this scope
   10 |   cout << G*G-R endl;
      |               ^
Language: C++

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

int main() {
  int N, A;
  cin >> N;
  cin >> A;
  cout << N*N - A
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '}' token
    8 |   cout << N*N - A
      |                  ^
      |                  ;
    9 | }
      | ~
Language: C++

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

int main() {
  int A,N;
  cin >> A >> N;
  
  cout << N * N - A <<endl;
}


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

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

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


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

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

int main() {
  int;a,b;
  
  cin>>a>>b;
  
  cout<<a*a-b<<endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: declaration does not declare anything [-fpermissive]
    5 |   int;a,b;
      |   ^~~
a.cc:5:7: error: 'a' was not declared in this scope
    5 |   int;a,b;
      |       ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 |   int;a,b;
      |         ^
Language: C++

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

int main() {
  int;a,b
  cin>>a>>b;
  
  cout<<a*a-b<<endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: declaration does not declare anything [-fpermissive]
    5 |   int;a,b
      |   ^~~
a.cc:5:7: error: 'a' was not declared in this scope
    5 |   int;a,b
      |       ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 |   int;a,b
      |         ^
Language: C++

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

int main() {
  int N, A:
  cin >> N >> A;
    cout << N * N - A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: found ':' in nested-name-specifier, expected '::'
    5 |   int N, A:
      |           ^
      |           ::
a.cc:5:10: error: 'A' has not been declared
    5 |   int N, A:
      |          ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> N >> A;
      |       ^~
a.cc:7:21: error: 'A' was not declared in this scope
    7 |     cout << N * N - A << endl;
      |                     ^
Language: C++

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

int main() {
  
  int A,N;
  cin >> A >> N;
  
  int a = N ** 2 - A;
  cout << a;

}

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

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


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

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

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

#include <bits/stdc++.h>
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:9:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << a^2 - b << endl;
      |             ~~~~~~^~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected unqualified-id before '>>' token
    5 |   int>>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:11: error: invalid type argument of unary '*' (have 'int')
    7 |   cout<<N**2-A<<endl;
      |           ^~
Language: C++

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

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


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

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

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


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

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


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

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

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

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,A;
  cin >> N >> A;
  int x == N*N - A;
  cout << x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '==' token
    6 |   int x == N*N - A;
      |         ^~
a.cc:7:11: error: 'x' was not declared in this scope
    7 |   cout << x << endl;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: 'a' was not declared in this scope
    6 |         cout << N * N - a << endl;
      |                         ^
Language: C++

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

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

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

#include<stdio.h>
#include<string.h>
int main(void){
    int A,B,C,D,E,x,y,cou=0,v[3];
    char S[3],s[3],X,Y;
    scanf("%d %d",&A,&B);
    printf("%d",A*A-B)
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ';' before 'return'
    7 |     printf("%d",A*A-B)
      |                       ^
      |                       ;
    8 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int A,B,ans,S;
  cin >> A >> B;
  S = pow(A,2);
  ans = S - B;
  cout << ans << endl;
}

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

#include <iostream>
using namespace std;
int main(){
  int A,B,ans,S;
  cin >> A >> B;
  S = pow(A,2)
  ans = S - B;
  cout << ans << endl;
}

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

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

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

#include <bits/stdc++.h>
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:7:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << a^2-b << endl;
      |             ~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){ 
int a,b,c;
  
  cin>>a>>b;
 c=a*a-b;A
  cout<<c<<endl;
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
    7 |  c=a*a-b;A
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'M' was not declared in this scope
    6 |   cout << N*M-A <<endl;
      |             ^
Language: C++

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

int main () {
  int N,A;
  cin >> N >> A;
  cout << N*N-A << endl;
}

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

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

int main() {
  int N,A;
  
  cin >> N;
  
  cin >> A;
  
  cout << N**2-A << endl;
    
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main(void) {
  int n, a, black;
  cin >> n >> a;
  
  if(n <= 100 && n >= 1)
  {
    if(a >= 0 && a <= n*n)
    {
      black = n*n-2a;
    }
  }
  
  cout << black << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: unable to find numeric literal operator 'operator""a'
   12 |       black = n*n-2a;
      |                   ^~
Language: C++

#include <bits/stdc++.h>
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:8:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << a^2 - b << endl;
      |             ~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
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:8:14: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << a ** 2 - b << endl;
      |              ^~~
Language: C++

import heapq
from collections import deque
from enum import Enum
import sys
import math
from _heapq import heappush, heappop

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


N = int(input())
A = int(input())

print("%d"%(N*N-A))


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import heapq
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

 
int main(){
    int N;
    int A;
    int a[100100];
  
    cin >> N >> A;
    for (int i = 0; i < N; ++i) cin >> a[i];
    


    cout << N^2 - A << endl;
   
}
 


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N,A,I;
  cin >> N >> A;
  I=N*N-A
  cout << I << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before 'cout'
    6 |   I=N*N-A
      |          ^
      |          ;
    7 |   cout << I << endl;
      |   ~~~~
Language: C++

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

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

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

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


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

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

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

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

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


int main()
{
	int t, x;
	cin >> x >> t;
	cout << pow(x,2) - t << endl;
}

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

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

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

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

int main() {
  int N, A;

  cin >> N >> A;

  cout << N ** 2 - A << endl;
}


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

#include <stdio.h>

int main(void)
{

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'a' was not declared in this scope
    8 |   printf("%d\n",n*n-a);
      |                     ^
Language: C++

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

int main() {
  
  int N, A;
  cin >> N >> A;
  cont << N*N-A <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |   cont << N*N-A <<endl;
      |   ^~~~
      |   const
Language: C++

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

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

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

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

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

#include<iostream>
using namespace std;

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

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

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


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

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

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

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

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

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

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

int main() {
	int A,N;
	cin >> A >> N;
  	cout << N*2 = A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout << N*2 = A << endl;
      |                       ~~^~~~~~~
Language: C++

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

int main(){
  double a, b;
  cin >> a >> b;
  cout << a**2 - b << endl;
}

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

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

int main(){
  double a, b;
  cin >> a >> b;
  cout << a**2 - b << endl;
}

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

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

int main() {
  int N, A;
  cin >> N >> A;
  cout << N * N - A << endl;
}

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

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

int main (){
  int N, A;
  cin >> N >> A;
  cout << N**N - A << endl;
}

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

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

int main (){
  int N, A;
  cin >> N >> A;
  cout << N**2 - A << endl;
}

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

#include <cstdio>
#include <algorithm>

using namespace std;

const int man_n = 100;

int n,k;
int x[max_n];

int main(){
    scanf("%d", &n);
    scanf("%d", &k);
    for(int i=0;i<n;i++) scanf("%d", x + i);
     int ans=0;
     for(int i=0;i<n;i++){
         int tmp = min(x[i], k-x[i]);
         ans += tmp;
     }
     printf("%d \n", ans*2);
     return 0;
}

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

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nmaespace'
    2 | using nmaespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N >> 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << 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:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << 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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 |     int a,b,;
      |             ^
Language: C++

int main() {
  int N, A;
  cin >> N >> A;
  cout << N*N - A;
}

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

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

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

#include<cstdio>
using namespace std;
int main(){
  int n,a;
  scanf("%d %d",&n,&a);
  printf("%d\n".n*n-a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: request for member 'n' in '"%d\012"', which is of non-class type 'const char [4]'
    6 |   printf("%d\n".n*n-a);
      |                 ^
Language: C++


#include <stdio.h>

int main()
{
 long int x,y,z,sum,i,k;
 
 scanf("%ld%ld",&x,&y);
printf("%ld",abs((x*x)-y));
 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'abs' was not declared in this scope
    9 | printf("%ld",abs((x*x)-y));
      |              ^~~
Language: C++

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

int main() {
  int N, A,;
  cin >> N >> A;
  cout << N * N - A << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected unqualified-id before ';' token
    5 |   int N, A,;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n,a,x;
  cin >> n >> a;
  x = m^2-a;
  cout << x << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'm' was not declared in this scope
    7 |   x = m^2-a;
      |       ^
Language: C++

#include<bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define int long long
using namespace std;
signed main(){
	int a,n;
	cin >> a >> n;
	int ans = a * a-b;
	cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'b' was not declared in this scope
    9 |         int ans = a * a-b;
      |                         ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'n' was not declared in this scope
    6 |   cin >> a >> n;
      |               ^
a.cc:7:14: error: invalid type argument of unary '*' (have 'int')
    7 |   cout << (a**a)-b << endl;
      |              ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'n' was not declared in this scope
    6 |   cin >> a >> n;
      |               ^
a.cc:7:14: error: invalid type argument of unary '*' (have 'int')
    7 |   cout << (a**2)-b << endl;
      |              ^~
Language: C++

#include <bits/stdc.h>
using namespace std;
int main(){
  int n,a;
  cin >> n >> a;
  cont << n*n-a<< 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;

int main() {
  // ここにプログラムを追記
  int N,A;
  cin >> N >> A;
  cout << N^2 - A <<endl;
}




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

#include <bits/stdc++.h>

using namespace std;
int main(){
  int numb1 , numb2;
  cin >> numb1 >> nubm2;
  cout << numb1 * numb1 - numb2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'nubm2' was not declared in this scope; did you mean 'numb2'?
    6 |   cin >> numb1 >> nubm2;
      |                   ^~~~~
      |                   numb2
Language: C++

#include <bits/stdc++.h>
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:7:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << a^2 - b << endl;
      |             ~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
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:7:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << a^2 - b <<endl;
      |             ~~~~~~^~~~~~
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:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << a ^ 2 - b << endl;
      |               ~~~~~~^~~~~~~
Language: C++

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

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

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

int main() {
  // ここにプログラムを追記
int N,A;
  cin>>N>>A;
  cout<<N^2-A<< endl;
}

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

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

int main() {

  int N, A;
  cin >> N >> A;
  cout << N * N + A - N * N endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before 'endl'
    8 |   cout << N * N + A - N * N endl;
      |                            ^~~~~
      |                            ;
Language: C++

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

int main() }

  int N, A;
  cin >> N >> A;
  cout << N * N + A - N * N endl;
}

Compiler output:
a.cc:4:12: error: expected initializer before '}' token
    4 | int main() }
      |            ^
a.cc:4:12: error: expected declaration before '}' token
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N >> A;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << N * N + A - N * N endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

int main() }

  int N, A;
  cin >> N >> A;
  cout >> N * N + A - N * N endl;
}

Compiler output:
a.cc:4:12: error: expected initializer before '}' token
    4 | int main() }
      |            ^
a.cc:4:12: error: expected declaration before '}' token
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N >> A;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout >> N * N + A - N * N endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n, a;
	cin >> n >> a;
	cous << n*n - a << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cous' was not declared in this scope; did you mean 'cos'?
    6 |         cous << n*n - a << endl;
      |         ^~~~
      |         cos
Language: C++

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

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


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

#include<iostream>
using manespace std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n >> 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << n*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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << n*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++

import std.stdio,std.ascii,std.conv,std.string,std.algorithm,std.range,std.functional,std.math,core.bitop;

void main()
{
    auto a=readln.chomp.to!int;
    auto b=readln.chomp.to!int;

    writeln((a*a)-b);
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio,std.ascii,std.conv,std.string,std.algorithm,std.range,std.functional,std.math,core.bitop;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'readln' was not declared in this scope
    5 |     auto a=readln.chomp.to!int;
      |            ^~~~~~
a.cc:8:5: error: 'writeln' was not declared in this scope
    8 |     writeln((a*a)-b);
      |     ^~~~~~~
Language: C++

import std.stdio;
import std.string;
import std.array; // split
import std.conv; // to

void main()
{
   string s1 = chomp(readln());
   string s2 = chomp(readln());
   int a = to!int(s1); // 第0要素を整数に変換
   int b = to!int(s2); // 第1要素を整数に変換
   a *= a;
   writeln(a-b); // 表示
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.array; // split
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.conv; // to
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: '::main' must return 'int'
    6 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:4: error: 'string' was not declared in this scope
    8 |    string s1 = chomp(readln());
      |    ^~~~~~
a.cc:9:10: error: expected ';' before 's2'
    9 |    string s2 = chomp(readln());
      |          ^~~
      |          ;
a.cc:10:12: error: 'to' was not declared in this scope
   10 |    int a = to!int(s1); // 第0要素を整数に変換
      |            ^~
a.cc:13:4: error: 'writeln' was not declared in this scope
   13 |    writeln(a-b); // 表示
      |    ^~~~~~~
Language: C++

#include <iostream>

int main() {
  int N, A;
  std::cin >> N >> A;

  int gird = N * N;
  int black = grid - A;
  std::cout << black << std::endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'grid' was not declared in this scope; did you mean 'gird'?
    8 |   int black = grid - A;
      |               ^~~~
      |               gird
Language: C++

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

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

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

#include　<cstdio>

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

Compiler output:
a.cc:1:2: error: extended character 　 is not valid in an identifier
    1 | #include　<cstdio>
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003000
    1 | #include　<cstdio>
      |  ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%d%d", &N, &A);
      |   ^~~~~
a.cc:6:3: error: 'printf' was not declared in this scope
    6 |   printf("%d\n", N * N - A);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include　<cstdio>