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

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

int main(){
  int W;
  cin>>W;
  cout<<W*32<<endl:
  return 0;
}  
  



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
    2 | using nameplae 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>>W;
      |   ^~~
      |   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<<W*32<<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:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<W*32<<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 nameplae std;

int main(){
  int W;
  cin>>W*32;
  return 0;
}  
  



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
    2 | using nameplae 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>>W*32;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

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

int main(){
  int W;
  cin>>W;
  cout<<W*32<<endl;
  return 0;
}
  



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace 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>>W;
      |   ^~~
      |   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<<W*32<<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:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<W*32<<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 namespase std;


int main(){
  int W;
  cin>> W;
  cout<< W*32 <<endl;
  return 0
 }



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase 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>> W;
      |   ^~~
      |   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<< W*32 <<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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<< W*32 <<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:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 |  }
      |  ~
Language: C++

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

int main(){
  int W;
  cin>>W;
  cout<<W*32<<endl;
  return 0
 }



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase 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>>W;
      |   ^~~
      |   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<<W*32<<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:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<W*32<<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:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 |  }
      |  ~
Language: C++

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

int main(){
  int W;
  cin>>W;
  cout<<W*32<<endl;
  return 0
 }



Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 |  }
      |  ~
Language: C++

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

int main(){

  int H;
  if(-i000<=H&&H<0){
  }else if(H=0){
  }else if(0<H&&H<=1000){
  }else
  return 0;
 }




Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
    7 |   if(-i000<=H&&H<0){
      |       ^~~~
Language: C++

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

int main(){

  int H;
  if(-i000<=H&&H<0){
  }else if(H=0){
  }else if(0<H&&H<=1000){
  }else
  return 0;
 }



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
    7 |   if(-i000<=H&&H<0){
      |       ^~~~
Language: C++

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

int main(){
    int W;
    cin>>W;
    cout<<32*W<<endl;
    return 0;
}


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

#include <iostream>

int main() {
  int n;
  std::cin >> n;
  std::out << n * 32 << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'out' is not a member of 'std'; did you mean 'oct'?
    6 |   std::out << n * 32 << std::endl;
      |        ^~~
      |        oct
Language: C++

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

typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

int gcd(int a, int b ) {
  if(a == 0) return b;
  return gcd(b % a, a);
}

bool isPrime(int a) {
  if(a == 2) return true;
  if(a < 2 || !(a % 2)) return false;

  double sq = sqrt(num);
  for(int i = 3; i <= sq; i += 2) {
    if(a % i == 0) return false;
  }
  return true;
}


int main() {
  int w;
  cin >> w;
  cout << w * 32 << endl;
}

Compiler output:
a.cc: In function 'bool isPrime(int)':
a.cc:27:20: error: 'num' was not declared in this scope; did you mean 'enum'?
   27 |   double sq = sqrt(num);
      |                    ^~~
      |                    enum
Language: C++

int main() {	

	int w;

	cin >> w;

	cout << w * 32 << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> w;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << w * 32 << endl;
      |         ^~~~
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |         cout << w * 32 << endl;
      |                           ^~~~
Language: C++

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


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

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

int main(){
	int H, R;
	cin>>H>>R;

	if(H - R <= 0) cot<<"0"<endl;
	if(H < 0) cot<<"-1"<endl;
	if(H > 0) cot<<"1"<endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'cot' was not declared in this scope; did you mean 'cos'?
    8 |         if(H - R <= 0) cot<<"0"<endl;
      |                        ^~~
      |                        cos
a.cc:9:19: error: 'cot' was not declared in this scope; did you mean 'cos'?
    9 |         if(H < 0) cot<<"-1"<endl;
      |                   ^~~
      |                   cos
a.cc:10:19: error: 'cot' was not declared in this scope; did you mean 'cos'?
   10 |         if(H > 0) cot<<"1"<endl;
      |                   ^~~
      |                   cos
Language: C++

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

int main(){
  int x;
  cin>>x;
  cout<<32*x<<endl;
return0;
}


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

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

int main(){
    int h,r;
    cin>>h>>r;
    if(h+r>=0){
        cout<<1<<endl;
    }
    else if(h+r=0){
        cout<<0<<endl;
    }
    else(h+r<=0){
        cout<<-1<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: lvalue required as left operand of assignment
   10 |     else if(h+r=0){
      |             ~^~
a.cc:13:17: error: expected ';' before '{' token
   13 |     else(h+r<=0){
      |                 ^
      |                 ;
Language: C++

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

int main(){
    int h,r;
    cin>>h>>r;
    if(h+r>0){
        cout<<1<<endl;
    }
    else if(h+r=0){
        cout<<0<<endl;
    }
    else(h+r<0){
        cout<<-1<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: lvalue required as left operand of assignment
   10 |     else if(h+r=0){
      |             ~^~
a.cc:13:16: error: expected ';' before '{' token
   13 |     else(h+r<0){
      |                ^
      |                ;
Language: C++

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

int main(){
    int W;
    cin>>W;
    
    cout<<W*32<<endl;
    
    
    return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | }
      | ~
Language: C++

int main(){

int W;

cin>>W;

cout<<W*32<<endl;



return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>W;
      | ^~~
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<W*32<<endl;
      | ^~~~
a.cc:7:13: error: 'endl' was not declared in this scope
    7 | cout<<W*32<<endl;
      |             ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
　int w;cin>>w;
　cout<<w*32<<endl;
    return 0;
}



Compiler output:
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　int w;cin>>w;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　cout<<w*32<<endl;
      | ^
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000int' was not declared in this scope
   14 | 　int w;cin>>w;
      | ^~~~~
a.cc:14:14: error: 'w' was not declared in this scope
   14 | 　int w;cin>>w;
      |              ^
a.cc:15:1: error: '\U00003000cout' was not declared in this scope
   15 | 　cout<<w*32<<endl;
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
　int w;cin>>w;
    cout<<w*32<<endl;
    return 0;
}



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

#include<bits/stdc++.h>
using name std;
int main(){
    int a;
    cin>>a;
    cout<<a*32<<endl;
    return 0;
}


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

import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int r = sc.nextInt();
    if (h + r > 0)
    System.out.println(1);
    if (h + r = 0)
    System.out.println(0);
    if (h + r < 0)
    System.out.println(-1);
  }
}


Compiler output:
Main.java:10: error: unexpected type
    if (h + r = 0)
          ^
  required: variable
  found:    value
1 error
Language: C

#include <stdio.h>

int main() {
  int h, r;
  scanf("%d %d", &h, &r);

  if      ( h+r > 0 ) printf(“1\n");
  else if ( h+r < 0 ) printf(“-1\n");
  else                printf(“0\n");

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: stray '\342' in program
    7 |   if      ( h+r > 0 ) printf(<U+201C>1\n");
      |                              ^~~~~~~~
main.c:7:32: error: stray '\' in program
    7 |   if      ( h+r > 0 ) printf(“1\n");
      |                                ^
main.c:7:32: error: expected ')' before 'n'
    7 |   if      ( h+r > 0 ) printf(“1\n");
      |                             ~  ^~
      |                                )
main.c:7:34: warning: missing terminating " character
    7 |   if      ( h+r > 0 ) printf(“1\n");
      |                                  ^
main.c:7:34: error: missing terminating " character
    7 |   if      ( h+r > 0 ) printf(“1\n");
      |                                  ^~~
main.c:8:30: error: stray '\342' in program
    8 |   else if ( h+r < 0 ) printf(<U+201C>-1\n");
      |                              ^~~~~~~~
main.c:8:33: error: stray '\' in program
    8 |   else if ( h+r < 0 ) printf(“-1\n");
      |                                 ^
main.c:8:35: warning: missing terminating " character
    8 |   else if ( h+r < 0 ) printf(“-1\n");
      |                                   ^
main.c:8:35: error: missing terminating " character
    8 |   else if ( h+r < 0 ) printf(“-1\n");
      |                                   ^~~
main.c:9:30: error: stray '\342' in program
    9 |   else                printf(<U+201C>0\n");
      |                              ^~~~~~~~
main.c:9:32: error: stray '\' in program
    9 |   else                printf(“0\n");
      |                                ^
main.c:9:34: warning: missing terminating " character
    9 |   else                printf(“0\n");
      |                                  ^
main.c:9:34: error: missing terminating " character
    9 |   else                printf(“0\n");
      |                                  ^~~
main.c:7:31: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |   if      ( h+r > 0 ) printf(“1\n");
      |                               ^
      |                               |
      |                               int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#include <stdio.h>

int main() {
  int h, r;
  scanf("%d %d", &h, &r);

  if ( h+r > 0 ){
 printf(“1\n");
} else if ( h+r < 0 ){
 printf(“-1\n");
} else {
printf(“0\n");
}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:9: error: stray '\342' in program
    8 |  printf(<U+201C>1\n");
      |         ^~~~~~~~
main.c:8:11: error: stray '\' in program
    8 |  printf(“1\n");
      |           ^
main.c:8:11: error: expected ')' before 'n'
    8 |  printf(“1\n");
      |        ~  ^~
      |           )
main.c:8:13: warning: missing terminating " character
    8 |  printf(“1\n");
      |             ^
main.c:8:13: error: missing terminating " character
    8 |  printf(“1\n");
      |             ^~~
main.c:8:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |  printf(“1\n");
      |          ^
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:13: error: expected ';' before '}' token
    8 |  printf(“1\n");
      |             ^
      |             ;
    9 | } else if ( h+r < 0 ){
      | ~            
main.c:10:9: error: stray '\342' in program
   10 |  printf(<U+201C>-1\n");
      |         ^~~~~~~~
main.c:10:12: error: stray '\' in program
   10 |  printf(“-1\n");
      |            ^
main.c:10:12: error: expected ')' before 'n'
   10 |  printf(“-1\n");
      |        ~   ^~
      |            )
main.c:10:14: warning: missing terminating " character
   10 |  printf(“-1\n");
      |              ^
main.c:10:14: error: missing terminating " character
   10 |  printf(“-1\n");
      |              ^~~
main.c:10:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |  printf(“-1\n");
      |          ^~
      |          |
      |          int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:14: error: expected ';' before '}' token
   10 |  printf(“-1\n");
      |              ^
      |              ;
   11 | } else {
      | ~             
main.c:12:8: error: stray '\342' in program
   12 | printf(<U+201C>0\n");
      |        ^~~~~~~~
main.c:12:10: error: stray '\' in program
   12 | printf(“0\n");
      |          ^
main.c:12:10: error: expected ')' before 'n'
   12 | printf(“0\n");
      |       ~  ^~
      |          )
main.c:12:12: warning: missing terminating " character
   12 | printf(“0\n");
      |            ^
main.c:12:12: error: missing terminating " character
   12 | printf(“0\n");
      |            ^~~
main.c:12:12: error: expected ';' before '}' token
   12 | printf(“0\n");
      |            ^
      |            ;
   13 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d",b);
??return(0);
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ??int H,R,a,b;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&H,&R);
      | ^
main.c:5:18: error: 'H' undeclared (first use in this function)
    5 | ??scanf("%d %d",&H,&R);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'R' undeclared (first use in this function)
    5 | ??scanf("%d %d",&H,&R);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??a=H+R;
      | ^
main.c:6:3: error: 'a' undeclared (first use in this function)
    6 | ??a=H+R;
      |   ^
main.c:7:1: error: expected expression before '?' token
    7 | ??if(a>0){
      | ^
main.c:17:1: error: expected expression before '?' token
   17 | ??return(0);
      | ^
Language: C

#include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d\n",b);
??return(0);
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ??int H,R,a,b;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&H,&R);
      | ^
main.c:5:18: error: 'H' undeclared (first use in this function)
    5 | ??scanf("%d %d",&H,&R);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'R' undeclared (first use in this function)
    5 | ??scanf("%d %d",&H,&R);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??a=H+R;
      | ^
main.c:6:3: error: 'a' undeclared (first use in this function)
    6 | ??a=H+R;
      |   ^
main.c:7:1: error: expected expression before '?' token
    7 | ??if(a>0){
      | ^
main.c:17:1: error: expected expression before '?' token
   17 | ??return(0);
      | ^
Language: C

#include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d\n",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d",b);
??return(0);
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ??int H,R,a,b;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d\n",&H,&R);
      | ^
main.c:5:20: error: 'H' undeclared (first use in this function)
    5 | ??scanf("%d %d\n",&H,&R);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:23: error: 'R' undeclared (first use in this function)
    5 | ??scanf("%d %d\n",&H,&R);
      |                       ^
main.c:6:1: error: expected expression before '?' token
    6 | ??a=H+R;
      | ^
main.c:6:3: error: 'a' undeclared (first use in this function)
    6 | ??a=H+R;
      |   ^
main.c:7:1: error: expected expression before '?' token
    7 | ??if(a>0){
      | ^
main.c:17:1: error: expected expression before '?' token
   17 | ??return(0);
      | ^
Language: C

#include<stdio.h>
int main(void)
{
 int H,R,n;
 scanf("%d %d",&H,&R);
 if(H+R<0){
  n=-1
 }
 else if(H+R=0){
  n=0;
 }
 else{
  n=1;
 }
 printf"%d",n);
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected ';' before '}' token
    7 |   n=-1
      |       ^
      |       ;
    8 |  }
      |  ~     
main.c:9:13: error: lvalue required as left operand of assignment
    9 |  else if(H+R=0){
      |             ^
main.c:15:8: error: expected ';' before string constant
   15 |  printf"%d",n);
      |        ^~~~
      |        ;
main.c:15:14: error: expected statement before ')' token
   15 |  printf"%d",n);
      |              ^
Language: C

#include<stdio.h>

main(void)
{
??int H,R,n;
??scanf("%d %d",&H,&R);
??if(H+R<0){
????n=-1;
??}
??else if(H+R=0){
????n=0;
??}
??else{
????n=1;
??}
??printf("%d",n);
??return(0);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ??int H,R,n;
      | ^
main.c:6:1: error: expected expression before '?' token
    6 | ??scanf("%d %d",&H,&R);
      | ^
main.c:6:18: error: 'H' undeclared (first use in this function)
    6 | ??scanf("%d %d",&H,&R);
      |                  ^
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: 'R' undeclared (first use in this function)
    6 | ??scanf("%d %d",&H,&R);
      |                     ^
main.c:7:1: error: expected expression before '?' token
    7 | ??if(H+R<0){
      | ^
main.c:17:1: error: expected expression before '?' token
   17 | ??return(0);
      | ^
Language: C

#include<iostream>
using namespace std;
int main()
{
	int h,r;
	cin>>h>>r;
	if(h==r)
	
		cout<<'0'<<endl;
	
	else if(h<=r)
	
		cout<<'1'<<endl;
	
	else(h>=r)
	
		cout<<"-1"<<endl;
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int H,R;
  cin >> H >> R;
  if(H<0){
    if(R+H>0) cout << 1 << endl;
    if(R+H==0) cout << 0 << endl;
    if(R+H<0)cout << -1 << endl;
  }else{
    (R-H == 0)cout << 0 <<  endl;
  }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'cout'
   11 |     (R-H == 0)cout << 0 <<  endl;
      |               ^~~~
      |               ;
Language: C++

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

int main (){
  int x,y,z;
  cin >> x >> y;
  if ( ( x + y ) > 0){z=1}
  else if ( ( x + y )==0){z=0}
  else {z=-1}
  cout<< z << endl;
  return 0;
}



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacs'
    2 | using namespacs 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 >> x >> y;
      |   ^~~
      |   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:26: error: expected ';' before '}' token
    7 |   if ( ( x + y ) > 0){z=1}
      |                          ^
      |                          ;
a.cc:8:30: error: expected ';' before '}' token
    8 |   else if ( ( x + y )==0){z=0}
      |                              ^
      |                              ;
a.cc:9:13: error: expected ';' before '}' token
    9 |   else {z=-1}
      |             ^
      |             ;
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout<< z << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout<< z << 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;

intmain(){
  int H,R;
  cin>>H>>R;
  if(H+R>0){
    cout<<1;
  }else if(H+R=0){
    cout<<0;
  }else{
    cout<<-1<<endl;
  }
  return 0;
}
    



Compiler output:
a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    4 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   }else if(H+R=0){
      |            ~^~
Language: C++

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

intmain(){
  int H,R;
  cin>>H>>R;
  if(H+R>0){
    cout<<1;endl;
  }else if(H+R=0){
    cout<<0;endl;
  }else{
    cout<<-1<<endl;
  }
  return 0;
}
    



Compiler output:
a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    4 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:8:17: error: statement cannot resolve address of overloaded function
    8 |     cout<<1;endl;
      |                 ^
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   }else if(H+R=0){
      |            ~^~
a.cc:10:17: error: statement cannot resolve address of overloaded function
   10 |     cout<<0;endl;
      |                 ^
Language: C++

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

intmain(){
  int H,R;
  cin>>H>>R;
  if(H+R>0){
    cout<<1<<endl;
  }else if(H+R=0){
    cout<<0<<endl;
  }else{
    cout<<-1<<endl;
  }
  return 0;
}
    



Compiler output:
a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    4 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   }else if(H+R=0){
      |            ~^~
Language: C++

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

intmain(){
  int H,R;
  cin>>H>>R;
  if(H+R>0){
    cout<<1<<endl;
  }else if(H+R==0){
    cout<<0<<endl;
  }else{
    cout<<-1<<endl;
  }
  return 0;
}
    



Compiler output:
a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    4 | intmain(){
      | ^~~~~~~
Language: C++

#include<cstdio>
#include<iosetream>
using namespace std;
int main(void){
	int h,r;
	if(h+r==0) cout<<0<<endl;
	else if(h+r>0) cout<<1<<endl;
	else cout<<-1<<endl;
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected '(' before 'else'
   10 |         if else (a==b)
      |            ^~~~
      |            (
a.cc:14:12: error: expected '(' before 'else'
   14 |         if else (a>=b)
      |            ^~~~
      |            (
Language: C++

#include<stdio.h>
int main()
{
	int h,r;
	scanf("%d%d",&h,&r);
	if(h<0)
	{
		if(r-h=0)
		{
			printf("0\n");
		}
	}
	else if(h>0)
	{	
		printf("1\n");
	}
	else
	{
		printf("-1\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
    8 |                 if(r-h=0)
      |                    ~^~
Language: C++

#include <bits/stdc++.h>  

using namespace std;

//#define int long long
#define FOR(i, j, k) for(int i = j; i < (int)k; ++i)
#define rep(i, j) FOR(i, 0, j)
#define INF (1 << 30)

typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> Pi;

const int MOD = 1e9 + 7;
const int dy[] = {0, 0, 1, -1};
const int dx[] = {1, -1, 0, 0};

template <class T> void chmin(T& a, const T& b) { a = min(a, b); }
template <class T> void chmax(T& a, const T& b) { a = max(a, b); }
template<typename T> T gcd(T a, T b) { return (b == 0 ? a : gcd(b, a % b)); }
template<typename T> T lcm(T a, T b) { return a / gcd(a, b) * b; }

signed main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int h, r;
    cin >> h >> r;
    if(h < r) cout << -1 << endl;
    else if(-h == r) cout << 0 << endl;
    else cout << 1 << endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:27: error: expected ';' before 'return'
   31 |     else cout << 1 << endl
      |                           ^
      |                           ;
   32 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int H,R;
    cin >> H >>R;
    if(H>=0)cout << 1 << endl;
    else(H+R=0)cout << 0 << endl;
    else(H<=0)cout << -1 << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |     else(H+R=0)cout << 0 << endl;
      |          ~^~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else(H<=0)cout << -1 << endl;
      |     ^~~~
a.cc:8:15: error: expected ';' before 'cout'
    8 |     else(H<=0)cout << -1 << endl;
      |               ^~~~
      |               ;
Language: C++

#include<iostream>
#include<stdio.h>
#include<algoritm>
#include<string.h>
using namespace std;
int main()
{
	int h,r;
	cin>>h>>r;
	if(h>=0)
		cout<<'1'<<endl;
	if(h-r<0||r-h!=0)
		cout<<"-1"<<endl;
	if(r-h==0)
		cout<<"0"<<endl;
	return 0;
}


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

#include<bits/stdc++.h>

using namespace std;


int main(){

int H,R;

if(H>=0){
cout<<"1"<<endl;
break;}

if(H<0&&H+R==0){
cout<<"0"<<endl;
break;}

if(H<0&&H+R<0){
cout<<"-1"<<endl;
break;}

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: break statement not within loop or switch
   12 | break;}
      | ^~~~~
a.cc:16:1: error: break statement not within loop or switch
   16 | break;}
      | ^~~~~
a.cc:20:1: error: break statement not within loop or switch
   20 | break;}
      | ^~~~~
Language: C++

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

int main(){
 
int H, R;
cin>>H>>R;

if( H  > R ) cout<<"0"<<endl;
if( H  < R ) cout<<"-1"<<endl;

erturn 0; 
}



Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>H>>R;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if( H  > R ) cout<<"0"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | if( H  > R ) cout<<"0"<<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:10:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | if( H  < R ) cout<<"-1"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | if( H  < R ) cout<<"-1"<<endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:1: error: 'erturn' was not declared in this scope; did you mean 'extern'?
   12 | erturn 0;
      | ^~~~~~
      | extern
Language: C++

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

int main(){
   int H, R;
   cin>>H>>R;
   if(H + R < 0) cout<<-1<<endl;
   if(H + R = 0) cout<<0<<endl;
   if(H + R > 0) cout<<1<<endl;
   
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |    if(H + R = 0) cout<<0<<endl;
      |       ~~^~~
Language: C++

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

int main(){
 
int H, R;
cin>>H>>R;

if( H  < R ) cout<<"0"<<endl;
if( H  > R ) cout<<"-1"<<endl;

erturn 0; 
}



Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>H>>R;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if( H  < R ) cout<<"0"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | if( H  < R ) cout<<"0"<<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:10:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | if( H  > R ) cout<<"-1"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | if( H  > R ) cout<<"-1"<<endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:1: error: 'erturn' was not declared in this scope; did you mean 'extern'?
   12 | erturn 0;
      | ^~~~~~
      | extern
Language: C++

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

int main(){
   int H, R;
   cin>>H>>R;
   int ans;
   if(H + R < 0) ans = -1
   if(H + R = 0) ans = 0
   if(H + R > 0) ans = 1
   cout<<ans<<endl;
   
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'if'
    9 |    if(H + R < 0) ans = -1
      |                          ^
      |                          ;
   10 |    if(H + R = 0) ans = 0
      |    ~~
Language: C++

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

int main(){
   int H, R;
   cin>>H>>R;
   int ans;
   if(H + R < 0) ans = -1;
   if(H + R = 0) ans = 0;
   if(H + R > 0) ans = 1;
   cout<<ans<<endl;
   
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: lvalue required as left operand of assignment
   10 |    if(H + R = 0) ans = 0;
      |       ~~^~~
Language: C++

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

 int main(){
 
int H, R;
cin>>H>>R;

if( H  > R ){
    0}else{
    -1
   }


erturn 0; 
}



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

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

 int main(){
 
int H, R;
cin>>H>>R;

if( H < r  ){
    0}else{
    -1
   }


return 0; 
}



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

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

int main(){
   int H, R;
   cin>>H>>R;
   int opt;
   opt = H + R;
   int ans;
   if(opt < 0) ans = "-1";
   if(opt = 0) ans = "0";
   if(opt > 0) ans = "1";
   cout<<ans<<endl;
   
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |    if(opt < 0) ans = "-1";
      |                      ^~~~
      |                      |
      |                      const char*
a.cc:12:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |    if(opt = 0) ans = "0";
      |                      ^~~
      |                      |
      |                      const char*
a.cc:13:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   13 |    if(opt > 0) ans = "1";
      |                      ^~~
      |                      |
      |                      const char*