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:8:12: 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;
  int a = 2G - R;
  cout << a << endl;
  return 0;
}

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

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

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


}

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

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

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


}

Compiler output:
a.cc:8:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    8 | x=2R - G ;
      | ^
a.cc: In function 'int main()':
a.cc:8:3: error: fixed-point types not supported in C++
    8 | x=2R - G ;
      |   ^~
Language: C++

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

int g ;
int R ,G ;
cin >> R >> G ;
g=b-a ;
cout << g << endl ;


}

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

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

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

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <sstream>
#include <queue>
#include <deque>
#define ll long long
#define MP make_pair
#define PII pair<int, int>
#define F first
#define S second
using namespace std;
string s,ss;
int u, m, r;
int main()
{
	cin >>s>>ss;
	if (ss.size()>s.size())
	{
		cout <<"UNRESTORABLE";
		return 0;
	}
	for (int i=0;i<=s.size()-ss.size();i++)
	{
		bool fl=1;
		for (int j=0;j<ss.size();j++)
		{
			if (s[i+j]=='?')
			{
				u=u+1;
				continue;
			}
			if (s[i+j]!=ss[j])
			{
				fl=0;
				break;
			}
	    }
		if (fl)
		{
			if(u>=ss.size())
			{
				cout <<"UNRESTORABLE";
				return 0； 
			}
			for (int j=0;j<s.size();j++) if (s[j]=='?') s[j]='a';
			for (int j=0;j<ss.size();j++) if (s[i+j]=='?') s[i+j]=ss[j];
		    cout <<s;
		    return 0;
		}
	}
	cout <<"UNRESTORABLE";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:40: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   46 |                                 return 0；
      |                                        ^~~
a.cc:46:43: error: expected ';' before '}' token
   46 |                                 return 0；
      |                                           ^
      |                                           ;
   47 |                         }
      |                         ~
Language: C++

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


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected primary-expression before ';' token
   10 |   cout<<t<<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:16: error: expected ';' before 'cout'
    5 |   cin >> r >> g
      |                ^
      |                ;
    6 |   cout << 2*g - r << endl;
      |   ~~~~
Language: C++

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

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

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

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

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

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

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


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

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

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

  cin >> R;
  cin >> G;

  if (R > 0) {
    exit 1;
  }

  if (G > 4500) {
    exit 1;
  }

  if (G <= 0) {
    b = -1 * R;
  } else {
    b = 2 * G - R;
  }

  cout << b << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ';' before numeric constant
   13 |     exit 1;
      |         ^~
      |         ;
a.cc:17:9: error: expected ';' before numeric constant
   17 |     exit 1;
      |         ^~
      |         ;
Language: C++

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

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

  cin >> R;
  cin >> G;

  if (G <= 0) {
    b = -1 * R;
  } else {
    b = 2G -R;
  }

  cout << b << endl;
}



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

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

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

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

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

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

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

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

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

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

int main() {

  double R = 0;
  double G = 0;
  double a =0

  cin >> R;
  cin >> G;

  if (R < 0) {
    exit 1;
  }

  a = 2*G - R

  cout <<  << endl;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'cin'
   10 |   cin >> R;
      |   ^~~
a.cc:14:9: error: expected ';' before numeric constant
   14 |     exit 1;
      |         ^~
      |         ;
a.cc:17:14: error: expected ';' before 'cout'
   17 |   a = 2*G - R
      |              ^
      |              ;
   18 | 
   19 |   cout <<  << endl;
      |   ~~~~
Language: C++

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

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

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

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


  

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'cout'
    7 |         R = G*2+(-R)
      |                     ^
      |                     ;
    8 |         cout << 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;
  int G;
  
  cin >> R >> G >>;
 
  cout << 2*G-R << endl;
}

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

#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:12: error: expected ';' before ':' token
    7 |   cout << G:2-R << endl;
      |            ^
      |            ;
Language: C++

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: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 | using namespace std;
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:11: error: unable to find numeric literal operator 'operator""G'
    6 |   cout << 2G-R << endl;
      |           ^~
a.cc:6:19: error: 'endl' was not declared in this scope
    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 | using namespace std;
Language: C++

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:2: 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 | using namespace std;
a.cc:6:2: error: 'cout' was not declared in this scope
    6 |  cout << 2G-R << endl;
      |  ^~~~
a.cc:6:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:10: error: unable to find numeric literal operator 'operator""G'
    6 |  cout << 2G-R << endl;
      |          ^~
a.cc:6:18: 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 | using namespace std;
Language: C

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

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

}

Compiler output:
main.c: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 << G*2-R << endl;
}


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

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

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

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

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

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


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

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

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


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

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

int main() {
  // ここに追記
  int R, G;
  cout << A + B << endl;
}


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

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

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

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

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

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

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

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

}

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

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

int main() {
  int r, g;
  cin >> r, g;
  double rd = r, gd = d;
  cout << 2.0 * gd - rd << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'd' was not declared in this scope; did you mean 'gd'?
    7 |   double rd = r, gd = d;
      |                       ^
      |                       gd
Language: C++

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

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

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

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {

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

Compiler output:
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　
      | ^
a.cc: In function 'int main()':
a.cc:11:1: error: '\U00003000' was not declared in this scope
   11 | 　
      | ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {

  int R;
  int G;
  
  cin >> R >> G;
  
  cout << 2G−R << endl;
  
}

Compiler output:
a.cc:12:11: error: extended character − is not valid in an identifier
   12 |   cout << 2G−R << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:12:11: error: unable to find numeric literal operator 'operator""G\U00002212R'
   12 |   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:14: error: expected ';' before 'R'
    6 |           cin R >> G;
      |              ^~
      |              ;
Language: C++

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

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

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

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

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

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

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

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

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

#include <iostream>
using namespace std;

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

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

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

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

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

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

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


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

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

int main(){
  int a,b;
  cin >> R >> G;
  cout << 2*G - 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++

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: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 | using namespace std;
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << G*2-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:20: error: 'endl' was not declared in this scope
    6 |   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 | using namespace std;
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:18: error: expected ';' before 'endl'
    7 |   cout << (a+b)/2 endl ;
      |                  ^~~~~
      |                  ;
Language: C++

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

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

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

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

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

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

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

#include <iostream>



int aRating(int a, int b){
    return (2 * b) - a;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |         cin>>r>>g;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<aRating(r,g);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc:2:17: error: 'syd' is not a namespace-name
    2 | using namespace syd;
      |                 ^~~
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 <bits/stdc++.h>
using namespace std;

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


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

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

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

#include<iostream>
using namespace std

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

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  R = 0, G = 0;
double x;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected primary-expression before '>>' token
   10 |   cout >>  >> endl;
      |            ^~
Language: C

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

int main(){

    double R, G;

    cout << 2 * G + R << endl;
    
    return 0;
}

Compiler output:
main.c: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;
	double G;
	cin >>R>>;
    cin >>G>>;
	cout <<2*G-R<<endl;
}


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

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

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


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

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

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


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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |         int = R;
      |             ^
a.cc:7:16: error: expected unqualified-id before '=' token
    7 |         double = G;
      |                ^
a.cc:8:15: error: 'R' was not declared in this scope
    8 |         cin >>R,G >>;
      |               ^
a.cc:8:17: error: 'G' was not declared in this scope
    8 |         cin >>R,G >>;
      |                 ^
a.cc:8:21: error: expected primary-expression before ';' token
    8 |         cin >>R,G >>;
      |                     ^
a.cc:9:23: error: expected primary-expression before ';' token
    9 |         cout <<2*G-R<<;
      |                       ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'R' was not declared in this scope
    5 | cin>>R,>>G;
      |      ^
a.cc:5:8: error: expected primary-expression before '>>' token
    5 | cin>>R,>>G;
      |        ^~
a.cc:5:10: error: 'G' was not declared in this scope
    5 | cin>>R,>>G;
      |          ^
Language: C++

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

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

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

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

import java.util.Scanner;

public class Main {

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

}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int r = sc.nextDouble();
		                     ^
1 error
Language: C++

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: found ':' in nested-name-specifier, expected '::'
    6 |   double G:
      |           ^
      |           ::
a.cc:6:10: error: 'G' has not been declared
    6 |   double G:
      |          ^
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> R >> G;
      |       ^~
a.cc:8:11: error: 'G' was not declared in this scope
    8 |   cout << G * 2 - R << engl;
      |           ^
a.cc:8:24: error: 'engl' was not declared in this scope
    8 |   cout << G * 2 - R << engl;
      |                        ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: found ':' in nested-name-specifier, expected '::'
    6 |   int G:
      |        ^
      |        ::
a.cc:6:7: error: 'G' has not been declared
    6 |   int G:
      |       ^
a.cc:7:7: error: qualified-id in declaration before '>>' token
    7 |   cin >> R >> G;
      |       ^~
a.cc:8:11: error: 'G' was not declared in this scope
    8 |   cout << G * 2 - R << engl;
      |           ^
a.cc:8:24: error: 'engl' was not declared in this scope
    8 |   cout << G * 2 - R << engl;
      |                        ^~~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    6 |   cin >> R, G >> endl;
      |             ~~^~~~~~~
a.cc:7:29: error: expected '}' at end of input
    7 |   cout << (R + G)/ 2 <<endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before ';' token
    6 |   cin >> R, G >>;
      |                 ^
a.cc:7:29: error: expected '}' at end of input
    7 |   cout << (R + G)/ 2 <<endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main() {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:16: error: 'R' was not declared in this scope
    5 |         cin >> R >> G;
      |                ^
a.cc:5:21: error: 'G' was not declared in this scope
    5 |         cin >> R >> G;
      |                     ^
Language: C++

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

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

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

import java.util.*;
public class Solution{
  public static void main(String [] args){
    Scanner sc=new Scanner(System.in);
    int x=sc.nextInt();
    int y=sc.nextInt();
    double res=(x+y)/2;
    System.out.println(res);
  }
}


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

import java.util.*;
public class solution{
  public static void main(String [] args){
    Scanner sc=new Scanner(System.in);
    int x=sc.nextInt();
    int y=sc.nextInt();
    double res=(x+y)/2;
    System.out.println(res);
  }
}


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

import java.util.*;
public class solution{
  public static void main(String [] args){
    Scanner sc=new Scanner(Syster.in);
    int x=sc.nextInt();
    int y=sc.nextInt();
    double res=(x+y)/2;
    System.out.println(res);
  }
}


Compiler output:
Main.java:2: error: class solution is public, should be declared in a file named solution.java
public class solution{
       ^
Main.java:4: error: cannot find symbol
    Scanner sc=new Scanner(Syster.in);
                           ^
  symbol:   variable Syster
  location: class solution
2 errors
Language: C++

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　cin >> G;
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000cin' was not declared in this scope
    7 | 　cin >> G;
      | ^~~~~
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<<48-a<<endl;
}


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

#include<bins/stdc++.h>

using namespace std;

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


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

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

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

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