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

#Include <bits/stdc++.h>

using namescae std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:3:7: error: expected nested-name-specifier before 'namescae'
    3 | using namescae std;
      |       ^~~~~~~~
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 + G)/2<< endl;
      |   ^~~~
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |   cout << (R + G)/2<< endl;
      |                       ^~~~
Language: C++

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

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

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

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

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

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

Compiler output:
a.cc:1:10: fatal error: bits/stddc++.h: No such file or directory
    1 | #include <bits/stddc++.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
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:8:11: error: unable to find numeric literal operator 'operator""G'
    8 |   cout << 2G-R ;
      |           ^~
Language: C++

fn main(){
    let R:i32 = {
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).unwrap();
        s.trim_end().parse().unwrap()
    };
    let G:i32= {
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).unwrap();
        s.trim_end().parse().unwrap()
    };
    println!("{}", 2 * G - R);
}

Compiler output:
a.cc:1:1: error: 'fn' does not name a type
    1 | fn main(){
      | ^~
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: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,b;
  cin >> a >> b;
  cout << 2/(R + b) << endl;
}

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

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

int main() {
  int R;
  cin >> R;
  int G;
  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() {
  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
int main() {
  int R,G;
  cin >> R >> G;
  cout << (R+G)/2 << endl;
  }


Compiler output:
a.cc:3:1: error: expected identifier before 'int'
    3 | int main() {
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | int main() {
      | ~~~             
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << (R+G)/2 << 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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << (R+G)/2 << 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

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


Compiler output:
a.cc:4:3: error: expected identifier before 'int'
    4 |   int main() {
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |   int main() {
      |   ~~~           
a.cc: In function 'int main()':
a.cc: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 << (R+G)/2 << 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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (R+G)/2 << 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

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

Compiler output:
a.cc:4:3: error: expected identifier before 'int'
    4 |   int main() {
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |   int main() {
      |   ~~~           
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> R >> G;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (R+G)/2 << endl;
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:14: error: 'G' was not declared in this scope
    7 |   cout << (R+G)/2 << endl;
      |              ^
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (R+G)/2 << 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 << 2*G + R << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '<' token
    6 |   R = G = 0 =< R,G <= 4500;
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '<' token
    6 |   R = G = 0==< R,G <==4500;
      |              ^
a.cc:6:22: error: expected primary-expression before '=' token
    6 |   R = G = 0==< R,G <==4500;
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '<' token
    6 |   R = G = 0==< R,G <==4500
      |              ^
a.cc:6:22: error: expected primary-expression before '=' token
    6 |   R = G = 0==< R,G <==4500
      |                      ^
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:9: 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 << 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() {
  double a = 0.0,b = 0.0
  cin >> a >> b;
  cout << b * 2 - a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
    6 |   cin >> a >> b;
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a,g;
  cin>>a>>b;
  cout>>2*b-a>>endl;
}

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

//#include<iostream>

//#include<cstdio>
//#include<cstring>

#include<stdio.h>
#include<string.h>

//using namespace std;

#define LEN (50)
#define SIZE ((LEN)+(1))

bool strmat(char*s, char*t){//match
	for(; *t != '\0'; t++, s++){
		if( *s == *t ){
			//
		}
		else if( *s == '?' ){
			//
		}
		else if( *s == '\0' ){//add
			return false;
		}
		else{
			return false;
		}
	}
	return true;
}

char* strpos(char* s, char* t){//position
	for( ; *s != '\0'; s++){
		if( strmat(s, t) ){
			return s;
		}
	}
	return NULL;
}

char* strrep(char* p, const char s, const char d){//replace
	char* q = p;
	for(; *p != '\0'; p++){
		if(*p == s) *p = d;
	}
	return q;
}

char* strins(char* s, char* t){//insert
	char *p = s;
	for( ; *s != '\0' && *t != '\0'; s++, t++){
		*s = *t;
	}
	return p;
}

int main(void){
	char sd[SIZE];
	char t[SIZE];
	
	scanf("%s", sd);
	scanf("%s", t);
	
	char* pt = strpos(sd, t);
	
	if(pt == NULL){
		printf("UNRESTORABLE");
	}else{
		strins(pt, t);
		strrep(sd, '?', 'a');
		printf("%s", sd);
	}
	
	return 0;
}


Compiler output:
main.c:14:1: error: unknown type name 'bool'
   14 | bool strmat(char*s, char*t){//match
      | ^~~~
main.c:8:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    7 | #include<string.h>
  +++ |+#include <stdbool.h>
    8 | 
main.c: In function 'strmat':
main.c:23:32: error: 'false' undeclared (first use in this function)
   23 |                         return false;
      |                                ^~~~~
main.c:23:32: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:23:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:16: error: 'true' undeclared (first use in this function)
   29 |         return true;
      |                ^~~~
main.c:29:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

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

int main() {
  double G,R;
  cin >> G >> R ;
  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 a, b;
  cin >> a >> b;
  cout << 2 * c / a << endl;
}

// a * G / 2 = c 
//a * G = 2 * c
//G = 2 * c / a

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans = (g * 2 ) / r;
      |   ^~~
      |   abs
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: 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;
  G = G * 2;
  cout << G - R <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before ';' token
    6 |   int R,G,;
      |           ^
Language: C++

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

int main(){

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


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

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

int main(){

  int R;
  int G;
  double result;
  
  cin >> R >> G >>;
  result = R+G;
  cout << result/2 <<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before ';' token
   10 |   cin >> R >> G >>;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
  double R;
  double G;
  int X;
  cin >> R >> G;
  cout << G = R + X << endl; 
    
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << G = R + X << endl;
      |               ~~~~~~^~~~~~~
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:9:11: error: unable to find numeric literal operator 'operator""b'
    9 |   cout << 2b - a << endl;
      |           ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '}' token
    8 |   cout << x << endl
      |                    ^
      |                    ;
    9 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: unable to find numeric literal operator 'operator""g'
    7 |   double x  = 2g - r;
      |               ^~
a.cc:8:20: error: expected ';' before '}' token
    8 |   cout << x << endl
      |                    ^
      |                    ;
    9 | }
      | ~
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:8:11: error: unable to find numeric literal operator 'operator""b'
    8 |   cout << 2b-a << endl;
      |           ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before ':' token
    9 |   cout << G * 2 - 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:7: error: expected initializer before '>>' token
    6 |   cin >> R >>G;
      |       ^~
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:6:9: error: extended character 　 is not valid in an identifier
    6 |   cin >>　R >>G;
      |         ^
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '>>' token
    6 |   cin >>　R >>G;
      |       ^~
Language: C++

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

int main(){
  int R, G = 0;
  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() {

double r,g;
  cin >> r >> g;
  cout << g*2-r <<;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int previous_rate;
  int goal_rate;
  int required_rate;
  cin >> input_time;
  cin >> goal_rate;
  //goal_rate = (previous_rate + required_rate)/2
  //required_rate = 2*goal_rate - previous_rate
  required_rate = 2*goal_rate - previous_rate;
  
  cout << required_rate << endl;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int previous_rate;
  int goal_rate;
  int required_rate;
  cin >> previous_rate;
  cin >> goal_rate;
  //goal_rate = (previous_rate + required_rate)/2
  //required_rate = 2*goal_rate - previous_rate
  required_rate = 2*goal_rate - previous_rate;
  
  cout << required_rate << endl;
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'input_time' was not declared in this scope
    8 |   cin >> input_time;
      |          ^~~~~~~~~~
a.cc: At global scope:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:31:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   31 | 提出情報
      | ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int previous_rate;
  int goal_rate;
  int required_rate;
  cin >> input_time;
  cin >> goal_rate;
  //goal_rate = (previous_rate + required_rate)/2
  //required_rate = 2*goal_rate - previous_rate
  required_rate = 2*goal_rate - previous_rate;
  
  cout << required_rate << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int previous_rate;
  int goal_rate; //goal_rate = (previous_rate + required_rate)/2
  int required_rate; // required_rate = 2*goal_rate - previous_rate
  cin >> input_time;
  cin >> goal_rate;
  required_rate = 2*goal_rate - previous_rate
  
  cout << required_rate << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'input_time' was not declared in this scope
    8 |   cin >> input_time;
      |          ^~~~~~~~~~
a.cc:10:46: error: expected ';' before 'cout'
   10 |   required_rate = 2*goal_rate - previous_rate
      |                                              ^
      |                                              ;
   11 | 
   12 |   cout << required_rate << endl;
      |   ~~~~
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << - ( R - 2G ) << 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:7:9: error: extended character 　 is not valid in an identifier
    7 |   cout<<　2*G-R<<endl;
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: '\U000030002' was not declared in this scope
    7 |   cout<<　2*G-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:8:3: error: expected '}' at end of input
    8 |  {
      |  ~^
a.cc:8:3: 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;
  cin >> G;
  cout << G*2 - R << endl;
  {
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected '}' at end of input
    9 |   {
      |   ~^
a.cc:9:4: 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;
  
  input R, G 
  output (2 * G - R )
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'input' was not declared in this scope; did you mean 'int'?
    8 |   input R, G
      |   ^~~~~
      |   int
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:7:16: error: expected ';' before '}' token
    7 |   cout << G*2-R
      |                ^
      |                ;
    8 | }
      | ~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'M' was not declared in this scope
    6 |   cin >> M >> G;
      |          ^
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: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() {
  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() {
  double 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 <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() {
  double r,g;
  cin >> r,g;
  cout << (g-r)/2 << endl:
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before ':' token
    7 |   cout << (g-r)/2 << 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:5:7: error: expected unqualified-id before '=' token
    5 |   int = R, G;
      |       ^
a.cc:6:10: 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 ;
  cin >> R >> G ;
  cout << 2*G-R << emdl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected '}' at end of input
    7 |   cout << c << endl;
      |                     ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

}




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

#include <bits/stdc++.h>
using namespace std;
int main ()
{
  double R;
  double G;
  double S;
  
  S = 0;
  cin >> R >> G;
  cout << S = 2.0 * G - R; 
}

// G = (R + S) / 2.0
// 2.0 * G = R + S

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'double')
   11 |   cout << S = 2.0 * G - R;
      |                         ^
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,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'double' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

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

// G = (R + S) / 2.0
// 2.0 * G = R + S

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout << S = 2.0 * G - R << endl;
      |               ~~~~~~~~~~~~^~~~~~~
Language: C++

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

// G = (R + S) / 2.0
// 2.0 * G = R + S

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout << S = 2.0 * G - R << 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: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;
  int S;
  
  S = 0;
  cin >> R >> G;
  cout << S = 2G - R << endl; 
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: unable to find numeric literal operator 'operator""G'
   10 |   cout << S = 2G - R << endl;
      |               ^~
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:11:11: error: unable to find numeric literal operator 'operator""g'
   11 |   cout << 2g-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:15: error: 'G\U0000ff1b' was not declared in this scope
    6 |   cin >> 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:6:15: error: 'G\U0000ff1b' was not declared in this scope
    6 |   cin >> 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;
      |           ^~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
 int r,g;

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

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'cout'
    7 |      cin >> r >> g
      |                   ^
      |                   ;
    8 |      cout << g*2 - r << endl;
      |      ~~~~
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: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() {
  // ここにプログラムを追記
  double R, G;
  cin >> R G;
  cout << 2G - R << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'G'
    7 |   cin >> R G;
      |           ^~
      |           ;
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()
{
  cin>>a>>b;
  cout<<b*2-a<<endl;
  return 0;
}


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

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

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

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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'doule' was not declared in this scope; did you mean 'double'?
    5 |   doule r, g;
      |   ^~~~~
      |   double
a.cc:6:10: error: 'r' was not declared in this scope
    6 |   cin >> r >> g;
      |          ^
a.cc:6:15: 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;
  cin >> r;
  cin >> 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 << 2*G-R endl;
}


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

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:9: 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:19: error: 'G' was not declared in this scope
    7 |         cout << 2*G - R << endl;
      |                   ^
a.cc:7:23: error: 'R' was not declared in this scope
    7 |         cout << 2*G - R << endl;
      |                       ^
a.cc:7:28: 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,g;
      cin >> r >> g;
      
      cout << 2 * g - r << endl;
      
      {
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '}' at end of input
   11 |       {
      |       ~^
a.cc:11:8: error: expected '}' at end of input
a.cc:4:16: 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 << 2g - r << endl;
      
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: 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,g;
      
      cout << 2g - r << endl;
      
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: expected unqualified-id before ';' token
    4 | int main() {int a,b,;
      |                     ^
a.cc:8:11: error: unable to find numeric literal operator 'operator""b'
    8 |   cout << 2b-a<<endl;
      |           ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: unable to find numeric literal operator 'operator""c'
    8 |     b = 2c -a;
      |         ^~
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:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    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 <<;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before ';' token
    7 |   cout << ( R+ G )/2 <<;
      |                        ^
Language: Java

import java.util.*;

public class main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int r = sc.nextInt();
    int g = sc.nextInt();
    double ans = 2 * g - r;
    System.out.println(ans);
  }
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'G' was not declared in this scope
    6 |   cout << B = 2 * G - R << endl;
      |                   ^
a.cc:6:23: error: 'R' was not declared in this scope
    6 |   cout << B = 2 * G - R << endl;
      |                       ^
Language: C++

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

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


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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int')
    9 |   cout << B = 2 * G - R;
      |                       ^
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,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'char')
    9 |   cout << 2 * G - R = B;
      |                       ^
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,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'char' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << 2 * G - R = B << endl;
      |                       ~~^~~~~~~