criyle/codenet-compile-errors huggingface dataset:
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() {
  double r, g;
  cin >> r >> g;
  Cout << 2 * g - r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'Cout' 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 << 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;

#define rep(i,n) for (int i = 0; i< (n); ++i)
#define vvec(m,n) vector<vector<int>> (int(m), vector<int>(n))
#define ALL(a) (a).begin(), (a).end()

using ll = long long;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: unable to find numeric literal operator 'operator""G'
   13 |     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;
}



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: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>>R>>G;
  cout<<2*G-R<<outl;
}

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

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

int main{

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


}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int R,G;
      |         ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> R >> G;
      |         ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 2*G-R << endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int R,G;
      |         ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> R >> G;
      |         ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 2G-R << endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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


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

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

Compiler output:
Main.java:7: error: variable A might not have been initialized
    int A=2*G-A;
              ^
1 error
Language: C++

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

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

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

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

int main()
{
  int r,g;
  cin >> 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 << (r + g)/2 <<;
}


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

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

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

Compiler output:
a.cc:2:17: error: 'stg' is not a namespace-name
    2 | using namespace stg;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << (r + g)/2 <<;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:23: error: expected primary-expression before ';' token
    8 |   cout << (r + g)/2 <<;
      |                       ^
Language: C++

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

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

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

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

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

}

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

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


Compiler output:
a.cc:1:9: 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,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/stdcpp.h>
using namespace std;
int main(){
  int R,G;
  cin >> R >> G;
  cout << (R+G)/2 << endl;
}


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

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

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

nclude<iostream>
using namespace std;
int main(){
  cin>>R>>G;
  cout<<2*G-R<<endl
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<iostream>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>R>>G;
      |   ^~~
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;
      |           ^
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout<<2*G-R<<endl
      |   ^~~~
a.cc:5:16: error: 'endl' was not declared in this scope
    5 |   cout<<2*G-R<<endl
      |                ^~~~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,c;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b>>c;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<(a+b)/2<<endl
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

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

using namespace std;

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

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

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

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  double a, b;
  cin >> a >> b;
  cout << (2b - a) / 2 << endl; //なにが出力されるかわからない
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: unable to find numeric literal operator 'operator""b'
    8 |   cout << (2b - a) / 2 << endl; //なにが出力されるかわからない
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'G'
    6 |   int R G;
      |         ^
a.cc:8:8: error: 'R' was not declared in this scope
    8 |   cin>>R>>G;
      |        ^
a.cc:8:11: error: 'G' was not declared in this scope
    8 |   cin>>R>>G;
      |           ^
a.cc:10:12: error: unable to find numeric literal operator 'operator""G'
   10 |   cout <<  2G-R  << endl;
      |            ^~
Language: C++

#include<iostream>
using namespace std;
int main() {
  int R,G;
  cin >> R >> G;
  cout << 2G-R << endl;
}


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

#include<iostream>
using namespace str;
int main() {
  int R,G;
  cin >> R >> G;
  cout << 2G-R << endl;
}

Compiler output:
a.cc:2:17: error: 'str' is not a namespace-name
    2 | using namespace str;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> R >> G;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << 2G-R << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:11: error: unable to find numeric literal operator 'operator""G'
    6 |   cout << 2G-R << endl;
      |           ^~
a.cc:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << 2G-R << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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



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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'coutz' was not declared in this scope
    7 |   coutz<<G*2-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:5:10: error: found ':' in nested-name-specifier, expected '::'
    5 |   int R,G:
      |          ^
      |          ::
a.cc:5:9: 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:13: error: 'G' was not declared in this scope
    7 |   cout<< (R+G)/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:10: error: unable to find numeric literal operator 'operator""g'
    7 |   cout<< 2g-r<<endl;
      |          ^~
Language: C++

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

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

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

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

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


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

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

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

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

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

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

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

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

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


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

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

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

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

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

int main()
{
  long long a,b,point;
  cin>>a>>point;
  b=point*2-a;
  cout<<B<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'B' was not declared in this scope
    9 |   cout<<B<<endl;
      |         ^
Language: C++

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int G;
  int R;
  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:7:9: error: unable to find numeric literal operator 'operator""G'
    7 |   cout<<2G-R<<endl;
      |         ^~
Language: C++

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

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


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

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

int main() {
  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 <<;
      |           ^~
a.cc:7:20: error: expected primary-expression before ';' token
    7 |   cout << 2G - R <<;
      |                    ^
Language: C++

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

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

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

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

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




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

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

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

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

int main() {
  // ここにプログラムを追記
  int r;
  double g;
  cir>>r>>g;
  cout<<2*g-r<<endl;
}

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

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

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

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

#includ <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>C;
  B=C*2-A;
  cout<<B<<endl;
  
}


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

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


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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  input R,G;
  
  output("%d",2*G-R);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'input' was not declared in this scope; did you mean 'int'?
    5 |   input R,G;
      |   ^~~~~
      |   int
a.cc:7:17: error: 'G' was not declared in this scope
    7 |   output("%d",2*G-R);
      |                 ^
a.cc:7:19: error: 'R' was not declared in this scope
    7 |   output("%d",2*G-R);
      |                   ^
a.cc:7:3: error: 'output' was not declared in this scope
    7 |   output("%d",2*G-R);
      |   ^~~~~~
Language: C++

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = G,R;
      |       ^
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() {
  cin >> G >> R;
  cout << (G+R)/2 << endl;
}

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

#include <iosteram>

using namespace std;

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

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

#include <iostream>

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    5 |   cin >> R,G >> endl;
      |            ~~^~~~~~~
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 namespacestd;
int R,G;
int main() {
  cout<<2G-R<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<2G-R<<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:5:9: error: unable to find numeric literal operator 'operator""G'
    5 |   cout<<2G-R<<endl;
      |         ^~
a.cc:5:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<2G-R<<endl;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

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

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    double R = sc.nextInt(), G = sc.nextInt();
    System.out.println(2G - R);
  }
}


Compiler output:
Main.java:7: error: ')' or ',' expected
    System.out.println(2G - R);
                        ^
Main.java:7: error: not a statement
    System.out.println(2G - R);
                          ^
Main.java:7: error: ';' expected
    System.out.println(2G - R);
                             ^
3 errors
Language: C++

#include <bits/stdc++.h> 
input R, G;
cout << G * 2 - R << endl;

Compiler output:
a.cc:2:1: error: 'input' does not name a type; did you mean 'int'?
    2 | input R, G;
      | ^~~~~
      | int
a.cc:3:1: error: 'cout' does not name a type
    3 | cout << G * 2 - R << endl;
      | ^~~~
Language: C++

input R,G;
cout << R * 2 - G << endl;

Compiler output:
a.cc:1:1: error: 'input' does not name a type; did you mean 'int'?
    1 | input R,G;
      | ^~~~~
      | int
a.cc:2:1: error: 'cout' does not name a type
    2 | cout << R * 2 - G << endl;
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

  cout << 2g-r << endl;
  return 0;
}

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>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

  cout << 2g-r << endl;
  return 0;
}

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() {
  double mae, toru;
  cin >> mae >> last;
  
  cout << last * 2 - mae << endl;
}

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

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

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

  res = 2 * g - r

  cout << res << endl;
}


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

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

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

  res = 2 * g - r;

  cout << res << endl;
}


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

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


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

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


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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'count' was not declared in this scope; did you mean 'std::count'?
    6 |   count << 2*b - a << endl;
      |   ^~~~~
      |   std::count
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:6:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   count << 2*b - a << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

int main(){

    double R;

    double G;

    cin >> R >> G ;

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

}

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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'end1' was not declared in this scope
    9 |   cout << G * 2 - R << end1;
      |                        ^~~~
a.cc: At global scope:
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:19:24: error: 'end1' was not declared in this scope
   19 |   cout << G * 2 - R << end1;
      |                        ^~~~
Language: C++

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

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

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

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

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

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

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

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

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



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before ':' token
    7 |   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-<<endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before '}' token
    7 |   cout << G*2-R <<endl
      |                       ^
      |                       ;
    8 | }
      | ~
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:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
Language: C++

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


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




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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'R'
    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 << 2G - R << 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() {
  
  int R,G; cin>> R >> G;
 
  // 以下のコメント/* */を消して追記する
  cout << 2G - R << endl;
}

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