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

#include<bits/stdc++.h>
using namespace std;
int main(){
string s,t;
int m=-1;
cin>>s>>t;
if(s.size()<t.size()){
cout <<“UNRESTORABLE”<<endless;
}
else{
for(int i=0;i<=s.size()-t.size();i++){
  bool f=true;
  for(int j=0;j<t.size();j++){
    if(s.at(i+j)==t.at(j)||s.at(i+j)=='?')continue;
    else{
      f=false;
      break;
    }
  }
  if(f){
    m=i;
    break;
  }
}
if(m==-1){
cout<<"UNRESTORABLE"<<endl;
}
else{
for(int i=m;i<t.size()+m;i++){
s.at(i)=t.at(i-m);
}
for(int i=0;i<s.size();i++){
if(s.at(i)=='?'){
s.at(i)='a';
}
}
cout<<s<<endl;
}
}
}

Compiler output:
a.cc:8:8: error: extended character “ is not valid in an identifier
    8 | cout <<“UNRESTORABLE”<<endless;
      |        ^
a.cc:8:8: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:8: error: '\U0000201cUNRESTORABLE\U0000201d' was not declared in this scope
    8 | cout <<“UNRESTORABLE”<<endless;
      |        ^~~~~~~~~~~~~~
a.cc:8:24: error: 'endless' was not declared in this scope
    8 | cout <<“UNRESTORABLE”<<endless;
      |                        ^~~~~~~
Language: C++

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

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

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

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

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


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

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

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

Compiler output:
a.cc:7:14: error: extended character 　 is not valid in an identifier
    7 |   cout << R -　2 * G << endl;
      |              ^
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space sted;
      |       ^~~~
a.cc: In function 'int mane()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> R >> G ;
      |     ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << R -　2 * G << endl;
      |   ^~~~
      |   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:14: error: '\U000030002' was not declared in this scope
    7 |   cout << R -　2 * G << endl;
      |              ^~~
a.cc:7:20: error: 'G' was not declared in this scope
    7 |   cout << R -　2 * G << endl;
      |                    ^
a.cc:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << R -　2 * G << 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)
      |     ^~~~
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include <bits/stdctt,h>
using name space sted;

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

Compiler output:
a.cc:1:10: fatal error: bits/stdctt,h: No such file or directory
    1 | #include <bits/stdctt,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 ()
 {
  double R;
  double x;
  
  cin >> R >> x ;
  cout << 2*G - R <<endl;
  
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'G' was not declared in this scope
   10 |   cout << 2*G - 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 str;

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


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

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

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

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

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

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

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

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


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

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

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


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

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

int main(){
	int a,b;
  double ave;
  ave = (a + b) /2;
  
  cin >> a >> b;
  
  cout << ave << endl;
  
  

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

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

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

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

#include <iostream>
using namespace std;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <math.h>
using namespace std;

typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<long long> vll;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<vector<bool>> vvb;
typedef vector<vector<int>> vvi;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define all(a) a.begin(),a.end()

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

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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""G'
    7 |   cout << 2G-R << endl+
      |           ^~
a.cc:8:3: error: expected primary-expression before 'return'
    8 |   return 0;
      |   ^~~~~~
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:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
	int want, pre;
	double calc;
	cin >> want >> pre;
	calc = 2 * want - pre
	cout << calc << endl;

}

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inslude; did you mean #include?
    1 | #inslude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:3:1: error: expected identifier before 'int'
    3 | int main() {
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | int main() {
      | ~~~             
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>R>>G;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<2*G-R<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<2*G-R<<endl;
      |                ^~~~
Language: C++

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


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inslude; did you mean #include?
    1 | #inslude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:3:3: error: expected identifier before 'int'
    3 |   int main() {
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 |   int main() {
      |   ~~~           
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>R>>G;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<2*G-R<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<2*G-R<<endl;
      |                ^~~~
Language: C++

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

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

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


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

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

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


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

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

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


Compiler output:
a.cc:4:1: error: expected '{' before 'int'
    4 | int main(){
      | ^~~
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:7: error: unable to find numeric literal operator 'operator""G'
    7 |   x = 2G - R;
      |       ^~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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>
namespace std;

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

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> R >> 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:7: error: unable to find numeric literal operator 'operator""G'
    7 |   x = 2G - R;
      |       ^~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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:7:9: error: unable to find numeric literal operator 'operator""G'
    7 |   cout<<2G-R<<endl;
      |         ^~
Language: C++

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

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

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

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

int main() {
  int R　, G;

  cin >> R >> G;

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


Compiler output:
a.cc:5:7: error: extended character 　 is not valid in an identifier
    5 |   int R　, G;
      |       ^
a.cc: In function 'int main()':
a.cc:7:10: error: 'R' was not declared in this scope
    7 |   cin >> R >> G;
      |          ^
Language: C++

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

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

}



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

#include <bits/stdc++.h>

int main() {
  int R,G = 0;
  namespace std::cin<<R;
  namespace std::cin<<G;
  namespace std::cout>>2*G - R;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected '=' before '::' token
    5 |   namespace std::cin<<R;
      |                ^~
a.cc:5:18: error: 'cin' is not a namespace-name; did you mean 'sin'?
    5 |   namespace std::cin<<R;
      |                  ^~~
      |                  sin
a.cc:5:21: error: expected ';' before '<<' token
    5 |   namespace std::cin<<R;
      |                     ^~
      |                     ;
a.cc:5:21: error: expected primary-expression before '<<' token
    5 |   namespace std::cin<<R;
      |                     ^~
a.cc:6:16: error: expected '=' before '::' token
    6 |   namespace std::cin<<G;
      |                ^~
a.cc:6:18: error: 'cin' is not a namespace-name; did you mean 'sin'?
    6 |   namespace std::cin<<G;
      |                  ^~~
      |                  sin
a.cc:6:21: error: expected ';' before '<<' token
    6 |   namespace std::cin<<G;
      |                     ^~
      |                     ;
a.cc:6:21: error: expected primary-expression before '<<' token
    6 |   namespace std::cin<<G;
      |                     ^~
a.cc:7:16: error: expected '=' before '::' token
    7 |   namespace std::cout>>2*G - R;
      |                ^~
a.cc:7:18: error: 'cout' is not a namespace-name
    7 |   namespace std::cout>>2*G - R;
      |                  ^~~~
a.cc:7:22: error: expected ';' before '>>' token
    7 |   namespace std::cout>>2*G - R;
      |                      ^~
      |                      ;
a.cc:7:22: error: expected primary-expression before '>>' token
    7 |   namespace std::cout>>2*G - R;
      |                      ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = R,G;
      |       ^
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;
      |               ^
Language: C++

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

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

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

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

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

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

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


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

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

int main(void){
  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 << g * 2 - r << endl;
}


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find numeric literal operator 'operator""G'
    7 |   P = 2G - R;
      |       ^~
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:7:20: error: stray '\' in program
    7 |  cout << ( R + G ) \ 2 << endl;
      |                    ^
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before numeric constant
    7 |  cout << ( R + G ) \ 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:7:17: error: stray '\' in program
    7 |   cout << R + G \ 2 << endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before numeric constant
    7 |   cout << R + G \ 2 << 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:12: 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 asis tobe;
  cin >> asis >> tobe;
  cout << tobe * 2 - asis << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before 'tobe'
    5 |   double asis tobe;
      |               ^~~~
a.cc:6:10: error: 'asis' was not declared in this scope; did you mean 'asin'?
    6 |   cin >> asis >> tobe;
      |          ^~~~
      |          asin
a.cc:6:18: error: 'tobe' was not declared in this scope
    6 |   cin >> asis >> tobe;
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> now >> next;
      |   ^~~
a.cc:8:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator*'
    8 |   cout << 2 * next - now << endl;
      |           ~~^~~~~~
Language: C++

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

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

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

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

int main() {
  int R, M;
  cin >> R >> M;
  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:5:11: error: expected initializer before 'G'
    5 |  double R G;
      |           ^
a.cc:6:9: error: 'R' was not declared in this scope
    6 |  cin >> R >> G;
      |         ^
a.cc:6:14: error: 'G' was not declared in this scope
    6 |  cin >> R >> G;
      |              ^
a.cc:7:10: error: unable to find numeric literal operator 'operator""G'
    7 |  cout << 2G-R << endl ;
      |          ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn R,G;
      |   ^~~
      |   int
a.cc:6:10: error: 'R' was not declared in this scope
    6 |   cin >> R >> G;
      |          ^
a.cc:6:15: error: 'G' was not declared in this scope
    6 |   cin >> R >> G;
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'ebdl' was not declared in this scope
   10 |   cout<<2*G-R<<ebdl;
      |                ^~~~
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:4:10: error: expected initializer before 'G'
    4 |    int R G;
      |          ^
a.cc:5:11: error: 'R' was not declared in this scope
    5 |    cin >> R,G;
      |           ^
a.cc:5:13: error: 'G' was not declared in this scope
    5 |    cin >> R,G;
      |             ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected '}' at end of input
    9 |   cout << 2 * obj - cur << endl;
      |                                 ^
a.cc:4:11: note: to match this '{'
    4 | int 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 <bits/stdc++.h>
using namespace std;

//2G-R=X

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

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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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;
  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 >> m >> g;
  cout << 2*g-m << endl;
}


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

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

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

#include<iostream>
#include<string>
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 R,G;
    cin>>R>>G
    cout<<2*G-R>>endl;
}


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

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

int main(){
  int a,b;
  cin >> a >> b;
  //a今のレーティング
  //b平均( (a+c)/2=b )
  //c取るべき点数
  cout << b*2 - a << endl;
}


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

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

int main(){
  int a,b;
  cin >> a,b;
  //a今のレーティング
  //b平均( (a+c)/2=b )
  //c取るべき点数
  cout << b*2 - a << endl;
}

Compiler output:
a.cc:1:10: fatal error: stdc++.h: No such file or directory
    1 | #include <stdc++.h>
      |          ^~~~~~~~~~
compilation terminated.
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:6:25: 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:7:11: error: extended character 　 is not valid in an identifier
    7 |   cout << 2　*　G　- R <<endl;
      |           ^
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |   cout << 2　*　G　- R <<endl;
      |               ^
a.cc:7:15: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find numeric literal operator 'operator""\U00003000'
    7 |   cout << 2　*　G　- R <<endl;
      |           ^~~
a.cc:7:15: error: '\U00003000G\U00003000' was not declared in this scope
    7 |   cout << 2　*　G　- R <<endl;
      |               ^~~~~
Language: C++

#include < bits/stdc++.h>

using namespace std;

int main(){
  int r, g;
  cin >> r >> g;
  cout << (g - r) * 2 + 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 <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:10: error: unable to find numeric literal operator 'operator""G'
    7 |   cout<< 2G-R << endl;
      |          ^~
Language: C++

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

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

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

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

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

#include<iostream>
#include <algorithm>
#include <string>
#include<math.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
int main() {
    int a, b;
    cin >> a >> b;
    cout << b * 2 - a << endl;
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include <algorithm>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:4: error: illegal character: '#'
#include<math.h>
^
Main.java:5: error: illegal character: '#'
#define rep(i,n)for(int i=0;i<n;i++)
^
Main.java:5: error: class, interface, enum, or record expected
#define rep(i,n)for(int i=0;i<n;i++)
                            ^
Main.java:5: error: class, interface, enum, or record expected
#define rep(i,n)for(int i=0;i<n;i++)
                                ^
Main.java:9: error: not a statement
    cin >> a >> b;
             ^
Main.java:10: error: not a statement
    cout << b * 2 - a << endl;
                      ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
10 errors
Language: C++

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

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

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

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

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

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

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

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

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

int main()
{
	double r, g, x ;
	double a = 2;
	
	cin >> r >> x;
	g = (r + x) / a;

	cout << g << endl;
}

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

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

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

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

Compiler output:
a.cc: In function 'int name()':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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


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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: 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:10: 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:10: 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;
  cin >> G;
    
    cout << (G-M)+G << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: declaration does not declare anything [-fpermissive]
    5 |   int;  R,  G;
      |   ^~~
a.cc:5:9: error: 'R' was not declared in this scope
    5 |   int;  R,  G;
      |         ^
a.cc:5:13: error: 'G' was not declared in this scope
    5 |   int;  R,  G;
      |             ^
Language: C++

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

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

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

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

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

def solve():
    length, max_swap = map(int, input().split())
    N = input()
    chars = []
    for e in N:
        chars.append(e)
    chars = sorted(chars)
    if length <= max_swap:
        print(''.join(chars) + '\n')
    temp = 0
    ans = []
    for i in range(length):
        for j in range(length):
            if chars[j] is not None:
                temp = cnt_diff(j, ans, chars, N)
                if temp <= max_swap:
                    ans.append(chars[j])
                    chars[j] = None
                    break
    print(''.join(ans) + '\n')

from collections import Counter
def cnt_diff(j, ans, chars, N):
    ans_sofar = ans + [chars[j]]
    diff1 = sum([ans_sofar[i] != N[i] for i in range(len(ans_sofar))])
    remains = Counter([e for i, e in enumerate(chars) if e is not None and i != j])
    N_remain = Counter(N[len(ans_sofar):])
    diff2 = sum([abs(e) for e in (N_remain - remains).values()])
    return diff1 + diff2
solve()


Compiler output:
a.cc:9:15: error: empty character constant
    9 |         print(''.join(chars) + '\n')
      |               ^~
a.cc:20:11: error: empty character constant
   20 |     print(''.join(ans) + '\n')
      |           ^~
a.cc:1:1: error: 'def' does not name a type
    1 | def solve():
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | double main() {
      | ^~~~~~
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;
      |           ^~