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

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

int main() {
	int N, K;
  	cin >> N >> K;
  	
  	int l = 1;
  	for (int i=0; i<N, i++) {
    	if(l * 2 > l + K) {
        	l = l + k;
        }
      	else if (l + K >= l * 2) {
        	l = l * 2;
        }
    }
  	cout << l << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected ';' before ')' token
    9 |         for (int i=0; i<N, i++) {
      |                               ^
      |                               ;
a.cc:11:25: error: 'k' was not declared in this scope
   11 |                 l = l + k;
      |                         ^
Language: C++

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

int main() {
	int N, K;
  	cin >> N >> K;
  	
  	int l = 1;
  	for (i=0; i<N, i++) {
    	if(l * 2 > l + K) {
        	l = l + k;
        }
      	else if (l + K >= l * 2) {
        	l = l * 2;
        }
    }
  	cout << l << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'i' was not declared in this scope
    9 |         for (i=0; i<N, i++) {
      |              ^
a.cc:9:27: error: expected ';' before ')' token
    9 |         for (i=0; i<N, i++) {
      |                           ^
      |                           ;
a.cc:11:25: error: 'k' was not declared in this scope
   11 |                 l = l + k;
      |                         ^
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:8:24: error: expected ';' before '}' token
    8 |   cout << 2*G-R << endl
      |                        ^
      |                        ;
    9 | }
      | ~
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:6:3: error: expected initializer before 'cin'
    6 |   cin >> R;
      |   ^~~
a.cc:7:10: error: 'G' was not declared in this scope
    7 |   cin >> G;
      |          ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int G
      |   ^~~
a.cc:8:15: error: 'G' was not declared in this scope
    8 |   cout << 2 * G - R << endl;
      |               ^
a.cc:8:19: error: 'R' was not declared in this scope
    8 |   cout << 2 * G - R << endl;
      |                   ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int Main()':
a.cc:5:10: error: 'R' was not declared in this scope
    5 |   cin >> R;
      |          ^
a.cc:6:10: error: 'G' was not declared in this scope
    6 |   cin >> G;
      |          ^
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

int main() {
  // ここに追記
  double R;
  double G = ;
  cin >> R >> G;
  cout << 2G-R << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before ';' token
    7 |   double G = ;
      |              ^
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 << end1;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'end1' was not declared in this scope
    7 |   cout << 2*g-r << end1;
      |                    ^~~~
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() {
  // ここに追記
  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 <iostream>
using namespace std;
int main ()
{
	int a, b,;
	cin >> a;
	cin >> b;
	cout << (a+b)/2;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before ';' token
    5 |         int a, b,;
      |                  ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <math.h> // sort

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

int main(){
    //std::ifstream in("input.txt");
    //std::cin.rdbuf(in.rdbuf());
    ll r,g
    cin >> r >> g;

    ll res;
    ll sa = g - r;

    res = r + 2 * sa;
    cout << res << endl;
    return 0;    

}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected initializer before 'cin'
   18 |     cin >> r >> g;
      |     ^~~
a.cc:21:13: error: 'g' was not declared in this scope
   21 |     ll sa = g - r;
      |             ^
Language: C++

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

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

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

int main{
  int g,r;
  cin >> g >> r ;
  cout << 2g-r << endl;
}
//G=R+X/2
  //2G=R+X
  //X=2G-R

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 g,r;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> g >> r ;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 2g-r << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main{
  int g,r;
  cout << 2g-r << endl;
}
//G=R+X/2
  //2G=R+X
  //X=2G-R

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 g,r;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << 2g-r << endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'dauble' was not declared in this scope; did you mean 'double'?
    5 |  dauble  a,b;
      |  ^~~~~~
      |  double
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin<<a<<b;
      |        ^
a.cc:6:11: 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,S,G;
  cin >> R  >> G;
  cout << S=R-2G << endl;
  cout <<S/2<<endl;
}


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

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

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


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

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

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

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

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


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

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

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


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

#include <iostream>
using namespace std;

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

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

#include <iostream>
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:11:11: error: unable to find numeric literal operator 'operator""B'
   11 |   cout << 2B - A << endl;
      |           ^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '>>' token
    5 |   int a >> b;
      |         ^~
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cout << b*2 -a << endl;
      |           ^
a.cc:6:16: error: 'a' was not declared in this scope
    6 |   cout << b*2 -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:6:9: error: unable to find numeric literal operator 'operator""b'
    6 |   cout<<2b-a<<endl;
      |         ^~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
 
int main() {
  string R, G; cin >> R >> G;
  int result = 2 * R - G;
  cout << result << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no match for 'operator*' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    9 |   int result = 2 * R - G;
      |                ~ ^ ~
      |                |   |
      |                int std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: found ':' in nested-name-specifier, expected '::'
    5 |   int R, G:
      |           ^
      |           ::
a.cc:5:10: error: 'G' has not been declared
    5 |   int R, G:
      |          ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> R >> G;
      |       ^~
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
}

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

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

double main() {
  
  double R , G;
  
  cin >> R >> G;
  
  cout << 2 * G - R << 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 nowPerf, nextPerf;
  cin >> nowPerf >> nextPerf;
  double rate = (nowPerf + nextPerf) / 2
  cout << rate << endl;
}


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

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

int main() {
  int a;

  // 変数aで入力を受け取る
  cin >> a >> b;

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


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

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

int main() {
  int a;

  // 変数aで入力を受け取る
  cin >> a,b;

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


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

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

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


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main() {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> R,G >>endl;
      |   ^~~
a.cc:7:13: 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 << 2*G - R << endl;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |   cin >> R >> G
      |                ^
      |                ;
    8 | 
    9 |   cout << 2*G - 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:12:11: error: unable to find numeric literal operator 'operator""G'
   12 |   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 A,B;
  cin >> A >> B;
  cout << 2B-A <<endl;
}

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

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

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

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

#include<iostream>
main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}


Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:13: error: expected unqualified-id before 'int'
    2 | main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |             ^~~
a.cc:2:31: error: 'n' was not declared in this scope
    2 | main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |                               ^
a.cc:2:34: error: 'k' was not declared in this scope
    2 | main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |                                  ^
Language: C++

#include<iostream>
int main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: expected unqualified-id before 'int'
    2 | int main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |                 ^~~
a.cc:2:35: error: 'n' was not declared in this scope
    2 | int main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |                                   ^
a.cc:2:38: error: 'k' was not declared in this scope
    2 | int main(){std::int n,k;std::cin>>n>>k;std::cout<<k*2-n;}
      |                                      ^
Language: C++

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

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

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

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

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

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

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

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

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

  cout <<A*2- B<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 |   cin>>A
      |         ^
      |         ;
   10 |     cin>>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:8:12: error: expected ';' before 'cout'
    8 |   cin>>R>>G
      |            ^
      |            ;
......
   11 |   cout <<2 * G - R<< endl;
      |   ~~~~
Language: C++

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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: conflicting declaration 'double R'
    7 |   double R , G ;
      |          ^
a.cc:6:7: note: previous declaration as 'int R'
    6 |   int R , G ;
      |       ^
a.cc:7:14: error: conflicting declaration 'double G'
    7 |   double R , G ;
      |              ^
a.cc:6:11: note: previous declaration as 'int G'
    6 |   int R , G ;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> R;
      |         ^~~
a.cc:7:16: error: 'G' was not declared in this scope
    7 |         cin >> G;
      |                ^
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<bits/stdc++.h>
using namespace std;

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

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

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

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

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


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

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

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

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

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

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


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

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

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

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

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

int main();
{

  int r,g;

  cin >> r >> endl;
  cin >> g >> endl;

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl;
}


Compiler output:
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

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

int main();{

  int r,g;

  cin >> r >> endl;
  cin >> g >> endl;

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl;
}


Compiler output:
a.cc:4:12: error: expected unqualified-id before '{' token
    4 | int main();{
      |            ^
Language: C++

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

int main();
{
  int r,g;

  cin >> r >> endl;
  cin >> g >> endl;

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl;
}


Compiler output:
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

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

int main();
{
  int r,g;

  cin >> r >> endl;
  cin >> g >> endl;

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl;
}


Compiler output:
a.cc:2:17: error: 'str' is not a namespace-name
    2 | using namespace str:
      |                 ^~~
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace str:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

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

int main();
{
  int r,g;

  cin >> r >> endl;
  cin >> g >> endl;

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl;
}


Compiler output:
a.cc:2:17: error: 'str' is not a namespace-name
    2 | using namespace str;
      |                 ^~~
a.cc:5:1: error: expected unqualified-id before '{' token
    5 | {
      | ^
Language: C++

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

int main():
  int r,g:

  cin >> r >> endl:
  cin >> g >> endl:

  int s = (g - r) * 2
    
  cout << 2 * g - r << endl:



Compiler output:
a.cc:2:17: error: 'str' is not a namespace-name
    2 | using namespace str:
      |                 ^~~
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace str:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

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

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

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

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

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;
      |           ^~
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:5:9: error: expected initializer before 'G'
    5 |   int R G;
      |         ^
a.cc:6:10: error: 'R' was not declared in this scope
    6 |   cin >> R >> G;
      |          ^
a.cc:6:15: error: 'G' was not declared in this scope
    6 |   cin >> R >> G;
      |               ^
Language: C++

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

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

}


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

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

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

}


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

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

int main() {
  int R, G,sa, T;
  cin >> R, G;
  sa = G - R;
  T = G + sa;
  cout << T
}
  

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

#include<iostream>
int main(){
	std::cin >> a >> b;
  	std::cout << 2*b-a;
}

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

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

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

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


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 |   cout<<score2<<endl
      |                     ^
      |                     ;
   10 | }
      | ~
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: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 >> a >> b ;
  cout << 2*G-R << endl;
}


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

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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |   p = g * 2 - r
      |                ^
      |                ;
    8 |   cout << p << 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: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 a,b,c;
  cin >> a 
    cin>> b;
  
  cout << (b-a)+b << endl;
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

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

Compiler output:
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   cout << 2r - p << endl;
      |   ^~~~
a.cc: In function 'int main()':
a.cc:7:11: error: fixed-point types not supported in C++
    7 |   cout << 2r - p << 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 << 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: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+2*g << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |   cin >> r, g
      |              ^
      |              ;
    8 | 
    9 |   cout << r+2*g << 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	;
  int G	;
  int K ;
  0 <= R <= 4500 ;
  0 <= G <= 4500 ;
  G = ( R + K ) / 2
  
    cin >> R >> G ;
  
  cout << G - R << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'cin'
   10 |   G = ( R + K ) / 2
      |                    ^
      |                    ;
   11 | 
   12 |     cin >> R >> G ;
      |     ~~~
Language: C++

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

int main(){
  int R; //現在のレーティング
  int G; //目標レーティング
  
  cin >> R >> G;
  cout << G * 2 - R << lend;
}

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

#include <bits/stdc++.h>

input R, G;
output (2 * G - R);

Compiler output:
a.cc:3:1: error: 'input' does not name a type; did you mean 'int'?
    3 | input R, G;
      | ^~~~~
      | int
a.cc:4:8: error: expected constructor, destructor, or type conversion before '(' token
    4 | output (2 * G - R);
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cous' was not declared in this scope; did you mean 'cos'?
    7 |   cous << 2*G-R << endl;
      |   ^~~~
      |   cos
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:11:11: error: unable to find numeric literal operator 'operator""G'
   11 |   cout << 2G-R << endl;
      |           ^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 's' was not declared in this scope
    7 |   (r * s) / 2 = g;
      |        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before ':' token
    8 |   cout << 2 * G - 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:8:30: error: expected ';' before ':' token
    8 |   cout << (R + G) / 2 << endl:
      |                              ^
      |                              ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'coun' was not declared in this scope
    8 |   coun << (R + G) / 2 << endl:
      |   ^~~~
Language: C++

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

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

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclede; did you mean #include?
    1 | #inclede <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclede <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<2b-a<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:9: error: unable to find numeric literal operator 'operator""b'
    7 |   cout<<2b-a<<endl;
      |         ^~
a.cc:7:15: error: 'endl' was not declared in this scope
    7 |   cout<<2b-a<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclede <bits/stdc++.h>
Language: C++

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  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;
      |           ^~