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

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

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





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

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

int main(){
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;

  double max = 0;
  int sugar = 0;
  int water = 0;

  for(int i = 0; i*100*a < f; ++i){
    for(int j = 0; j*100*b < f; ++j){
      for(int k = 0; k*c* < f; ++k){
        for( int l = 0; l*d < f; ++l ){
          if( i == 0 && j == 0 ) continue;
          if(100*a*i + 100*b*j + c*k + d*l > f) continue;
          double density = double(k*c + l*d)/double(a*100*i + 100*b*j + c*k + d*l);
          if( max < density && (k*c+d*l) <= e*(a*i+b*j) ) max = density;
          sugar = k*c+l*d;
          water = 1*100*i+100*b*j;
        }
      }
    }
  }
  cout << water+sugar <<" " << sugar << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected primary-expression before '<' token
   14 |       for(int k = 0; k*c* < f; ++k){
      |                           ^
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 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 A, N;
  	cin >> N >> A;
  	cout << N ^ 2 - A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: 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 >> N >> A;
  	cout << N^2-A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: 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:23: 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^N-A<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout << N^N-A<< endl;
      |                   ~~~^~~~~~~
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:9:13: error: invalid type argument of unary '*' (have 'int')
    9 |   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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>n>>a;
      | ^~~
a.cc:7:12: 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;
cout<<(n*n-a)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>n>>a;
      | ^~~
a.cc:7:12: 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 g,r;
  cin>>g>>r;
  cout <<g*g-r<< endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>g>>r;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout <<g*g-r<< endl;
      |   ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |   cout <<g*g-r<< 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 N;
  int 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 a,b;
  cin >> a 
    cin>> b;
  cout << (a^2)-b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cin'
    6 |   cin >> a
      |           ^
      |           ;
    7 |     cin>> b;
      |     ~~~
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:9:14: error: invalid type argument of unary '*' (have 'int')
    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:8:14: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << a ** 2 - b << 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:17: 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:19: 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 ;
  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 N,A;
  cin>>N>>A;
  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 <bits/stdc++.h>
using namespace std;

int main() {
  int N	;
  int A	;
  1 <= N <= 100 ;
  0 <= A <= N * N ;
  
    cin >> N >> A ;
  
  cout << N ^ 2 - A << ;
}


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

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

int main() {
  int N	;
  int A	;
  1 <= N <= 100 ;
  0 <= A <= N * N ;
  
    cin >> N >> A ;
  
  cout << N ^ 2 - A << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |   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 ;
  int A ;
  
  cin >> N;
  cin >> A;
  
  int x = N*N-A;
  cout << x;
  







Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected '}' at end of input
   13 |   cout << x;
      |             ^
a.cc:4:12: 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: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;
  int A;
  cin >> N >> A;
  int B;
  int S
    S = N * N;
  B = S - A;
  cout << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected initializer before 'S'
   10 |     S = N * N;
      |     ^
a.cc:11:7: error: 'S' was not declared in this scope
   11 |   B = S - 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: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 <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 N, A+
  
  cin >> N >> A;
  cout << N * N - A
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before '+' token
    6 |   int N, A+
      |           ^
a.cc:9:19: error: 'A' was not declared in this scope
    9 |   cout << N * N - A
      |                   ^
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:4:13: error: expected initializer before 'cin'
    4 |   int N, A  cin >> N >> A;
      |             ^~~
a.cc:5:19: error: 'A' was not declared in this scope
    5 |   cout << N * N - A << endl;
      |                   ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {

	int n,a;
	cin >> h >> a;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'h' was not declared in this scope
    8 |         cin >> h >> a;
      |                ^
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:9:17: 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 N,A;
  cin>>N>>A;
  cout<<N*N-A<<endl;
  
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include (bits/stdc++.h)
      |          ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>N>>A;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include (bits/stdc++.h)
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<N*N-A<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |   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 | #include (bits/stdc++.h)
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'text' was not declared in this scope
    7 |   cout << text <<  asn << 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:19: 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 >> A;
  cout << N^2 - A << 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 << 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:19: error: invalid operands of types 'double' 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(){
  double = N,A;
  cin >> N >> A;
  cout << N^2 - A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: expected unqualified-id before '=' token
    4 |   double = N,A;
      |          ^
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N >> A;
      |          ^
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   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:7:12: error: invalid type argument of unary '*' (have 'int')
    7 |   cout<< n**2-a <<endl;
      |            ^~
Language: C++

#include <iostream>
using namespace std;

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

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

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

int main() {
	
	// 一辺の長さ
	int n;
	
	// 白で塗ったマスの数
	int a;
	
	// n, a を入力
	cin >> n >> a;
	
	// 黒マスの数
	int black = n**2 - a;
	
	// 結果の出力
	cout << black << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: invalid type argument of unary '*' (have 'int')
   16 |         int black = n**2 - a;
      |                       ^~
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:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    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*n-a;
}


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

#include <bits/stdc++.h>
using 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;

// (a + b)/2  (R + x) / 2 == G


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

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

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

// (a + b)/2  (R + x) / 2 == G


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:10:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << N^2 - A << endl;
      |             ~~~~~~^~~~~~~
Language: C++

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

// (a + b)/2  (R + x) / 2 == G


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:10:13: error: invalid type argument of unary '*' (have 'int')
   10 |   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 type argument of unary '*' (have 'int')
    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: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 A, N;
  cin >> A >> N;
  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 N, A;
  cin >> N >> A;
  cout << N^2 -A << endl;
}

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 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 N ;
  int A ;
  cin >> N ;
  cin >> A ;
  cout << N ** 2 - A ;
}


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 ;
      |              ^~~
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:12: error: invalid type argument of unary '*' (have 'int')
    8 |   cout <<a**2-b<<endl;
      |            ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: invalid type argument of unary '*' (have 'int')
   10 |     cout << N**2 - A << endl;
      |               ^~
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:14: 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() {
  // ここにプログラムを追記
  int n,a ; 
  cin >> n >> a ; 
  cout << n**2 - a << endl ; 
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: 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 side, count;
  cin >> side >> count;
  cout << side ** 2 - count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << side ** 2 - count << endl;
      |                 ^~~
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:13: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << a**2-b << endl;
      |             ^~
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:17: 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 N, A;
  cin >> A >> B;
  cout << N * N - A << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B;
      |               ^
a.cc: At global scope:
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^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 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;
  cin >> A >> B;
  cout << A^2 - B << endl;
}


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

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

using LL = long long;

#define ALL(a) begin((a)), end((a))
#define FOR(i, a, b) for (int(i) = (a); (i) < (b); (i)++)
#define RFOR(i, a, b) for (int(i) = (a); (i) > (b); (i)--)
#define debug(x) cout << #x << " : " << x << '\n'

const int INF = 1e9;
const LL LINF = 1e16;

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

  LL ans;
  int N, A;
  cin >> N >> A;

  ans = N * N - A;`

  cout << ans << '\n';

  return 0;
}

Compiler output:
a.cc:22:19: error: stray '`' in program
   22 |   ans = N * N - A;`
      |                   ^
Language: C++

#include<iostrea>
using namespace std;

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

Compiler output:
a.cc:1:9: fatal error: iostrea: No such file or directory
    1 | #include<iostrea>
      |         ^~~~~~~~~
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: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 n,a;
  
  cin >> n >> a;
  
  cout << n^2 - a << 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 << 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: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:14: 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 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 * N - A
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '}' token
    7 |   cout << N * N - A
      |                    ^
      |                    ;
    8 | }
      | ~
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 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 mas, nubmer;
  
  cout << mas * 2 - number << endl;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'number' was not declared in this scope; did you mean 'nubmer'?
    7 |   cout << mas * 2 - number << endl;
      |                     ^~~~~~
      |                     nubmer
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, w;
  cin >> n >> w;
  // n*n = w + b でbを求める
  cout << n * n - w << endl;
]

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before ']' token
    8 | ]
      | ^
a.cc:8:2: error: expected '}' at end of input
    8 | ]
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
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:13: error: invalid type argument of unary '*' (have 'int')
    9 |   cout << a**2 - b  << 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:16: 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 << M * N - A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'M' was not declared in this scope
    7 |   cout << M * N - A << 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:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << N*N -A << endl;
      |   ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   cout << N*N -A << endl;
      |                     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'x'
    7 |   cin>>A
      |         ^
      |         ;
    8 |     x=N*N-A;
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |    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^2 - A <<endl;
 }

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

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

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

  return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid operands of types 'double' 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(void{

	int n,a;
	cin>>n>>a;
	int n1=n*n;
	cout<<n1-a<<endl;
	
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(void{
      |     ^~~~
a.cc:6:9: error: compound literal of non-object type 'void'
    6 |         int n,a;
      |         ^~~
a.cc:4:10: error: expected primary-expression before 'void'
    4 | int main(void{
      |          ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: found ':' in nested-name-specifier, expected '::'
    8 |   cin>>a:
      |         ^
      |         ::
a.cc:8:8: error: 'a' is not a class, namespace, or enumeration
    8 |   cin>>a:
      |        ^
a.cc:11:16: error: 'd' was not declared in this scope
   11 |   cout<< (a*a)-d << endl;
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: found ':' in nested-name-specifier, expected '::'
    8 |   cin>>a:
      |         ^
      |         ::
a.cc:8:8: error: 'a' is not a class, namespace, or enumeration
    8 |   cin>>a:
      |        ^
a.cc:11:14: error: 'd' was not declared in this scope
   11 |   cout<< a*a-d << endl;
      |              ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace 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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<(N*N)-A<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int N , A;
      | ^
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:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> A;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A;
      |               ^
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:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int N , A;
      | ^
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:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> A;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    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: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 a,b;
  cin >> a >> b;
  cout << a^2-b << 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 << 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:6:16: 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 namepace std ;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std ;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   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++

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

Compiler output:
a.cc:7:16: error: stray '#' in program
    7 |   cout << n*n-a#include <bits/stdc++.h>
      |                ^
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'include'
    7 |   cout << n*n-a#include <bits/stdc++.h>
      |                ^~~~~~~~
      |                ;
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main() {
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main() {
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:10:12: error: a function-definition is not allowed here before '{' token
   10 | int main() {
      |            ^
a.cc:14:3: error: expected primary-expression before '<<' token
   14 | } << 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:7:22: error: expected primary-expression before '<<' token
    7 |   cout << a * a - b; << 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:21: 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
  
int main(){
  int N, A;
  
  cin >> N >> A;
  
  cout << N * N - A << endl;
}

Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> N >> A;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << N * N - A << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using 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 mai(){
  int N, A;
  cin >> N >> A;
  cout << N*N-A <<endl;
}

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

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

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

Compiler output:
a.cc:2:17: error: expected identifier before 'int'
    2 | using namespace int;
      |                 ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace int;
      |                ^~~~
      |                ;
a.cc:2:17: error: declaration does not declare anything [-fpermissive]
    2 | using namespace int;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> A >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << N * N - A << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

import java.util.*;
//System.out.println("")

public class Main{
    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:10: error: cannot find symbol
        System.out.println(n*N-a);
                             ^
  symbol:   variable N
  location: class Main
1 error
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:24: error: expected ';' before ':' token
    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 * N) - A << endl
}

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

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

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

int main() {
	int N, A;

	cin >> N >> A;

	N = N ^ 2;

	N = N % A;
	
	cout << N << endl;
}


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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected '}' at end of input
   19 |         cout << N << endl;
      |                           ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^