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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find numeric literal operator 'operator""G'
    8 |   cout << 2G-R << endl;
      |           ^~
a.cc:8:24: error: expected '}' at end of input
    8 |   cout << 2G-R << endl;
      |                        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: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 >> R >> G;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << - R + 2 * G << endl;
      |   ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |   cout << - R + 2 * G << endl;
      |                          ^~~~
Language: C++

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

int main() {
 
  int R, G;
  cin >> R >> G;
  cout << 2 * 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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> R >> G;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << 2 * G - R << endl;
      |   ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   cout << 2 * G - R << endl;
      |                        ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before '=' token
    5 |   double=R,G;
      |         ^
a.cc:6:8: error: 'R' was not declared in this scope
    6 |   cin>>R>>G;
      |        ^
a.cc:6:11: error: 'G' was not declared in this scope
    6 |   cin>>R>>G;
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""b'
    7 |   cout << 2b - a << endl;
      |           ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: unable to find numeric literal operator 'operator""G'
    7 |   cout <<  2G - R << endl;
      |            ^~
Language: C++

#include<iostream>

int main(){
  double R,G;
  cin >> R >> G;
  
  cout << 2.0 * R - G; 
}

Compiler output:
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 >> R >> G;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << 2.0 * R - G;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {

  int R;
  int G;
    cin >> R >> G;
    cout << 2G-R << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: unable to find numeric literal operator 'operator""G'
    9 |     cout << 2G-R << endl;
      |             ^~
Language: C++

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

int main() {

  int R,G,A;
    cin >> R >> G >> A;
    cout << (R+A)/2.0＝G << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: unable to find numeric literal operator 'operator""\U0000ff1dG'
    8 |     cout << (R+A)/2.0＝G << endl;
      |                   ^~~~~~
Language: C++

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

int main() {

  int R;
  int A;
    cin >> R >> A;
    cout << (R+A)/2.0=G << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'G' was not declared in this scope
    9 |     cout << (R+A)/2.0=G << endl;
      |                       ^
Language: C++

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

int main() {
  int r;
  int g;
  cin >> r >> g;
  cout << 2g-r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find numeric literal operator 'operator""g'
    8 |   cout << 2g-r << endl;
      |           ^~
Language: C++

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

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

Compiler output:
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   cout << 2R - G << endl;
      |   ^~~~
a.cc: In function 'int main()':
a.cc:7:11: error: fixed-point types not supported in C++
    7 |   cout << 2R - G << endl;
      |           ^~
Language: C++

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

int main() {

    // 現在のレート
    int r;
    
    // 目標レート
    int g
     
     // r, gを入力
     cin >> r >> g;
     
     // 取るべきレートを出力
     cout <<  2 * g - r << endl;
}  

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

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

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

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

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

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


Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stds++.h> {
      |                          ^
a.cc:1:10: fatal error: bits/stds++.h: No such file or directory
    1 | #include <bits/stds++.h> {
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G - R << endl;
      |           ^~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float now = sc.nextFloat();
		float will = sc.nextFloat();

		will = will * 2;
		float res = will - now;
		System.out.println((int)res);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		float now = sc.nextFloat();
		float will = sc.nextFloat();

		will = will * 2;
		float res = will - now;
		System.out.println(res);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int r;
  int g;
  
  g < 4500;
  
  cin >> r;
  
  4500 = r + g;
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: lvalue required as left operand of assignment
   13 |   4500 = r + g;
      |   ^~~~
Language: C++

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: unable to find numeric literal operator 'operator""G'
    4 | cout << 2G / R << endl;
      |         ^~
a.cc:4:14: error: 'R' was not declared in this scope
    4 | cout << 2G / R << endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int r,g;
  if(0<r||r<4500||0<g||g<4500){
    cin >> r >>g;
    cout << 2g-r <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: unable to find numeric literal operator 'operator""g'
    7 |     cout << 2g-r <<endl;
      |             ^~
Language: C++

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

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


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

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

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

  cont << g * 2 - r << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  float R;
  float G;
  
  R >= 0;
  G <= 4500;
  
  cin >> R;
  Cin >> G;
  cout << (2*G)/R << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'Cin' was not declared in this scope; did you mean 'sin'?
   13 |   Cin >> G;
      |   ^~~
      |   sin
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  float R;
  float G;
  
  R >= 0;
  G <= 4500;
  
  cin >> R;
  Cin >> G;
  cout << (2*G)\R << endl;
  
  return 0;
}

Compiler output:
a.cc:14:16: error: stray '\' in program
   14 |   cout << (2*G)\R << endl;
      |                ^
a.cc: In function 'int main()':
a.cc:13:3: error: 'Cin' was not declared in this scope; did you mean 'sin'?
   13 |   Cin >> G;
      |   ^~~
      |   sin
a.cc:14:16: error: expected ';' before 'R'
   14 |   cout << (2*G)\R << endl;
      |                ^~
      |                ;
Language: C++

#include<stdio.h>
int main(void)
{
	int a,b,x;
	scanf("%d",&a);
	scanf("%d",&b);
	
	c=b*2-a;
	
	printf("%d\n",c);
	
	return 0;
}
	
	

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: unable to find numeric literal operator 'operator""G'
    9 |   b = 2G - a;
      |       ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G - R << endl;
      |           ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find numeric literal operator 'operator""G'
    7 |   W = 2G - R;
      |       ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find numeric literal operator 'operator""b'
    7 |   c = 2b-a;
      |       ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before '>>' token
    6 |   cin >> a, >> b;
      |             ^~
a.cc:7:7: error: unable to find numeric literal operator 'operator""b'
    7 |   c = 2b-a;
      |       ^~
Language: C++

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

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

# include<iostream>
# include<string>

using namespace std;

int main(void){
  int r, g;
  cin >> r;
  cin >> g
  cout << 2 * g - r << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'cout'
    9 |   cin >> g
      |           ^
      |           ;
   10 |   cout << 2 * g - r << '\n';
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setpreci;sion(15);
  int R,G;cin >> R >> G;
  cout << 2*G - R << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'setpreci' was not declared in this scope
   34 |   cout << setpreci;sion(15);
      |           ^~~~~~~~
a.cc:34:20: error: 'sion' was not declared in this scope; did you mean 'sin'?
   34 |   cout << setpreci;sion(15);
      |                    ^~~~
      |                    sin
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setpreci;sion(15);
  int R,G;cin >> R >> G;
  cout << 2*G - A << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'setpreci' was not declared in this scope
   34 |   cout << setpreci;sion(15);
      |           ^~~~~~~~
a.cc:34:20: error: 'sion' was not declared in this scope; did you mean 'sin'?
   34 |   cout << setpreci;sion(15);
      |                    ^~~~
      |                    sin
a.cc:36:17: error: 'A' was not declared in this scope
   36 |   cout << 2*G - A << endl;
      |                 ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   cout << 2R - G << endl;
      |   ^~~~
a.cc: In function 'int main()':
a.cc:7:11: error: fixed-point types not supported in C++
    7 |   cout << 2R - G << endl;
      |           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
  int current, target;
  cin >> current >> target;
  cout << traget * 2 - current << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'traget' was not declared in this scope; did you mean 'target'?
    8 |   cout << traget * 2 - current << endl;
      |           ^~~~~~
      |           target
Language: C++

include<bits/stdc++.h>
using namespace std;
int main (void){
  double R,G,P;
  cin >> R >> G;
  if(!(R>=0&&R<=4500)||!(G>=0&&G<=4500)){
    return 0;
  }else{
    P=2*G-R;
  }
  cout << P << 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:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> R >> G;
      |   ^~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << P << endl;
      |   ^~~~
a.cc:11:16: error: 'endl' was not declared in this scope
   11 |   cout << P << endl;
      |                ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G - R << endl;
      |           ^~
Language: C++

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

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

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

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


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

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

int main()
{
  	int a,b;
  	cin>>a>>b;
  	cout<<(a>=b)?((a+b)/2):(b-a)<<endl;
  
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'G'
    6 |   cin >> R G;
      |           ^~
      |           ;
Language: C++

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

int main() {
  double p, r, g;
  p = (2 * g) - r
  cin >> r >> g;
  cout << p << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'cin'
    6 |   p = (2 * g) - r
      |                  ^
      |                  ;
    7 |   cin >> r >> g;
      |   ~~~
Language: C++

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

int main() {
  double p, r, g;
  p = -r + (2 * g)
  g = (r + p) / 2;
  cin >> r >> g;
  cout << p << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before 'g'
    6 |   p = -r + (2 * g)
      |                   ^
      |                   ;
    7 |   g = (r + p) / 2;
      |   ~
Language: C++

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

int main() {
  int p, r, g;
  p = (r + g) / 2
  cin >> r >> g;
  cout << p << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'cin'
    6 |   p = (r + g) / 2
      |                  ^
      |                  ;
    7 |   cin >> r >> g;
      |   ~~~
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: invalid suffix "g" on integer constant
    5 |   printf("%d",2g-r);
      |               ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: invalid suffix "g" on integer constant
    5 |   printf("%d",2g-r);
      |               ^~
Language: C++

int main() {
  int R = 0<- R <- 4500;
  int G = 0<- G <- 4500;
  
 
  
    
    cin >> R; 
  	cin >> G;
  
  cout << G*2 - R << endl;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> R;
      |     ^~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << G*2 - R << endl;
      |   ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |   cout << G*2 - R << endl;
      |                      ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expression cannot be used as a function
   11 |          cout<< R + 2 ( R - G )<< endl;
      |                     ~~^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expression cannot be used as a function
   11 |          cout<< 2 ( R - G )<< endl;
      |                 ~~^~~~~~~~~
Language: C++

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

int main(){
  double R,G;
  
  cin>> R>>G;
    cout<<((G*2/R);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ')' before ';' token
    8 |     cout<<((G*2/R);
      |           ~       ^
      |                   )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'performance' was not declared in this scope; did you mean 'peformanece'?
   10 |   performance = 2*G - R
      |   ^~~~~~~~~~~
      |   peformanece
Language: C++

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

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

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

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

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

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

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

int main() {
  int a, b, G;
  a = R;
  cin >> R >> b >> G;
  cout << R + (G - R) * 2
}

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

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

int main(){
  int r,g,x;
  cin >> r;
  cin >> g;
  cout << x=2*g-r <<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 << x=2*g-r <<endl;
      |             ~~~~~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: unable to find numeric literal operator 'operator""G'
    8 |   cout<<2G-R<<endl;
      |         ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: unable to find numeric literal operator 'operator""G'
    8 |   cout<< 2G-R <<endl;
      |          ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: unable to find numeric literal operator 'operator""G'
    8 |   cout<<2G-R<<endl;
      |         ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: unable to find numeric literal operator 'operator""G'
    7 |   cout<< 2G-R <<endl;
      |          ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> a >> b;
      |     ^~~
      |     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:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << 2 * b - 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:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << 2 * b - 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 r,g;
    cin >> r >> g;
    cout << 2g-r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: unable to find numeric literal operator 'operator""g'
    8 |     cout << 2g-r << endl;
      |             ^~
Language: C++

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

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

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

#inclde <bits/stdc++.h>
int main(){
  int R, G;
  cin >> R >> G;
  cout << 2 * R - G << endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> R >> G;
      |   ^~~
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << 2 * R - G << endl;
      |   ^~~~
a.cc:5:24: error: 'endl' was not declared in this scope
    5 |   cout << 2 * R - G << endl;
      |                        ^~~~
Language: C++

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

int main() {
  int A,B;
    cin >>R,G;
    cout << (R+G)/2 << endl;

  // ここにプログラムを追記
}


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

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

int main() {
  int R, G, A;
  cin >> R;
  cin >> A;
  cout << G = (R+A)/2 << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: unable to find numeric literal operator 'operator""G'
    7 |   cout <<  2G-R << endl;
      |            ^~
Language: C++

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

int main() {
  double R,G,S;

  cin >>R>>G>>;
  S=(R+G)/2
  cout <<S<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before ';' token
    7 |   cin >>R>>G>>;
      |               ^
a.cc:8:12: error: expected ';' before 'cout'
    8 |   S=(R+G)/2
      |            ^
      |            ;
    9 |   cout <<S<< endl;
      |   ~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'cout'
    8 |   c=2*b-a
      |          ^
      |          ;
    9 | 
   10 |   cout<<c<<endl;
      |   ~~~~
Language: C++

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

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

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

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

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

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

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

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

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

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

int R;
int G;
  cin >> R >> G >> endl;
  cout << 2 * G - R << endl;
}

Compiler output:
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> R >> G >> endl;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 2 * G - R << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before '}' token
    6 |   cout<<g * 2 - r<<endl
      |                        ^
      |                        ;
    7 | }
      | ~
Language: Java

import java.util.Scanner;

public class Nnn {


	public static void main(String[] args){

		Nnn obj = new Nnn();
		obj.doIt();
	}
	void doIt() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
	
		sc.close();

		if ((a + b) % 2 == g);
		else if (b =2* g - a);


			System.out.println(b);
	  }
  }



Compiler output:
Main.java:3: error: class Nnn is public, should be declared in a file named Nnn.java
public class Nnn {
       ^
Main.java:18: error: cannot find symbol
		if ((a + b) % 2 == g);
		                   ^
  symbol:   variable g
  location: class Nnn
Main.java:19: error: cannot find symbol
		else if (b =2* g - a);
		               ^
  symbol:   variable g
  location: class Nnn
Main.java:19: error: incompatible types: int cannot be converted to boolean
		else if (b =2* g - a);
		           ^
4 errors
Language: C++

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

int main() {
  int r,g;
  cin >> r >> g;
  cout << 2*g - r <<;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'text' was not declared in this scope
    8 |   cout << text << 2G - R << endl;
      |           ^~~~
a.cc:8:19: error: unable to find numeric literal operator 'operator""G'
    8 |   cout << text << 2G - R << endl;
      |                   ^~
Language: C++

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: unable to find numeric literal operator 'operator""G'
    9 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: unable to find numeric literal operator 'operator""G'
   10 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: unable to find numeric literal operator 'operator""G'
   10 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: unable to find numeric literal operator 'operator""G'
    9 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: unable to find numeric literal operator 'operator""G'
    9 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: unable to find numeric literal operator 'operator""G'
    9 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""c'
    7 |   cout << 2c - a << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""c'
    7 |   cout << 2c - a << endl;
      |           ^~
Language: C++

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

int main() {
  int x, y, z;
  cin >> x >> y;
  
  cout << z = ((y - x) / 2) + x << endl;
  
}
  
  

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

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

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


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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G-R < <endl;
      |           ^~
a.cc:7:18: error: expected primary-expression before '<' token
    7 |   cout << 2G-R < <endl;
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G-R;
      |           ^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: unable to find numeric literal operator 'operator""G'
    8 |   M = 2G - R;
      |       ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
	double r, g;
	cin >> r >> g;
	cout << 2g-r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: unable to find numeric literal operator 'operator""g'
    7 |         cout << 2g-r << endl;
      |                 ^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: unable to find numeric literal operator 'operator""g'
    9 |   cout<<2g-r<<endl;
      |         ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: unable to find numeric literal operator 'operator""g'
   10 |   cout <<2g-r<<endl;
      |          ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: unable to find numeric literal operator 'operator""g'
   10 |   cout <<2g-r<<endl;
      |          ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: unable to find numeric literal operator 'operator""g'
   10 |   cout <<2g-r<<endl;
      |          ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G - R << endl;
      |           ^~
Language: C++

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

int main(int argc, char *argv[]) {
  ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);

  ing g,r;cin>>r>>g;
  cout<<2*g-r<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:10:3: error: 'ing' was not declared in this scope; did you mean 'int'?
   10 |   ing g,r;cin>>r>>g;
      |   ^~~
      |   int
a.cc:10:16: error: 'r' was not declared in this scope
   10 |   ing g,r;cin>>r>>g;
      |                ^
a.cc:10:19: error: 'g' was not declared in this scope
   10 |   ing g,r;cin>>r>>g;
      |                   ^