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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '=' token
    5 |         int = R, G;
      |             ^
a.cc:6:12: error: 'R' was not declared in this scope
    6 |     cin >> R;
      |            ^
a.cc:7:12: error: 'G' was not declared in this scope
    7 |     cin >> G;
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '=' token
    5 |         int = R, G
      |             ^
a.cc:7:12: error: 'G' was not declared in this scope
    7 |     cin >> G;
      |            ^
a.cc:8:21: error: 'R' was not declared in this scope
    8 |     cout << 2 * G - R << endl;
      |                     ^
Language: C++

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

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

Compiler output:
a.cc:1:10: 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(){
   int a , b;
   cin >> a >> b >> ;
   cout << 2 * b - a << ;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected primary-expression before ';' token
    5 |    cin >> a >> b >> ;
      |                     ^
a.cc:6:25: error: expected primary-expression before ';' token
    6 |    cout << 2 * b - a << ;
      |                         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected primary-expression before ';' token
    5 |    cin >> a >> b >> ;
      |                     ^
a.cc:6:25: error: expected primary-expression before ';' token
    6 |    cout << 2 * b - a << ;
      |                         ^
a.cc:6:26: error: expected '}' at end of input
    6 |    cout << 2 * b - a << ;
      |                          ^
a.cc:3:12: note: to match this '{'
    3 |  int main(){
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before ';' token
    6 |   cin >> a >> b >>;
      |                   ^
a.cc:8:28: error: expected '}' at end of input
    8 |   cout << 2 * b - a <<endl;
      |                            ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

int main() {

  int p, r, g;

  cin >> r >> g; // 10
  cout << 2g - r << endl; // 10
}


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; // 10
      |           ^~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>M>>G;
      |   ^~~
a.cc:8:11: error: 'G' was not declared in this scope
    8 |   cout<<2*G-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:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C++

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

int main() {

  int R;
  int G
  
  cin >> R;
  cin >> G;

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


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

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

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

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

#include <iostream>
using namespace std;

int main() {

    int r,g;
    cin >> r >> g;

    cout << 2*g-r cin<< endl;
}

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

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


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

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


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

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

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

	

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '}' token
    7 |   cout << 2 * g - 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:5:7: error: expected unqualified-id before '=' token
    5 |   int = a,b;
      |       ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b;
      |           ^
Language: C++

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

int main(){
  int R,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 <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int R;
    int G;

    cin>>R;
    cin>>G;
    
    int G2=G*2;
    cout<<G2-R;

	return 0;
}

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

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int R;
    int G;

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

	return 0;
}

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

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int R,G;

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

	return 0;
}

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

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int R,G;

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

	return 0;
}


Compiler output:
a.cc:2:10: fatal error: conio.h: No such file or directory
    2 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
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: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;
  cin >> B;
  cout << (B-A)*2+A << endl

}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before '}' token
    9 |   cout << (B-A)*2+A << endl
      |                            ^
      |                            ;
   10 | 
   11 | }
      | ~
Language: C++

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

int main() {
	int R, G;

	cin >> R;
	cin >> G;

	cout << 2G - R;
}

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

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

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

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

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



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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before ';' token
    7 |   cout << 2 * G - R << ; endl
      |                        ^
a.cc:7:30: error: expected ';' before '}' token
    7 |   cout << 2 * G - R << ; endl
      |                              ^
      |                              ;
    8 | }
      | ~                             
a.cc:8:1: error: statement cannot resolve address of overloaded function
    8 | }
      | ^
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
      |           ^~
a.cc:7:20: error: expected primary-expression before ';' token
    7 |   cout << 2G - R <<; endl
      |                    ^
a.cc:7:26: error: expected ';' before '}' token
    7 |   cout << 2G - R <<; endl
      |                          ^
      |                          ;
    8 | }
      | ~                         
a.cc:8:1: error: statement cannot resolve address of overloaded function
    8 | }
      | ^
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:8:14: error: unable to find numeric literal operator 'operator""g'
    8 |       cout <<2g-r;
      |              ^~
Language: C++

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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '==' token
    5 |   int R == 0, G == 0;
      |         ^~
a.cc:6:12: error: expected initializer before '==' token
    6 |   double P == 0.0;
      |            ^~
a.cc:7:10: error: 'R' was not declared in this scope
    7 |   cin >> R >> G;
      |          ^
a.cc:7:15: error: 'G' was not declared in this scope
    7 |   cin >> R >> G;
      |               ^
a.cc:8:3: error: 'P' was not declared in this scope
    8 |   P = (R+G)/2;
      |   ^
Language: C++

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

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

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

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

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

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: '\U0000ff082G' was not declared in this scope
    7 |   cout << （2G-R） << endl;
      |           ^~~~
a.cc:7:16: error: 'R\U0000ff09' was not declared in this scope
    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 a ;
  int b ;
  cin >> R >> G ;
  cout << 2G - R = b << endl;
  
  // ここにプログラムを追記
}

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

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

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

int main() {
  int n_score, e_score, ave;
  cin >> n_score >> ave;
  e_score = ave * 2 - n_score
  cout << e_score << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before 'cout'
    7 |   e_score = ave * 2 - n_score
      |                              ^
      |                              ;
    8 |   cout << e_score << endl;
      |   ~~~~
Language: C++

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

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

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

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

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

int main(){
int R, G;
  
  cin >> R >> G;
  cout << 2*G-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: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 << 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:20: 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 <iostream>
int main(){int r,g;std:cin>>r,g;std::cout << 2*g-r;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:24: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | int main(){int r,g;std:cin>>r,g;std::cout << 2*g-r;}
      |                        ^~~
      |                        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
      |                  ^~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc:7:11: error: extended character − is not valid in an identifier
    7 | cout <<2G − R<<endl;
      |           ^
a.cc: In function 'int main()':
a.cc:7:8: 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:8: 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;
  0 <= R <= 4500;
  0 <= G <= 4500;
  
  cin >> R;
  cout << 2G - R << endl; 
}

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'Ccout' was not declared in this scope
    7 |   Ccout << 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:5:9: error: expected initializer before '<<' token
    5 |   int r << g;
      |         ^~
a.cc:6:10: error: 'r' was not declared in this scope
    6 |   cin >> r >> g;
      |          ^
a.cc:6:15: error: 'g' was not declared in this scope
    6 |   cin >> r >> g;
      |               ^
Language: C++

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

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


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

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'cout'
    8 |   M = (R + G) / 2
      |                  ^
      |                  ;
    9 |   cout <<  M << endl;
      |   ~~~~
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:5:7: error: extended character 、 is not valid in an identifier
    5 |   int a、b;
      |       ^
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >>b;
      |          ^
a.cc:6:14: 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 = 0, G = 0;
  cin >> R >> G;
  while(R<0 || R>4500 || G<0 || G>4500){
    cout << ”please confirm input” << endl;
    cin >> R >> G;
  }
  cout << 2 * G - R << endl;
}


Compiler output:
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 |     cout << ”please confirm input” << endl;
      |             ^
a.cc:8:29: error: extended character ” is not valid in an identifier
    8 |     cout << ”please confirm input” << endl;
      |                             ^
a.cc: In function 'int main()':
a.cc:8:13: error: '\U0000201dplease' was not declared in this scope
    8 |     cout << ”please confirm input” << endl;
      |             ^~~~~~~
Language: C++

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

int main() {
  cin >> R >> G;
  while(R<0 || R>4500 || G<0 || G>4500){
    cout << ”please confirm input” << endl;
    cin >> R >> G;
  }
  cout << 2 * G - R << endl;
}


Compiler output:
a.cc:7:13: error: extended character ” is not valid in an identifier
    7 |     cout << ”please confirm input” << endl;
      |             ^
a.cc:7:29: error: extended character ” is not valid in an identifier
    7 |     cout << ”please confirm input” << endl;
      |                             ^
a.cc: In function 'int main()':
a.cc:5:10: error: 'R' was not declared in this scope
    5 |   cin >> R >> G;
      |          ^
a.cc:5:15: error: 'G' was not declared in this scope
    5 |   cin >> R >> G;
      |               ^
a.cc:7:13: error: '\U0000201dplease' was not declared in this scope
    7 |     cout << ”please confirm input” << endl;
      |             ^~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

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

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

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

object Main{
  def main(args: Array[String]){
    val input=io.Source.stdin.getLines().mkString("\n")
    println(solve(input).trim())
  }

  def solve(input:String):String={
    val Array(r,g)=input.split(" ").map(_.toInt)
    (2*g-r).toString
  }
}


Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main{
      | ^~~~~~
Language: C++

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

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

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

#include<iostream>
using namespace std;
int main(){
  int r,g,;
  cin>>r>>g;
  cout<<g*2-r<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected unqualified-id before ';' token
    4 |   int r,g,;
      |           ^
Language: C++

#include<iostream>
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:4:11: error: expected unqualified-id before ';' token
    4 |   int r,g,;
      |           ^
Language: C++

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

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

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

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


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

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

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

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


import java.util.*;
public class  Scratch {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
       int a = sc.nextInt();
       int b = sc.nextInt();
       System.out.println(2*b-a);
    }

}








Compiler output:
Main.java:3: error: class Scratch is public, should be declared in a file named Scratch.java
public class  Scratch {
       ^
1 error
Language: Java

import java.util.*;
public class  Scratch {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        double a  =sc.nextDouble();
        double b = sc.nextDouble();
        System.out.println((a+b)/2);
    }

}





Compiler output:
Main.java:2: error: class Scratch is public, should be declared in a file named Scratch.java
public class  Scratch {
       ^
1 error
Language: Java

import java.util.*;
public class  Scratch {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        System.out.println((n+a)/2);
       
    }

    public static boolean prime(int n) {
        if (n <= 1) return false;
        if (n == 2) return true;
        if (n % 2 == 0) return false;
        int m = (int) Math.sqrt(n);
        for (int i = 3; i <= m; i += 2) {
            if (n % i == 0) return false;
        }
        return true;
    }

    public boolean[] sieve(int n) {
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        int m = (int) Math.sqrt(n);
        for (int i = 2; i <= m; i++)
            if (prime[i])
                for (int j = i * i; i <= n; j += i) {
                    prime[j] = false;
                }
        return prime;
    }

    public static int _gcd(int a, int b) {
     if (b==0)return a;
     return _gcd(b,a%b);
    }
    public static int _LCM(int a,int b){
        return a*b/_gcd(a,b);
    }
    public  static  int toDecimal(int n,int b){
        int multiplier = 1;
        int result=0;
        while (n>0){
            result+=n%(10*multiplier);
            multiplier=b;
            n/=10;
        }
        return result;
    }
    public static List toBinary(int n){
        List<Integer>view = new ArrayList<>();
        int multiplier=2;
        while (n>0){
            view.add(n%2);
            n/=2;
        }
        return view;
    }
}










Compiler output:
Main.java:2: error: class Scratch is public, should be declared in a file named Scratch.java
public class  Scratch {
       ^
1 error
Language: C++

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

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

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

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

Compiler output:
a.cc:7:18: error: extended character – is not valid in an identifier
    7 |   cout << (2 * G – R) = b endl;
      |                  ^
a.cc: In function 'int main()':
a.cc:7:17: error: expected ')' before '\U00002013'
    7 |   cout << (2 * G – R) = b endl;
      |           ~     ^~
      |                 )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int')
    7 |   cout << (a + c) / 2 = b 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,
                 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 ;
  cin >> r\n;
  cin >> g;
  cout << g*2 - r << endl;
}


Compiler output:
a.cc:6:11: error: stray '\' in program
    6 |   cin >> r\n;
      |           ^
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'n'
    6 |   cin >> r\n;
      |           ^~
      |           ;
Language: C++

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

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

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'space'
    2 | using space std;
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << x << 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:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << x << 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>

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << x << 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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout << x << 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>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

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

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

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

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


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

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

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

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

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


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

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

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

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

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

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

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

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: invalid suffix "b" on integer constant
    5 | printf("%d\n",2b-a);
      |               ^~
Language: C++

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

int main{
  double a, b;
  cin >> a >> b;
  cout << (a+b)/2 << 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 a, b;
      |   ^~~~~~
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 >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << (a+b)/2 << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected ';' before ')' token
    9 |         for (int i=0; i<N, i++) {
      |                               ^
      |                               ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'k' was not declared in this scope
   11 |                 l = l + k;
      |                         ^