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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '<<' token
    5 |   int R << 2000;
      |         ^~
a.cc:6:9: error: expected initializer before '<<' token
    6 |   int G << 2099;
      |         ^~
a.cc:8:11: error: 'R' was not declared in this scope
    8 |   cout << R + G / 2 << endl;
      |           ^
a.cc:8:15: error: 'G' was not declared in this scope
    8 |   cout << R + G / 2 << endl;
      |               ^
Language: C++

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

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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'R'
    5 |   cin R >> G;
      |      ^~
      |      ;
a.cc:7:15: error: lvalue required as left operand of assignment
    7 |   double (R+x)/2=G;
      |   ~~~~~~~~~~~~^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'R'
    5 |   cin R >> G;
      |      ^~
      |      ;
a.cc:6:3: error: 'couble' was not declared in this scope; did you mean 'double'?
    6 |   couble x;
      |   ^~~~~~
      |   double
a.cc:7:13: error: 'x' was not declared in this scope
    7 |   double (R+x)/2=G;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'R'
    5 |   cin R >> G;
      |      ^~
      |      ;
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |   int (R+x)/2=G;
      |   ~~~~~~~~~^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'R'
    5 |   cin R >> G;
      |      ^~
      |      ;
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |   int (R+x)/2 = G;
      |   ~~~~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> R >> G;
      |   ^~~
a.cc:5:15: error: lvalue required as left operand of assignment
    5 |   int (R + x) / 2 = G;
      |   ~~~~~~~~~~~~^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << x << endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout << x << endl;
      |                ^~~~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: lvalue required as left operand of assignment
    7 |   R+S = G*2;
      |   ~^~
Language: C++

#include<bits/sydc++,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/sydc++,h: No such file or directory
    1 | #include<bits/sydc++,h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: found ':' in nested-name-specifier, expected '::'
    6 |   cin>>R>>G:
      |            ^
      |            ::
a.cc:6:11: error: 'G' is not a class, namespace, or enumeration
    6 |   cin>>R>>G:
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'b' was not declared in this scope
    7 |    b = 2G -R ;
      |    ^
a.cc:7:8: error: unable to find numeric literal operator 'operator""G'
    7 |    b = 2G -R ;
      |        ^~
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:29: error: expected '}' at end of input
    7 |   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()}
int R,G;
cin >>R >>G;
cout << ( R + G ) / 2 endl;



Compiler output:
a.cc:3:11: error: expected initializer before '}' token
    3 | int main()}
      |           ^
a.cc:3:11: error: expected declaration before '}' token
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >>R >>G;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << ( R + G ) / 2 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 << (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++

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

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






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

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

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

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

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << P << 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:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << P << 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;
#define FOR(i,n) for(int i=0;i<n;i++)
#define why(n,x) int n;while(cin >>n,n!=x)
#define iFOR(i,x,n)for(int i=x;i<n;i++)
#define unless(flg) if ( !(flg) )
#define read cin<<
#define echo cout<<
#define fin <<'\n'
#define __ <<" "<<
#define ___ <<" "
#define bash push_back
#define ALL(x) x.begin(),x.end()
#define SWAP(a,b) ((a != b) && (a += b,b = a - b,a -= b))
#define cinf(n,x) for(int UNCH=0;UNCH<(n);UNCH++) cin >> x[UNCH];
#define fcin(n,x) for(int UNCH=1;UNCH<=(n);UNCH++) cin>> x[UNCH];
#define memmin(x) memset((x),-1,sizeof((x)))
#define memzer(x) memset((x), 0,sizeof((x)))
#define meminf(x) memset((x),0x3f,sizeof((x)))
#define int long long
typedef long long ll;
typedef pair < int , int >  pii;
typedef vector < int > vit;
typedef map < string , int > mstit;
typedef vector < pii > vpi ;
typedef greater < pii > gpi;
typedef priority_queue < pii , vpi , gpi > dijk ;
static const signed int INF = 0x3f3f3f3f;
static const signed long long LINF = 0x3f3f3f3f3f3f3f3fLL;
static const signed int SMOD = 1000000007;
static const signed int NMOD = 1000000009;
static const signed int dx[]={1,0,-1,0,1,1,-1,-1};
static const signed int dy[]={0,-1,0,1,-1,1,-1,1};

bool inside(int x,int y,int w,int h){return (x>=0 && y>=0 && x<w && y<h);}
template<class T>T abs(T &x){return x<0 ? -x : x;}
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int qp(int a,ll b,int mo){int ans=1;do{if(b&1)ans=1ll*ans*a%mo;a=1ll*a*a%mo;}while(b>>=1);return ans;}
int gcd(int a,int b){return b?gcd(b,a%b):a;}



signed main(){

  int n,a,b;
  string str;

  int a, b;
  int r, g;
  cin >> r >> g;
  cout << 2*g - r fin;

  return 0;
}



struct xyz{ xyz(){ cin.tie(0), ios::sync_with_stdio(false); cout <<fixed<<setprecision(12);};}xyzzy;



Compiler output:
a.cc: In function 'int main()':
a.cc:49:7: error: redeclaration of 'long long int a'
   49 |   int a, b;
      |       ^
a.cc:46:9: note: 'long long int a' previously declared here
   46 |   int n,a,b;
      |         ^
a.cc:49:10: error: redeclaration of 'long long int b'
   49 |   int a, b;
      |          ^
a.cc:46:11: note: 'long long int b' previously declared here
   46 |   int n,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:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G - R << endl;
      |           ^~
Language: C++

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

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

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

  cin >> R,G;

  x = 2 * G - R
  
  cout << x << endl;
}


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int R;
  int G;
 
  cin >> R;
  cin >> 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 n,k;
  cin >> n >> k;
  int j=1;
  
    while(j<=k){
      j*2
  }
  for(int i=j/2+1;i<n;i++){
    j+k;
  }
  cout << j ;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   prinf("%d",2*b-a);
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>
int main(void){
int a,b;
  scanf("%d",&a);
  scanf("%d",&b);
  prinf("%d",2b-a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   prinf("%d",2b-a);
      |   ^~~~~
      |   printf
main.c:6:14: error: invalid suffix "b" on integer constant
    6 |   prinf("%d",2b-a);
      |              ^~
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 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 R,G;
  cin >> R >>G;

  cout << (R+G)/2;<<endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'G'
    4 |   int R G;
      |         ^
a.cc:5:10: error: 'R' was not declared in this scope
    5 |   cin >> R >>G;
      |          ^
a.cc:5:14: 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 << a * b / 2.0 << 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:7:11: error: 'a' was not declared in this scope
    7 |   cout << a * b / 2.0 << endl;
      |           ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cout << a * b / 2.0 << endl;
      |               ^
Language: C++

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

int main() {
  int R; , G;
  cin >> E >> G;
  cout << a * b / 2.0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before ',' token
    5 |   int R; , G;
      |          ^
a.cc:5:12: error: 'G' was not declared in this scope
    5 |   int R; , G;
      |            ^
a.cc:6:10: error: 'E' was not declared in this scope
    6 |   cin >> E >> G;
      |          ^
a.cc:7:11: error: 'a' was not declared in this scope
    7 |   cout << a * b / 2.0 << endl;
      |           ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cout << a * b / 2.0 << endl;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    6 |   cin >> R, G >> endl;
      |             ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

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


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'cin' was not declared in this scope
   17 |     cin>>r;
      |     ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include <set>
  +++ |+#include <iostream>
    8 | using namespace std;
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<2*g-r<<endl;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |     cout<<2*g-r<<endl;
      |                  ^~~~
a.cc:8:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    7 | #include <set>
  +++ |+#include <ostream>
    8 | using namespace std;
Language: C

#include <stdio.h>

int main(void){
	int r,g;
	scanf("%d %d",&r,&g);
	printf("%d\n", 2 * g – r);
}


Compiler output:
main.c: In function 'main':
main.c:6:30: error: stray '\342' in program
    6 |         printf("%d\n", 2 * g <U+2013> r);
      |                              ^~~~~~~~
main.c:6:29: error: expected ')' before 'r'
    6 |         printf("%d\n", 2 * g – r);
      |               ~             ^  ~
      |                             )
Language: C

#include <stdio.h>

int main(void){
  int r,g;
  scanf("%d %d",&r,&g);
  printf("%d\n",2 * g – r);
}

Compiler output:
main.c: In function 'main':
main.c:6:23: error: stray '\342' in program
    6 |   printf("%d\n",2 * g <U+2013> r);
      |                       ^~~~~~~~
main.c:6:22: error: expected ')' before 'r'
    6 |   printf("%d\n",2 * g – r);
      |         ~            ^  ~
      |                      )
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<vector>
#include<set>
#include<cctype>
using namespace std;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const long long INF = 1LL << 60;

int main(void){
	ios::sync_with_stdio(false); cin.tie(0);
	
	int rg;
	cin>>r>>g;
	cout<<g+g-r<<endl;
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: 'r' was not declared in this scope; did you mean 'rg'?
   18 |         cin>>r>>g;
      |              ^
      |              rg
a.cc:18:17: error: 'g' was not declared in this scope; did you mean 'rg'?
   18 |         cin>>r>>g;
      |                 ^
      |                 rg
Language: C++

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

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

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

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

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

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

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

#include <stdio.h>

int main() {
  int r,g;
  
  scanf("%d %d", &r, %g);
  
  printf("%d\n",2*g-r);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected expression before '%' token
    6 |   scanf("%d %d", &r, %g);
      |                      ^
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> rate >> goal;
      |   ^~~
      |   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 << goal*2-rate<< 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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << goal*2-rate<< 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() {
  // �����Ƀv���O������ǋL
  int r,g;
  cin >> r g;
  cout << 2*g-r << endl;
  
}

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

#include <iostream>
#include <algorithm>
#include <math.h>
#include <string>
using namespace std;
int main(){
      int G,R;
      cin >> G >> R;
      cout << R - G + G << endl;

        return 0;
}#include <iostream>
#include <algorithm>
#include <math.h>
#include <string>
using namespace std;
int main(){
      int G,R;
      cin >> G >> R;
      cout << R - G + G << endl;

        return 0;
}

Compiler output:
a.cc:12:2: error: stray '#' in program
   12 | }#include <iostream>
      |  ^
a.cc:12:3: error: 'include' does not name a type
   12 | }#include <iostream>
      |   ^~~~~~~
a.cc:17:5: error: redefinition of 'int main()'
   17 | int main(){
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:17:5: error: redefinition of 'int main()'
   17 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:27:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   27 | 提出情報
      | ^~~~~~~~
Language: C++

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

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

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

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

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

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


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> x >> y;
      |   ^~~
a.cc:7:16: error: 'y' was not declared in this scope
    7 |   cout << (x + y) / 2 << endl;
      |                ^
Language: C++

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

cout << ""高橋君が取るべきパフォーマンスを出力しなさい。" << endl;

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

Compiler output:
a.cc:4:9: error: extended character 。 is not valid in an identifier
    4 | cout << ""高橋君が取るべきパフォーマンスを出力しなさい。" << endl;
      |         ^
a.cc:4:57: warning: missing terminating " character
    4 | cout << ""高橋君が取るべきパフォーマンスを出力しなさい。" << endl;
      |                                                         ^
a.cc:4:57: error: missing terminating " character
    4 | cout << ""高橋君が取るべきパフォーマンスを出力しなさい。" << endl;
      |                                                         ^~~~~~~~~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << ""高橋君が取るべきパフォーマンスを出力しなさい。" << endl;
      | ^~~~
a.cc:8:1: error: 'cin' does not name a type
    8 | cin >> R;
      | ^~~
a.cc:9:1: error: 'cin' does not name a type
    9 | cin >> G;
      | ^~~
a.cc:10:1: error: 'cout' does not name a type
   10 | 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: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;
  cin >> g:
  cout << 2*g-r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: found ':' in nested-name-specifier, expected '::'
    7 |   cin >> g:
      |           ^
      |           ::
a.cc:7:10: error: 'g' is not a class, namespace, or enumeration
    7 |   cin >> g:
      |          ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

// 

import std.stdio,std.array,std.conv;
void main(){
  string[] s=split(readln());
  int r=to!int(s[0]);
  int g=to!int(s[1]);
  writeln(g*2-r);
}

Compiler output:
main.c:3:1: error: unknown type name 'import'
    3 | import std.stdio,std.array,std.conv;
      | ^~~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import std.stdio,std.array,std.conv;
      |           ^
main.c: In function 'main':
main.c:5:3: error: 'string' undeclared (first use in this function)
    5 |   string[] s=split(readln());
      |   ^~~~~~
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:10: error: expected expression before ']' token
    5 |   string[] s=split(readln());
      |          ^
main.c:6:9: error: 'to' undeclared (first use in this function)
    6 |   int r=to!int(s[0]);
      |         ^~
main.c:6:11: error: expected ',' or ';' before '!' token
    6 |   int r=to!int(s[0]);
      |           ^
main.c:7:11: error: expected ',' or ';' before '!' token
    7 |   int g=to!int(s[1]);
      |           ^
main.c:8:3: error: implicit declaration of function 'writeln' [-Wimplicit-function-declaration]
    8 |   writeln(g*2-r);
      |   ^~~~~~~
Language: C++

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

int main(){
  int a = 0,s = 0,k = 0,res = 0;
  cin >> s,r;
  k = (r - s) * 2;
  res = s + k;
  cout << res << endl;
}

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

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

int main(){
  int a = 0,s = 0,k = 0,res = 0;
  cin >> s >> r;
  k = (r - s) * 2;
  res = s + k;
  cout << res << endl;
}

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

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

int main(){
  int a = 0; s = 0; k = 0;res = 0;
  cin >> s >> r;
  k = (r - s) * 2;
  res = s + k;
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 's' was not declared in this scope
    5 |   int a = 0; s = 0; k = 0;res = 0;
      |              ^
a.cc:5:21: error: 'k' was not declared in this scope
    5 |   int a = 0; s = 0; k = 0;res = 0;
      |                     ^
a.cc:5:27: error: 'res' was not declared in this scope
    5 |   int a = 0; s = 0; k = 0;res = 0;
      |                           ^~~
a.cc:6:15: error: 'r' was not declared in this scope
    6 |   cin >> s >> r;
      |               ^
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nemespace'
    2 | using nemespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> R >> G;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (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:26: 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:6:3: error: expected initializer before 'cin'
    6 |   cin >> R,G ;
      |   ^~~
a.cc:7:13: error: 'G' was not declared in this scope
    7 |   cout << 2*G - R << endl;
      |             ^
Language: C

#include<stdio.h>
 
int main(void){
  int R,G;
  if(scanf("%d",&R)); == 1);
  if(scanf("%d",&G)); == 1);
  if(R >=0 && G >=0 && R <= 4500 && G <= 4500){
    printf("%d",((2*G)-R));
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected expression before '==' token
    5 |   if(scanf("%d",&R)); == 1);
      |                       ^~
main.c:5:27: error: expected statement before ')' token
    5 |   if(scanf("%d",&R)); == 1);
      |                           ^
main.c:6:23: error: expected expression before '==' token
    6 |   if(scanf("%d",&G)); == 1);
      |                       ^~
main.c:6:27: error: expected statement before ')' token
    6 |   if(scanf("%d",&G)); == 1);
      |                           ^
Language: C

#include<stdio.h>

int main(void){
  int R,G;
  if(scanf("%d",&R); == 1);
  if(scanf("%d",&G); == 1);
  if(R >=0 && G >=0 && R <= 4500 && G <= 4500){
    printf("%d",((2*G)-R));
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected ')' before ';' token
    5 |   if(scanf("%d",&R); == 1);
      |     ~              ^
      |                    )
main.c:6:20: error: expected ')' before ';' token
    6 |   if(scanf("%d",&G); == 1);
      |     ~              ^
      |                    )
Language: C

#include<stdio.h>
 
int main(void){
  int R,G;
  if(scanf("%d",&R) == 1);
  printf("\n");
  if(scanf("%d",&G) == 1);
  printf("\n%d",R+(G-R)*2)
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ';' before 'return'
    8 |   printf("\n%d",R+(G-R)*2)
      |                           ^
      |                           ;
    9 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
int R,G,N;
scanf("%d%d",&R,&G);
N=2G-R;
printf("%d\n",N);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: invalid suffix "G" on integer constant
    6 | N=2G-R;
      |   ^~
Language: C

#include<stdio.h>

int main(void){
  float R,G;
  scanf_s("%f",&R);
  scanf_s("\n%f",&G);
  printf("\n%f",R+(G-R)*2);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scanf_s("%f",&R);
      |   ^~~~~~~
      |   scanf
Language: C

#include<stdio.h>
int main()
{
  int R;
  int G;
  int ans;
  scanf("%d%d",&R,&G)
  ans=G*2-R;
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected ';' before 'ans'
    7 |   scanf("%d%d",&R,&G)
      |                      ^
      |                      ;
    8 |   ans=G*2-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: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() {
  double R,G;
   cin >> R >> G
    cout << 2*G-R
}

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

#include <iostream>
#include <string>
#include <vector>
typedef unsigned int UINT;
using namespace std;

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

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

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int R,G;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:26:1: error: expected ';' before '}' token
   26 | }
      | ^
Language: C++

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

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

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

#!/usr/bin/env python3

R = int(input().rstrip())
G = int(input().rstrip())

P = G * 2 - R
print(P)


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:3:1: error: 'R' does not name a type
    3 | R = int(input().rstrip())
      | ^
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() {
  double R, G;
  cin >> R >> G;
  cout << (R + G) / 2.0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before '}' token
    7 |   cout << (R + G) / 2.0
      |                        ^
      |                        ;
    8 | }
      | ~