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

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

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

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

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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected '}' at end of input
    9 | cout << 2 * G - R <<endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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;
  cint >> R >> G;
  cout << G*2-R << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |   cint >> R >> G;
      |   ^~~~
      |   uint
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++

using namespace std;

int main(void) {
    int6 R,G;
    cin >> R >> G;

    cout << (G * 2) - R << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'int6' was not declared in this scope; did you mean 'int'?
    4 |     int6 R,G;
      |     ^~~~
      |     int
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     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 | using namespace std;
a.cc:5:12: error: 'R' was not declared in this scope
    5 |     cin >> R >> G;
      |            ^
a.cc:5:17: error: 'G' was not declared in this scope
    5 |     cin >> R >> G;
      |                 ^
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (G * 2) - R << "\n";
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using namespace std;

int main(void) {
    int64_t R,G;
    cin >> R >> G;

    cout << (G * 2) - R << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'int64_t' was not declared in this scope
    4 |     int64_t R,G;
      |     ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | using namespace std;
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     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 | using namespace std;
a.cc:5:12: error: 'R' was not declared in this scope
    5 |     cin >> R >> G;
      |            ^
a.cc:5:17: error: 'G' was not declared in this scope
    5 |     cin >> R >> G;
      |                 ^
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (G * 2) - R << "\n";
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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 <iostream>
using namespace std;

int main() {
  int R;
  int G;
  cin >> R >> G;

  cout << 2A-R << endl;
}


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

#include <iostream>
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 <iostream>
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:5:10: error: 'G' was not declared in this scope
    5 |   int R; G;
      |          ^
a.cc:8:11: error: unable to find numeric literal operator 'operator""G'
    8 |   cout << 2G-R << endl;
      |           ^~
Language: C++

#include <iostream>
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;
      |           ^~
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 << G * 2 - R << endl;
}

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

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

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

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

int main() {
  int R, G;
  cont " 2G - R " endl;
}



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

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

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


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

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

int main() {
  int R,G;
  cin >> R >> G;
  for(R+G >= 4500);
  cout << R << G << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before ')' token
    7 |   for(R+G >= 4500);
      |                  ^
      |                  ;
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:26: error: expected ')' before '}' token
    8 |   cout << R << G << endl;
      |                          ^
      |                          )
    9 | }
      | ~                         
a.cc:7:6: note: to match this '('
    7 |   for(R+G >= 4500);
      |      ^
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'A' was not declared in this scope
    7 |   cout << (b * 2) - 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: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:6:3: error: expected initializer before 'cin'
    6 |   cin >> R >>G:
      |   ^~~
Language: C++

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(R >=0,G=<4500){
      |     ^~~~
a.cc:4:18: error: expected primary-expression before '<' token
    4 | int main(R >=0,G=<4500){
      |                  ^
a.cc:4:23: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int main(R >=0,G=<4500){
      |                       ^
Language: C++

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

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

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

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

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

int main() {
	int R ;
    double G ;
    cin >> R ;
    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++

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

int main() {
	int R ;
    double G ;
    cin >> R ;
    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 ;
      |             ^~
a.cc:8:16: error: 'r' was not declared in this scope
    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:6:11: error: unable to find numeric literal operator 'operator""G'
    6 |   cout << 2G-R <<endl;
      |           ^~
Language: C++

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

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

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

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


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

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

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

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

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


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;
  //G=(x+R)/2
}


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<< 2b-a <<endl;
}


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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected unqualified-id before ';' token
    6 |   double r, g,;
      |               ^
a.cc:7:13: error: expected primary-expression before ';' token
    7 |   cin>>r, g,;
      |             ^
Language: C++

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

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'cin'
    9 |     cin >> R >> AVG;
      |     ^~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = R,G,x;
      |       ^
a.cc:6:12: error: 'R' was not declared in this scope
    6 |     cin >> R >> G ;
      |            ^
a.cc:6:17: error: 'G' was not declared in this scope
    6 |     cin >> R >> G ;
      |                 ^
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = 2*G-R;
      |   ^
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;
  
  cin >> R >> G;
  next_rate = G * 2 - R;
  cout << next_rate << endl;
}


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

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

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

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

int main(){
  int R,G;
  
  cin >> R;
  cin >> G;
  
  if (0 <= R, G<= 4500){
    cout << (R+G)/2 << endl;
  }
  else {
    cout << "error" << endl;
  }

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

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
 
  // 変数a,bで入力を受け取る
  cin >> a >> 2b;
 
  cout << 2b - a << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> 2b;
      |   ^~~
a.cc:8:15: error: unable to find numeric literal operator 'operator""b'
    8 |   cin >> a >> 2b;
      |               ^~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << 2b - a << endl;
      |   ^~~~
a.cc:10:11: error: unable to find numeric literal operator 'operator""b'
   10 |   cout << 2b - a << endl;
      |           ^~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |   cout << 2b - a << endl;
      |                     ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
 
  // 変数a,bで入力を受け取る
  cin >> a >> b;
 
  cout << 2*b - a << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> b;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << 2*b - a << endl;
      |   ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |   cout << 2*b - a << endl;
      |                      ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
 
  // 変数a,bで入力を受け取る
  cin >> a >> b;
 
  cout << 2 * b + a  << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> b;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << 2 * b + a  << endl;
      |   ^~~~
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |   cout << 2 * b + a  << endl;
      |                         ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
 
  // 変数a,bで入力を受け取る
  cin >> a >> b;
 
  cout < 2 * b - 2 * a << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> b;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout < 2 * b - 2 * a << endl;
      |   ^~~~
a.cc:10:27: error: 'endl' was not declared in this scope
   10 |   cout < 2 * b - 2 * a << endl;
      |                           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b;
 
  // 変数a,bで入力を受け取る
  cin >> a >> b;
 
  cout << (a + b)/ 2 << endl;
}gi

Compiler output:
a.cc:11:2: error: 'gi' does not name a type
   11 | }gi
      |  ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'R' was not declared in this scope; did you mean 'RG'?
    6 |  cin>>R;
      |       ^
      |       RG
a.cc:7:7: error: 'G' was not declared in this scope; did you mean 'RG'?
    7 |  cin>>G;
      |       ^
      |       RG
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected ',' or ';' before 'cout'
    7 | cout<<G+x<<endl;
      | ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected ',' or ';' before 'cout'
    7 | cout<<G+x<<endl;
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected ',' or ';' before 'cout'
    7 | cout<<G+x<<endl;
      | ^~~~
Language: C++

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

int main() {
  // ここにプログラムを追記
  int G,R;
  cin >> G >> R;
  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 <iostream>
using namespace std;

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

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 << cout;
      |                 ^~
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: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 R, G ;
	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() {
  // ここにプログラムを追記
	double R ,G ;
    cin >> R >> G;
  	cout << 2G - R << endl;
}

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main(){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:12: 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: 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() {
  int R;
  int 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;
 
double main(){
  2G-R
}
  

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main(){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: unable to find numeric literal operator 'operator""G'
    5 |   2G-R
      |   ^~
a.cc:5:6: error: 'R' was not declared in this scope
    5 |   2G-R
      |      ^
Language: C++




#include <bits/stdc++.h> 

using namespace std;

int main  ()
{

int R;
int G;
int performance;




cin>>R;
cin>>G;

performance=G*2_R;

cout << performance << endl;

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: unable to find numeric literal operator 'operator""_R'
   21 | performance=G*2_R;
      |               ^~~
Language: C++




#include <bits/stdc++.h> 

using namespace std;

int main  ()
{

int R;
int G;
int performance;


R=2002;
G=2017;
performance=G*2_R;

cout << performance << endl;

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: unable to find numeric literal operator 'operator""_R'
   18 | performance=G*2_R;
      |               ^~~
Language: C++




#include <bits/stdc++.h> 

using namespace std;

int main  ()
{

int R;
int G;
int performance;


R=2002;
G=2017;
performance=g*2_r;

cout << performance << endl;

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'g' was not declared in this scope
   18 | performance=g*2_r;
      |             ^
a.cc:18:15: error: unable to find numeric literal operator 'operator""_r'
   18 | performance=g*2_r;
      |               ^~~
Language: C++




#include <bits/stdc++.h> 

using namespace std;

int main  ()
{

int r;
int g;
int performance;


r=2002;
g=2017;
performance=g*2_r;

cout << performance << endl;

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: unable to find numeric literal operator 'operator""_r'
   18 | performance=g*2_r;
      |               ^~~
Language: C++




#include <bits/stdc++.h> 

using namespace std;

int main  ()
{

int r;
int g;
int performance;


r=2002;
g=2017;
performance=g*2_r

cout << performance << endl;

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: unable to find numeric literal operator 'operator""_r'
   18 | performance=g*2_r
      |               ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: redeclaration of 'int P'
    7 |  int P = 2 * G - R;
      |      ^
a.cc:5:12: note: 'int P' previously declared here
    5 |  int R, G, P;
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'N' was not declared in this scope
    8 |   N = 2 * G - R;
      |   ^
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 R, G;
  cin >> R >> G;
  cout << G*2-R endl <<;
}

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

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

int main() {
  int M,G;
  cin >> M >> G;
  cout << 2G-M << 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-M << endl;
      |           ^~
Language: C++

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

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


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

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

int main(){
      int a,c;
      cin>>a>>c;
      if(a<c) swap(a,c);
      b=c+(a-c);
      cout<<b<<endl;
      return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'R' was not declared in this scope
    5 |   cin >> R >> G;
      |          ^
a.cc:5:15: error: 'G' was not declared in this scope
    5 |   cin >> R >> G;
      |               ^
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:9:2: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    9 |  cout << 2R-G << endl;
      |  ^~~~
a.cc: In function 'int main()':
a.cc:9:10: error: fixed-point types not supported in C++
    9 |  cout << 2R-G << endl;
      |          ^~
Language: C++

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

double main() {
  double R, G;
  
 cin >> R, G;

 cout << 2R-G << endl;
}


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

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

int main() {
  double R, G;
  
  cin >> R, G;

 cout <<2R-G << endl;
}


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

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

double main() {
  double R, G;
  
  cin >> R, G;

  cout << 2R-G << endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cout'
    7 |    cin >> G
      |            ^
      |            ;
    8 |   cout << 2*G-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: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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int R, G;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> R >> G;
      |   ^~~
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 {
  cin >> R >> G;
  cout << 2 * G - R << endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:10: error: 'R' was not declared in this scope
    5 |   cin >> R >> G;
      |          ^
a.cc:5:15: error: 'G' was not declared in this scope
    5 |   cin >> R >> G;
      |               ^
a.cc:5:16: error: expected '}' before ';' token
    5 |   cin >> R >> G;
      |                ^
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << 2 * G - R << endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
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 <iostream>

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

Compiler output:
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 >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << b-a+b << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << b-a+b << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'cout'
   12 |   x = 2 * G - R
      |                ^
      |                ;
   13 |   cout << x << 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;
 
double main() {
  double a, b;
  cin >> a;
  cin >> b;
  cout << (a+b)/2 << endl;
}


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main() {
      | ^~~~~~
Language: C++

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

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


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


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

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

int main() {
  // ここにプログラムを追記
  int R , G ;
  double x;
  x = R + ( G - R )*2
  cout << x << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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 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 << 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: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: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: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: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: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<<2*g-r<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>r>>g;
      |   ^~~
a.cc:7:9: error: 'g' 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<<-R+2G<<endl;
}


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

#include<iostream>
using namespace std;
int main()
{
  int a, b;
  cin >> a >> b;
  if(a > b)
    cout << a - b;
  else if(a =< b)
    cout << (a + b) / 2;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before '<' token
    9 |   else if(a =< b)
      |              ^
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: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: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 before_rating = 0;
  int target_rating = 0;
  
  cint >> before_rating >> target_rating;
  double performance = 2 * target_rating - before_rating;
  
  cout << performance << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    8 |   cint >> before_rating >> target_rating;
      |   ^~~~
      |   uint
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  double R,G;
  cin>>R>>G;
  cout<<G*2-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:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>R>>G;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<G*2-R<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<G*2-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: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 , 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 , A;
  cin >> R >> G;
  cout << R + A / 2 == G << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << R + A / 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: In function 'int main()':
a.cc:5:16: error: found ':' in nested-name-specifier, expected '::'
    5 |   cin >> R >> G:
      |                ^
      |                ::
a.cc:5:15: error: 'G' is not a class, namespace, or enumeration
    5 |   cin >> R >> G:
      |               ^
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:8: 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<< 2G-R <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: 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<<2G-R<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: 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<<2G-R<<endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'int'
    6 |   cin >> a, b
      |              ^
      |              ;
    7 | 
    8 |   int x;
      |   ~~~         
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x = 2*b - a
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'int'
    6 |   cin >> a, b
      |              ^
      |              ;
    7 | 
    8 |   int x = 2* b - a;
      |   ~~~         
a.cc:9:11: error: 'x' was not declared in this scope
    9 |   cout << x << endl;
      |           ^