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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int')
    8 |   cout << 2 * G - R = B;
      |                       ^
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

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

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


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 = B;
      |           ^~
Language: C++

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

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


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

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

int main() {
  int R,G,B;
  cin >> R;
  cin >> G;
  cout << 2G - R = B << 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 = B << endl;
      |           ^~
a.cc:8:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << 2G - R = B << endl;
      |                    ~~^~~~~~~
Language: C++

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

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


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

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

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


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

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

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

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


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

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

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


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

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

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


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

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

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


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

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

  


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

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

  


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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'cin'
    7 |   cin >> G
      |           ^
      |           ;
    8 |   cin >> R;
      |   ~~~      
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;
  // ここにプログラムを追記
  
  //高橋君は, 現在のレーティングがRで, 次のコンテストでレーティングをちょうどG
  //にしたいと思っています。そのとき, 高橋君が取るべきパフォーマンスを求めなさい。


}

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;

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

Compiler output:
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int R,G;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:12: note: to match this '{'
    4 | double name{
      |            ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>R>>G;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout<<2*G-R<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int before_rate;
  int current_rate;
  double rating;
  cin >> before_rate >> current_rate ;
  rating = (begore_rate + current_rate) / 2;
  cout << rating << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'begore_rate' was not declared in this scope; did you mean 'before_rate'?
    9 |   rating = (begore_rate + current_rate) / 2;
      |             ^~~~~~~~~~~
      |             before_rate
Language: C++

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

int main() {
  int before_rate;
  int current_rate;
  cin >> before_rate >> current_rate ;
  cout << (begore_rate + current_rate) / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'begore_rate' was not declared in this scope; did you mean 'before_rate'?
    8 |   cout << (begore_rate + current_rate) / 2 << endl;
      |            ^~~~~~~~~~~
      |            before_rate
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;
      |           ^~
a.cc:9:14: error: 'r' was not declared in this scope
    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: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,x;
  cin >> R >> G;
  x=2G-R;
  cout << x << endl;
}

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

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


}

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

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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected initializer before '<=' token
    5 |   double R,G<=4500;
      |             ^~
a.cc:6:11: error: 'G' was not declared in this scope
    6 |   cin>>R>>G;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: found ':' in nested-name-specifier, expected '::'
    6 |   int r2:
      |         ^
      |         ::
a.cc:6:7: error: 'r2' has not been declared
    6 |   int r2:
      |       ^~
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> r >> g;
      |       ^~
a.cc:8:3: error: 'r2' was not declared in this scope; did you mean 'r'?
    8 |   r2 = (g * 2) -r;
      |   ^~
      |   r
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: found ':' in nested-name-specifier, expected '::'
    6 |   double r2:
      |            ^
      |            ::
a.cc:6:10: error: 'r2' has not been declared
    6 |   double r2:
      |          ^~
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> r >> g;
      |       ^~
a.cc:8:3: error: 'r2' was not declared in this scope; did you mean 'r'?
    8 |   r2 = (g * 2) -r;
      |   ^~
      |   r
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> R;
      |   ^~~
      |   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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << ans << 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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

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

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

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

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

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

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


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

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


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


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

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

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

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

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

#include <iostream>
 
int main() {
  int current_rating, next_performance, next_rating;
  std::cin >> current_rating, next_performance;
  int next_rating = next_performance * 2 - current_rating;
  std::cout << next_rating << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: redeclaration of 'int next_rating'
    6 |   int next_rating = next_performance * 2 - current_rating;
      |       ^~~~~~~~~~~
a.cc:4:41: note: 'int next_rating' previously declared here
    4 |   int current_rating, next_performance, next_rating;
      |                                         ^~~~~~~~~~~
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:7:18: error: expected ';' before 'endl'
    7 |   cout << (G+R)/2 endl;
      |                  ^~~~~
      |                  ;
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <set>
#include <stack>
#include <queue>
#include <cstring>
#include <cstdio>
#include <bits/stdc++.h>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
typedef pair<string,int>pr;
int main()
{
    double r g;
    cin>>r>>g;
    cout<<2*g-r<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected initializer before 'g'
   19 |     double r g;
      |              ^
a.cc:20:10: error: 'r' was not declared in this scope; did you mean 'pr'?
   20 |     cin>>r>>g;
      |          ^
      |          pr
a.cc:20:13: error: 'g' was not declared in this scope
   20 |     cin>>r>>g;
      |             ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <set>
#include <stack>
#include <queue>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
typedef pair<string,int>pr;
int main()
{
    double r g;
    cin>>r>>g;
    cout<<2*g-r<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: expected initializer before 'g'
   18 |     double r g;
      |              ^
a.cc:19:10: error: 'r' was not declared in this scope; did you mean 'pr'?
   19 |     cin>>r>>g;
      |          ^
      |          pr
a.cc:19:13: error: 'g' was not declared in this scope
   19 |     cin>>r>>g;
      |             ^
Language: C

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <set>
#include <stack>
#include <queue>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
typedef pair<string,int>pr;
int main()
{
    double r g;
    cin>>r>>g;
    cout<<2*g-r<<endl;
    return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before 'b'
    5 |         int a b c;
      |               ^
a.cc:6:12: error: 'a' was not declared in this scope
    6 |         if(a+b/2==c)
      |            ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |         if(a+b/2==c)
      |              ^
a.cc:6:19: error: 'c' was not declared in this scope
    6 |         if(a+b/2==c)
      |                   ^
Language: C

#include <iostream>
#include<stdio.h>
int main()
{
	int r,g;
	int y;
	while(scanf("%d %d",&r,&g)!=EOF) 
	{
		y=2*g-r;
		printf("%d\n",y);
	}
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'G' was not declared in this scope
    7 |   cout<<2*G-R;
      |           ^
a.cc:7:13: error: 'R' was not declared in this scope
    7 |   cout<<2*G-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:7:28: error: expected ';' before '}' token
    7 |   cout << G * 2 - R << endl
      |                            ^
      |                            ;
    8 | }
      | ~
Language: C++

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

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

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define Vd vector<double>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b?gcd(b,a%b):a;} //最小公倍数

// デフォルト変数定義
int n,m,a,b,c,d,x,y,z;
string s,t;
//

signed main() {
  RAPID;
  INT(a,b);
  OUT(2*b-a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:3: error: 'INT' was not declared in this scope; did you mean 'INF'?
   58 |   INT(a,b);
      |   ^~~
      |   INF
Language: C++

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

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


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

#incldue <bits/stdc++.h>

using namespace std;

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

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

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

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

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

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

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 double rating, lastrating;
int main{
  
  
  cin >> rating >> lastrating;
  cout << 2 * lastrating - rating << endl;
  return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:7:30: error: expected '}' before ';' token
    7 |   cin >> rating >> lastrating;
      |                              ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:17: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    7 |   cin >> rating >> lastrating;
      |   ~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 2 * lastrating - rating << endl;
      |   ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main{
  double rating, lastrating;
  
  cin >> rating >> lastrating;
  cout << 2 * lastrating - rating << endl;
  return 0;
}

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 'double'
    5 |   double rating, lastrating;
      |   ^~~~~~
a.cc:5:3: error: expected '}' before 'double'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> rating >> lastrating;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 2 * lastrating - rating << endl;
      |   ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

int main{
  double rating, lastrating;
  int paf;
  
  cin >> rating >> lastrating;
  cout << 2 * lastrating - rating << endl;
  return 0;
}

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 'double'
    5 |   double rating, lastrating;
      |   ^~~~~~
a.cc:5:3: error: expected '}' before 'double'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> rating >> lastrating;
      |   ^~~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout << 2 * lastrating - rating << endl;
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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

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


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

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

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


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

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

int main() {
  // 一年の秒数
  int R, G;
  cin >> R >> G;
  cout << 2*G - R; << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression 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<<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:14: error: expected primary-expression 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>
uisng namespace std;

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

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> R;
      |   ^~~
      |   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 << 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:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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() {
   double X,G,R ;
  
  cin >> R >> G ; //R:現在のレーティング
  　　　　　　　　　//G:目標のレーティング
  X = 2*G-R;      //目標達成に必要な点数
  
  cout <<　X ;
}

Compiler output:
a.cc:8:3: error: extended character 　 is not valid in an identifier
    8 |   　　　　　　　　　//G:目標のレーティング
      |   ^
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:8:3: error: extended character 　 is not valid in an identifier
a.cc:11:10: error: extended character 　 is not valid in an identifier
   11 |   cout <<　X ;
      |          ^
a.cc: In function 'int main()':
a.cc:8:3: error: '\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
    8 |   　　　　　　　　　//G:目標のレーティング
      |   ^~~~~~~~~~~~~~~~~~
a.cc:11:10: error: '\U00003000X' was not declared in this scope
   11 |   cout <<　X ;
      |          ^~~
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double = R;
  int    = b;
  
  cin >> R;
  cin >> b;
  

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before '=' token
    5 |   double = R;
      |          ^
a.cc:6:10: error: expected unqualified-id before '=' token
    6 |   int    = b;
      |          ^
a.cc:8:10: error: 'R' was not declared in this scope
    8 |   cin >> R;
      |          ^
a.cc:9:10: error: 'b' was not declared in this scope
    9 |   cin >> b;
      |          ^
Language: C++

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before string constant
    5 |   int "R";
      |       ^~~
a.cc:6:7: error: expected unqualified-id before string constant
    6 |   int "G";
      |       ^~~
a.cc:7:10: error: expected unqualified-id before string constant
    7 |   double "P";
      |          ^~~
a.cc:8:10: error: 'R' was not declared in this scope
    8 |   cin >> R >> G;
      |          ^
a.cc:8:15: error: 'G' was not declared in this scope
    8 |   cin >> R >> G;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before string constant
    5 |   int "R";
      |       ^~~
a.cc:6:7: error: expected unqualified-id before string constant
    6 |   int "G";
      |       ^~~
a.cc:7:10: error: expected unqualified-id before string constant
    7 |   double "P";
      |          ^~~
a.cc:8:10: error: 'R' was not declared in this scope
    8 |   cin >> R >> G;
      |          ^
a.cc:8:15: error: 'G' was not declared in this scope
    8 |   cin >> R >> G;
      |               ^
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:9:20: error: expected primary-expression before '<<' token
    9 |   cout << 2 * G -  << endl;
      |                    ^~
Language: C++

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

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


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

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

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


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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'G'
    5 |   double 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() {
  int R G;
  cin >> R >> G;
  cout << 2 * G - 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;
      |               ^