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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const long long INF = 1LL << 60;
 
typedef pair<ll,ll> pairs;
vector<pairs> p;
bool pairCompare(const pair<double,ll>& firstElof, const pair<double,ll>& secondElof){
    return firstElof.first < secondElof.first;
}
#define MAX_N 1000100
bool x[MAX_N];
ll num[MAX_N];
ll fibl[MAX_N]={0};
 
ll fib(ll a){
    if (fibl[a]!=0)return fibl[a];
    if (a==0){
        return 0;
    }else if (a==1){
        return 1;
    }
    return fibl[a]=fib(a-1)+fib(a-2);
}
 
ll eratosthenes(ll n) {
    int p = 0;
    for (ll i=0; i<=n; ++i) x[i] = true;
    x[0] = x[1] = false;
    for(int i=2; i<=n; ++i) {
        if(x[i]) {
            p++;
            for(int j=2*i; j<=n; j+=i) x[j] = false;
        }
        
        num[i] = p;
    }
    return p;
}
 
ll gcd(ll a,ll b){
    if (a%b==0)return(b);
    else return(gcd(b,a%b));
}
 
ll keta(ll N){
    int tmp{};
    while( N > 0 ){
        tmp += ( N % 10 );
        N /= 10;
    }
    N = tmp;
    return N;
}

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



Compiler output:
a.cc: In function 'int main()':
a.cc:63:20: error: expected primary-expression before ',' token
   63 |     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: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 * N -A
  }
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int N'
    7 |   int N = N * N;
      |       ^
a.cc:5:7: note: 'int N' previously declared here
    5 |   int 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:7:25: error: expected '}' at end of input
    7 |   cout << N*N-A << endl;
      |                         ^
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*N-A <<enndl;
}


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

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

int main() {

  int n, a

  cin >> n >> a; // 10
  cout << n * n - a << endl; // 10
}


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

#include<iostream>
#include<iomanip>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<numeric>
#include<limits>
#include<bitset>
#include<functional>
#include<type_traits>
#include<queue>
#include<stack>
#include<array>
#include<random>
#include<utility>
#include<cstdlib>
#include<ctime>

using namespace std;

typedef  long long ll;
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

#define rep(i,n) for(int i=0;i<(int)n;i++)
#define rep2(i, begin_i, end_i) for (int i = (int)begin_i; i < (int)end_i; i++)

long long INF = 1LL<<60;
long long dp[100010];
int h[100010];
int main(){

    int a,b,c,d,out;
    string o;
    cin>>a>>b;
    int out=a*a-b;
    cout<<out<<endl;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:37:9: error: redeclaration of 'int out'
   37 |     int out=a*a-b;
      |         ^~~
a.cc:34:17: note: 'int out' previously declared here
   34 |     int a,b,c,d,out;
      |                 ^~~
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>
#define rep(i,n) for (int i = 0;i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
  int N,A;
  cin >> N >> 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 ** 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; int A;
  cin >> N >> 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;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << N * N - A << endl;
      |   ^~~~
a.cc:7:24: error: 'endl' 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 ,b;
  cin >> a >> b;
  cout << (a*a) = 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*a) = 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 ';' before '}' token
    7 |   cout << n * n - a << endl
      |                            ^
      |                            ;
    8 | }
      | ~
Language: C++


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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before '}' token
    9 |   cout << A*A-B << endl
      |                        ^
      |                        ;
   10 | 
   11 | }
      | ~
Language: C++

#include <iostream>
#include <cmath >
using namespace std ;
int main (){
 
int x;
int y;
 
 
cin >> x>>y;
 
y=(pow(x,2)-y);
cout << y;
 
 
 
 
 
 
 
 
 
return 0;
}

Compiler output:
a.cc:2:10: fatal error: cmath : No such file or directory
    2 | #include <cmath >
      |          ^~~~~~~~
compilation terminated.
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
    System.out.println(n * n - a);
                               ^
  symbol:   variable a
  location: class Main
1 error
Language: C++

#include <iostream >
#include <cmath >
using namespace std ;
int main (){

int x;
int y;


cin >> x>>y;

y=(pow(x,2)-y);
cout << y;









return 0;
}


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

#include <iostream >
#include <cmath >
using namespace std ;
int main (){

int x;
int y;


cin >> x>>y;

x=(pow(x,2)-y);
cout << x;









return 0;
}


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

#include <iostream >
#include <cmath >
using namespace std ;
int main (){

int x;
int y;
int z;

cin >> x>>y;

z=(pow(x,2)-y);
cout << z;









return 0;
}


Compiler output:
a.cc:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream >
      |          ^~~~~~~~~~~
compilation terminated.
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
    5 |   cin>>N>>A;
      |        ^
a.cc:5:11: error: 'A' was not declared in this scope
    5 |   cin>>N>>A;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: 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() {
  string text;
  int A, N;
  cin >> A;
  cin >> N;
  cout <<N^2-A<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: 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 = 0, A = 0;
  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 = 0, A = 0;
  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(){
  cin >> N >> A;
  cout << N^2-A << endl;
}

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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before '}' token
    7 |       cout << N * N - A << endl
      |                                ^
      |                                ;
    8 |     }
      |     ~
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:16: error: expected initializer before '>>' token
    4 |     int n,a,cin>>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:7:20: 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 a >>b;

 
  cin >> a;
  
  cin >>b;
  

  cout << a*a-b << endl;
}


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

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

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


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

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

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <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:7:3: error: 'cout' was not declared in this scope
    7 |   cout << n*n-a << endl;
      |   ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   cout << n*n-a << endl;
      |                    ^~~~
Language: C++

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

int input(){
  int x; cin >> x;
  cout << pow(x,3) << endl;
}

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

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

int main() {
  int 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 = 0, A = 0;
  cin >> N >> A;
  while(N<0 || A>(N^2) || A<0){
    cout << "please confirm input" << endl;
    cin >> N >> 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 N = 0, A = 0;
  cin >> N >> A;
  while(N<0 || A>(N^2) || A<0){
    cout << ”please confirm input” << endl;
    cin >> N >> A;
  }
  cout << N ^ 2 - A << endl;
}


Compiler output:
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 |     cout << ”please confirm input” << endl;
      |             ^
a.cc:8:29: error: extended character ” is not valid in an identifier
    8 |     cout << ”please confirm input” << endl;
      |                             ^
a.cc: In function 'int main()':
a.cc:8:13: error: '\U0000201dplease' was not declared in this scope
    8 |     cout << ”please confirm input” << endl;
      |             ^~~~~~~
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 N,A;
	cin >> N >> A;
  	cout << N**2 -A <<endl;
}
  
 	

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a >> b;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << a**2-b << 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:5:13: error: invalid type argument of unary '*' (have 'int')
    5 |   cout << a**2-b << endl;
      |             ^~
a.cc:5:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << a**2-b << 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 endl;
  
  cout << n * n - a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '=' token
    6 |   int = n,a
      |       ^
a.cc:10:11: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |   cout << n * n - a << endl;
      |           ^
      |           yn
a.cc:10:19: error: 'a' was not declared in this scope
   10 |   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: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 a,b;
int main(){
  cin>>a>>b;
  cout<<a^2-b<<endl;
}

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

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

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
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 >> a >> b;
      |   ^~~
      |   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 << a*a-b<< 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << a*a-b<< 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 ^ 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++

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: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 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << N ^ 2 - 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:24: error: 'endl' was not declared in this scope
    7 |   cout << N ^ 2 - 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 | using namespace std;
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**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<iostream>
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:8: error: expected unqualified-id before ',' token
    5 |     int, N , A;
      |        ^
Language: C++

#include <iostream>
using namespace std;

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

}

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

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

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


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

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

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


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

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

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

}
    


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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N >> 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: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/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 K;
  int S;
cin >> K >> S ;

 int x = K*K - S;
  else {
  cout << x << endl;  
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

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

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

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

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;
      |             ^~
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: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 ;
  cin >> 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 a ,b;
  cin >> a >> b;
  cout << a*a -b << 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(){
  cin >> N >> A;
  cout << N*N - A << endl;
}

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

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int  a, b ,c;
    char X,Y;
    string S1,S2;
    cin >> a >> b;
    cout << a^a - b << 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 << a^a - b << 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: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()
{
  cin >> N;
  cin >> A;
  cout << N^2 - A << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()
#define SUM(a)  accumulate((a).begin(),(a).end(),0)
#define SORT(a) sort(ALL(a))
#define REV(a) reverse(ALL(a))
#define dump(x)  cerr << #x << " = " << (x) << endl;
typedef long long ll;
const int INTINF = 1<<29;
const ll LLINF = 1LL<<61;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
const int DX[8]={ 0, 1, 0,-1, 1, 1,-1,-1};
const int DY[8]={ 1, 0,-1, 0, 1,-1, 1,-1};

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n,a;
  cin >> n >> a;
  cout << n*n-a << endl;
  }
}

Compiler output:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
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 spacename std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'spacename'
    2 | using spacename std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n >> 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: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/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 A,N;
  cin>>A>>N;
cout <<N*N-A<< endl;
}

Compiler output:
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int A,N;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:13: note: to match this '{'
    4 | int main（）{
      |             ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>A>>N;
      |   ^~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout <<N*N-A<< endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
  int l,a;
  sin >> l>>a;
  cout << l*l-a << endl;
}


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

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

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


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

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

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


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

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

int main(){
  int N, A;
  (1<=N<=100);
  (0<=A<=N^2);
  cin >> N >> 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 <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int INTINF = 2147483647
const int MOD = 1000000007;

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

Compiler output:
a.cc:12:1: error: expected ',' or ';' before 'const'
   12 | const int MOD = 1000000007;
      | ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int INTINF = 2147483647
const int MOD = 1000000007;

int main() {
  int N, A;
  int result = pow(N,2) - A;
  cout << result << endl;
  return 0;
}

Compiler output:
a.cc:12:1: error: expected ',' or ';' before 'const'
   12 | const int MOD = 1000000007;
      | ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int INTINF = 2147483647
const int MOD = 1000000007;

int main() {
  int N, A;
  int result = pow(N,2) - A
  cout << result << endl;
  return 0;
}

Compiler output:
a.cc:12:1: error: expected ',' or ';' before 'const'
   12 | const int MOD = 1000000007;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:17:3: error: expected ',' or ';' before 'cout'
   17 |   cout << result << endl;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'cout'
    9 |   cin >> A
      |           ^
      |           ;
   10 | 
   11 |   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:
a.cc: In function 'int main()':
a.cc:7:23: error: expected primary-expression before ';' token
    7 |   cout << N * N - A <<;
      |                       ^
Language: C++

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

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


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

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

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


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

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

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


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

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



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

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

int main() {

  double N;
  double A;
  cin >> R;
  cin >> G;
  cout << N*N-A << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main()
  int a,n;

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



Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int a,n;
      |   ^~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> n >> a;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << n * n - a << endl;
      |   ^~~~
Language: Java

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
    scanf("%d %d",&t,&a);
    ^
Main.java:6: error: class, interface, enum, or record expected
    printf("%d",(t*t)-a);
    ^
Main.java:7: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:8: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
	double m,vv;
	cin >> m;
    m=m*0.001;
 
	if (m < 0.1)	vv = 0;
	else if (0.1 <= m && 5 >= m)	vv = m * 10;
	else if (6 <= m && 30 >= m)	vv = m + 50;
	else if (35 <= m && 70 >= m)	vv = (m-30)/5+80;
	else if (70 <= m )	vv = 89;
 
  if(vv<10)  cout <<0<< vv << endl;
  else	cout<<vv<<endl;
	return 0;
}
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
	double m,vv;
	cin >> m;
    m=m*0.001;

	if (m < 0.1)	vv = 0;
	else if (0.1 <= m && 5 >= m)	vv = m * 10;
	else if (6 <= m && 30 >= m)	vv = m + 50;
	else if (35 <= m && 70 >= m)	vv = (m-30)/5+80;
	else if (70 <= m )	vv = 89;

  if(vv<10)  cout <<0<< vv << endl;
  else	cout<<vv<<endl;
	return 0;
}


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

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

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


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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n >> a;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << n * n - a;
      |   ^~~~
Language: C++

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

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


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:5:10: error: expected unqualified-id before 'int'
    5 |   int n, int a;
      |          ^~~
a.cc:6:3: error: 'cin' 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;
      |               ^
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   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;
}


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;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << n * n - a;
      |   ^~~~
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: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;
  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 N, A;
  cin >> N >> A;
  cout << N * N - A << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '}' token
    7 |   cout << N * N - A << endl
      |                            ^
      |                            ;
    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: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 mian(){
  int N,A;
  cin >> N >> A;
  cout << N * N - A << endl;
}

Compiler output:
a.cc: In function 'int mian()':
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 std;

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

Compiler output:
a.cc: In function 'int mian()':
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