criyle/codenet-compile-errors huggingface dataset:
Language: Java

    import java.util.Scanner;
         
    public class Main {
    	public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            String[] str = scan.nextLine().spilit(" ");
            Integer joinCount = str[0];
            Integer displayCount = str[1];
            Integer internalCount = 0;
            if(joinCount >= 10){
              internalCount = displayCount;
            }else{
              internalCount = (100*(10-joinCount))+displayCount;
            }
         	
            System.out.println(internalCount);
            scan.close();
        }
    }

Compiler output:
Main.java:6: error: cannot find symbol
            String[] str = scan.nextLine().spilit(" ");
                                          ^
  symbol:   method spilit(String)
  location: class String
Main.java:7: error: incompatible types: String cannot be converted to Integer
            Integer joinCount = str[0];
                                   ^
Main.java:8: error: incompatible types: String cannot be converted to Integer
            Integer displayCount = str[1];
                                      ^
3 errors
Language: Java

import java.util.Scanner;
     
public class InputSample {
	public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] str = scan.nextLine().spilit(" ");
        Integer joinCount = str[0];
        Integer displayCount = str[1]
        Integer internalCount = 0;
        if(joinCount >= 10){
          internalCount = displayCount;
        }else{
          internalCount = (100*(10-joinCount))+displayCount;
        }
     	
        System.out.println(internalCount);
        scan.close();
    }
}

Compiler output:
Main.java:8: error: ';' expected
        Integer displayCount = str[1]
                                     ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
int main(void){
    int z,r;
    cin >> z >> r;
    cout << r + 100 * ( 10 − min ( 10 , z ) ) << endl;
    return 0;
}


Compiler output:
a.cc:12:28: error: extended character − is not valid in an identifier
   12 |     cout << r + 100 * ( 10 − min ( 10 , z ) ) << endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:12:27: error: expected ')' before '\U00002212'
   12 |     cout << r + 100 * ( 10 − min ( 10 , z ) ) << endl;
      |                       ~   ^~
      |                           )
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
int main(void){
    int n,r;
    cin >> n >> r;
    cout << r + 100 * ( 10 − min(10,n) ) << endl;
}


Compiler output:
a.cc:12:28: error: extended character − is not valid in an identifier
   12 |     cout << r + 100 * ( 10 − min(10,n) ) << endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:12:27: error: expected ')' before '\U00002212'
   12 |     cout << r + 100 * ( 10 − min(10,n) ) << endl;
      |                       ~   ^~
      |                           )
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
int main(void){
    int n,r;
    cin >> n >> r;
    cout << r+100*(10−min(10,n)) << endl;
}


Compiler output:
a.cc:12:20: error: extended character − is not valid in an identifier
   12 |     cout << r+100*(10−min(10,n)) << endl;
      |                    ^
a.cc: In function 'int main()':
a.cc:12:20: error: unable to find numeric literal operator 'operator""\U00002212min'
   12 |     cout << r+100*(10−min(10,n)) << endl;
      |                    ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
int main(void){
    int n,r;
    cin >> n >> r;
    cout << r+max(0,100*(10−n)) << endl;
}


Compiler output:
a.cc:12:26: error: extended character − is not valid in an identifier
   12 |     cout << r+max(0,100*(10−n)) << endl;
      |                          ^
a.cc: In function 'int main()':
a.cc:12:26: error: unable to find numeric literal operator 'operator""\U00002212n'
   12 |     cout << r+max(0,100*(10−n)) << endl;
      |                          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
int main(void){
    int n,r;
    cin >> n >> r;
    cout << r+max(0,100*(10−n));
}

Compiler output:
a.cc:12:26: error: extended character − is not valid in an identifier
   12 |     cout << r+max(0,100*(10−n));
      |                          ^
a.cc: In function 'int main()':
a.cc:12:26: error: unable to find numeric literal operator 'operator""\U00002212n'
   12 |     cout << r+max(0,100*(10−n));
      |                          ^~~~
Language: Java

import java.util.*;
public class Sol
{
  public static void main(String args[])
  {
    Scanner d=new Scanner(System.in);
    int n,r,i;
    n=d.nextInt();
    r=d.nextInt();
    if(n<10)
      i=r+100*(10-n);
    else
      i=r;
    System.out.println(i);
  }
}

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

#include<stdio.h>
int main()
  {
  int n,r,k,i,j;
  print("input the value n, r");
    if(k=>10)
      printf("%d",r)
      else
        {i=100*(10-k);
         printf("inner Rating minus %d");
         j=r+i;
         printf("inner rating is %d",j);
         
      
      }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   print("input the value n, r");
      |   ^~~~~
      |   printf
main.c:6:10: error: expected expression before '>' token
    6 |     if(k=>10)
      |          ^
main.c:7:21: error: expected ';' before 'else'
    7 |       printf("%d",r)
      |                     ^
      |                     ;
    8 |       else
      |       ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() 
{
 
	int n,ir;
	cin>>n;
	cin>>ir;
	int dr;
	if(n<10)
	   {
	ir=int dr+100*(10-n);   
	   cout<<ir;
	   }
	   else{
	   cout<<ir;
	   }
	   

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before 'int'
   12 |         ir=int dr+100*(10-n);
      |            ^~~
Language: C

#include <stdio.h>
int main(){
    int n,r,k;
    scarf("%d %d", &n, &r);
    n = k;
    if(k >= 10){
        printf("r");
    }
    else if(k <= 9){
        printf("r -(100*(10-k)");
    }
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scarf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |     scarf("%d %d", &n, &r);
      |     ^~~~~
      |     scanf
Language: C

#include<stdio.h>
int main()
{
int a,N,R,K;
scanf("%d%d",&N,&R);
if(N>=10)
    prinf("%d\n",R);
else
a=100*(10-N);
K=R+a;
printf("%d\n",K);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |     prinf("%d\n",R);
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>
int main()
  {
  int N,R,K,I,J;
  scanf("%d %d",&N,&R);
  if(k=>0)
    printf("%d",R);
  else
    {
    I=100*(10-K);
    printf("inner Rating minus %d",I);
    J=R+I;
    printf("inner Rating is %d",J);
  
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'k' undeclared (first use in this function)
    6 |   if(k=>0)
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: expected expression before '>' token
    6 |   if(k=>0)
      |        ^
Language: C

#include <stdio.h>
int main(){
    int n,r,k;
    scarf("%d %d", &n, &r);
    if(k >= 10){
        printf("n");
    }
    else if(k <= 9){
        printf("n -(100*(10-k)");
    }
    return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scarf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |     scarf("%d %d", &n, &r);
      |     ^~~~~
      |     scanf
Language: C

int main(){
    int n,r,k;
    scarf("%d %d", &n, &r);
    if(k >= 10){
        printf("n");
    }
    else if(k <= 9){
        printf("n -(100*(10-k)");
    }
    return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scarf' [-Wimplicit-function-declaration]
    3 |     scarf("%d %d", &n, &r);
      |     ^~~~~
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("n");
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |         printf("n");
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |         printf("n -(100*(10-k)");
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main(){
  long long n, a, b, s;
  s = 0;
  cin >> n >> a >> b;
  long long v[1000000009][10000000009];
  for(int i = 0; i < n; i++){
    v[i][0] = 1;
    v[i][i] = 1;
  }
  for(int i = 2; i < n; i++){
    for(int j = 1; j < i; j++){
      v[i][j] = (v[i - 1][j - 1] + v[i - 1][j]) % (1e9 + 7);
    }
  }
  v[n - 1][a] = 0;
  v[n - 1][b] = 0;
  for(int i = 0; i < n; i++){
    s = s + v[n - 1][i];
    s = s % (1e9 + 7);
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: size of array 'v' exceeds maximum object size '9223372036854775807'
    8 |   long long v[1000000009][10000000009];
      |             ^
a.cc:10:5: error: 'v' was not declared in this scope
   10 |     v[i][0] = 1;
      |     ^
a.cc:15:7: error: 'v' was not declared in this scope
   15 |       v[i][j] = (v[i - 1][j - 1] + v[i - 1][j]) % (1e9 + 7);
      |       ^
a.cc:18:3: error: 'v' was not declared in this scope
   18 |   v[n - 1][a] = 0;
      |   ^
a.cc:22:11: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
   22 |     s = s % (1e9 + 7);
      |         ~ ^ ~~~~~~~~~
      |         |        |
      |         |        double
      |         long long int
Language: C++

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


int main() {
    int H,A,cnt=0;

    cin >> H >> A;
    
    if (H>10){
        cout << A + H << endl
    }
    else cout << A << endl;
    
    

}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before '}' token
   11 |         cout << A + H << endl
      |                              ^
      |                              ;
   12 |     }
      |     ~
Language: Java

public class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int n = sc.nextInt();
   int r = sc.nextInt();
   if(n>=10) System.out.println(""+r);
   else System.out.println(""+(r+100*(10-k));
 }
}

Compiler output:
Main.java:7: error: ')' or ',' expected
   else System.out.println(""+(r+100*(10-k));
                                            ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){int n,r;
           cin>>n>>r;
           if(n>=10){cout<<r;}
           else{cout<<(r+100*(10-k));}
  return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: 'k' was not declared in this scope
    6 |            else{cout<<(r+100*(10-k));}
      |                                  ^
Language: C++

#include <iostream>

int main() {
  int n, r;
  std::cin >> n >> r;
  if(10>n) r = n - 100 * (10-n);
  cout << r;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << r;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    long n = sc.nextInt();
    int a = sc.nextInt();
    int b = sc.nextInt();
    long sum = 0;
    long before = 1;
    
    for(long i=n; i>0; i--){
      if(i != a && i != b){
      long score = before * i / (n - i + 1);
      sum += score;
      before = score;  
      }
    } 
    long answer = long(sum % (Math.pow(10,9) + 7));
    System.out.println(answer);
  }
}


Compiler output:
Main.java:18: error: '.class' expected
    long answer = long(sum % (Math.pow(10,9) + 7));
                      ^
Main.java:18: error: not a statement
    long answer = long(sum % (Math.pow(10,9) + 7));
                           ^
Main.java:18: error: ';' expected
    long answer = long(sum % (Math.pow(10,9) + 7));
                                                 ^
3 errors
Language: C++

strings = input().split(' ')
N = int(strings[0])
R = int(strings[1])
 
if N < 10:
  print(R + 100*(10-N))
else:
  print(R)

Compiler output:
a.cc:1:1: error: 'strings' does not name a type
    1 | strings = input().split(' ')
      | ^~~~~~~
Language: C++

#include <stdio.h>
#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<map>
#define maxd 400500
using std::string;
using std::cout;
using std::cin;
using std::endl;
using std::sort;
using std::map;
int main()
{
    int n,r;
    cin>>n>>r;
    if(n<=10);
    cout<<100*(10-n)+r;
    else
    cout<<r;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'else' without a previous 'if'
   21 |     else
      |     ^~~~
Language: Java

import java.util.*;
class a
{
  public static void main(String args[])
  {
    int i,j,k,l,m;
     Scanner myObj = new Scanner(System.in);
    int i = myObj.nextInt();
    int j = myObj.nextInt();
    if(i>=10)
      System.out.println(i);
    else
    {
      System.out.println(j+(100*(10-i)));
    }
  }
}
    

Compiler output:
Main.java:8: error: variable i is already defined in method main(String[])
    int i = myObj.nextInt();
        ^
Main.java:9: error: variable j is already defined in method main(String[])
    int j = myObj.nextInt();
        ^
2 errors
Language: Java

import java.util.Scanner;

public class Main.java{

	public static void main(String[] args) {
		Scanner sc01 = new Scanner(System.in);
		Scanner sc02 = new Scanner(System.in);
		System.out.println("参加回数");
		int joining = sc01.nextInt();
		System.out.println("表示レーティング");
		int displayRating = sc02.nextInt();

		if(joining < 10 ){
			int result = 100*(10-joining);
			int results01 = displayRating + result;
			System.out.println("内部レーティングは" + results01);
		}else{
			System.out.println("内部レーティングは" + displayRating);
		}
		sc01.close();
		sc02.close();
	}
  }

Compiler output:
Main.java:3: error: '{' expected
public class Main.java{
                 ^
1 error
Language: Java

import java.util.Scanner;

public class Main.java {
public static void main(String[] args) {
Scanner sc01 = new Scanner(System.in);
Scanner sc02 = new Scanner(System.in);
System.out.println("参加回数");
int joining = sc01.nextInt();
System.out.println("表示レーティング");
int displayRating = sc02.nextInt();
if(joining < 10 ){
int result = 100*(10-joining);
int results01 = displayRating + result;
System.out.println("内部レーティングは" + results01);
}else{
System.out.println("内部レーティングは" + displayRating);
}
sc01.close();
sc02.close();
}
}

Compiler output:
Main.java:3: error: '{' expected
public class Main.java {
                 ^
1 error
Language: C++

#include <iostream>


int main()
{
  int N, R, IR;
  std::cin >> N >> R;
  if(N>=10)
  {
    IR = R;
  }
  else{
    IR = R + 100*(10-N)
  }
  std::cout << IR << std::endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before '}' token
   13 |     IR = R + 100*(10-N)
      |                        ^
      |                        ;
   14 |   }
      |   ~
Language: Java

import java.util.Scanner;

public class Main.java {

	public static void main(String[] args) {
		Scanner sc01 = new Scanner(System.in);
		Scanner sc02 = new Scanner(System.in);
		System.out.println("参加回数");
		int joining = sc01.nextInt();
		System.out.println("表示レーティング");
		int displayRating = sc02.nextInt();

		if(joining < 10 ){
			int result = 100*(10-joining);
			int results01 = displayRating + result;
			System.out.println("内部レーティングは" + results01);
		}else{
			System.out.println("内部レーティングは" + displayRating);
		}
		sc01.close();
		sc02.close();
	}
  }

Compiler output:
Main.java:3: error: '{' expected
public class Main.java {
                 ^
1 error
Language: Java

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		Scanner sc01 = new Scanner(System.in);
		Scanner sc02 = new Scanner(System.in);
		System.out.println("参加回数");
		int joining = sc01.nextInt();
		System.out.println("表示レーティング");
		int displayRating = sc02.nextInt();

		if(joining < 10 ){
			int result = 100*(10-joining);
			int results01 = displayRating + result;
			System.out.println("内部レーティングは" + results01);
		}else{
			System.out.println("内部レーティングは" + displayRating);
		}
		sc01.close();
		sc02.close();
	}
  }

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

#include <iostream>
#include <string>
using namespace std;

int main()
{#include <iostream>
#include <string>
using namespace std;

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

  if(N >= 10){
     cout << R << endl;  
  } else {
     int XX =R-100*(10-N);
     cout << XX << endl;
  }

  return 0;
}
  int N,R;
  cin >> N >> R;

  if(N >= 10){
     cout << R << endl;  
  } else {
     int XX =R+100*(10-N);
     cout << XX << endl;
  }

  return 0;
}

Compiler output:
a.cc:6:2: error: stray '#' in program
    6 | {#include <iostream>
      |  ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'include' was not declared in this scope
    6 | {#include <iostream>
      |   ^~~~~~~
a.cc:6:20: error: expected primary-expression before '>' token
    6 | {#include <iostream>
      |                    ^
a.cc:8:1: error: expected primary-expression before 'using'
    8 | using namespace std;
      | ^~~~~
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main()
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main()
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:1: error: a function-definition is not allowed here before '{' token
   11 | {
      | ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int N;
    int R;
    
    cin >> N;
    cin >> R;
    
    int ans;
    
    if (N>=10) {
        ans = R;
    } else {
        ans = R + 100*(10-N);// ans - 100*(10-N) = R
    }
    
    cout << ans << endl;
}


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

import java.util.Scanner;

public class A {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int R = scan.nextInt();
    if (N < 10) {
      R -= 100 * (10 - N);
    }
    System.out.printf("%d\n", R);
  }
}

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

#include <stdio.h>

int main()
{
    
    int N, R;
   
    scanf("%d%d", &N,&R);
    
    if (N < 10) {
    
        printf("%d\n", R + 800);
        
    } else{
        printf("%d\n", R;
    }


    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:25: error: expected ')' before ';' token
   15 |         printf("%d\n", R;
      |               ~         ^
      |                         )
main.c:15:26: error: expected ';' before '}' token
   15 |         printf("%d\n", R;
      |                          ^
      |                          ;
   16 |     }
      |     ~
Language: C

#include<stdio.h>
int main ()
  {
  int N,R,A,S;
  scanf ("%d\n%d",&N,&R");
         if (N<=10)
         {
           A=100*(10-N);
           S=A+R;
           printf ("%d",S);
          }
         else
         printf ("%d",R);
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:5:25: error: invalid character ')' in raw string delimiter
    5 |   scanf ("%d\n%d",&N,&R");
      |                       ^  
main.c:5:23: error: stray 'R' in program
    5 |   scanf ("%d\n%d",&N,&R");
      |                       ^~~~
    6 |          if (N<=10)
      |          ~~~~~~~~~~    
    7 |          {
      |          ~             
    8 |            A=100*(10-N);
      |            ~~~~~~~~~~~~~
    9 |            S=A+R;
      |            ~~~~~~      
   10 |            printf ("%d",S);
      |            ~~~~~~~~~   
main.c:10:21: error: expected expression before '%' token
   10 |            printf ("%d",S);
      |                     ^
main.c:10:23: warning: missing terminating " character
   10 |            printf ("%d",S);
      |                       ^
main.c:10:23: error: missing terminating " character
   10 |            printf ("%d",S);
      |                       ^~~~~
main.c:10:23: error: expected ';' before '}' token
   10 |            printf ("%d",S);
      |                       ^
      |                       ;
   11 |           }
      |           ~            
main.c: At top level:
main.c:12:10: error: expected identifier or '(' before 'else'
   12 |          else
      |          ^~~~
main.c:14:3: error: expected identifier or '(' before 'return'
   14 |   return 0;
      |   ^~~~~~
main.c:15:3: error: expected identifier or '(' before '}' token
   15 |   }
      |   ^
Language: C++

#include<stdio.h>
int main(void){
  int N;
  unsigned int R;
  scanf("%d%d",&N,&R);
  if(N>=10){
    printf("%d",R*2);
  }
  if(N<10){
    int x=(100*(10−R))+R;
printf("%d",x);
       }
  
   r
     unsigned int R;eturn 0;
}

Compiler output:
a.cc:10:17: error: extended character − is not valid in an identifier
   10 |     int x=(100*(10−R))+R;
      |                 ^
a.cc: In function 'int main()':
a.cc:10:17: error: unable to find numeric literal operator 'operator""\U00002212R'
   10 |     int x=(100*(10−R))+R;
      |                 ^~~~
a.cc:14:4: error: 'r' was not declared in this scope
   14 |    r
      |    ^
a.cc:15:21: error: 'eturn' was not declared in this scope; did you mean 'extern'?
   15 |      unsigned int R;eturn 0;
      |                     ^~~~~
      |                     extern
Language: C++

#include <iostream>

int a,b;

int main(){
	cin >> a;
  if (a <10){
    b += (10-a)*b;
  }
  cout << b;

}

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  	
    Scanner scan = new Scanner(System.in);
    
    int k = scan.nextInt();
    int r = scan.nextInt();
    
    k = 100*(10-k);
    res = r + k;
    
    System.out.println(res);
    
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    res = r + k;
    ^
  symbol:   variable res
  location: class Main
Main.java:13: error: cannot find symbol
    System.out.println(res);
                       ^
  symbol:   variable res
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  	
    Scanner scan = new Scanner(System.in);
    
    int k = scan.nextInt();
    int r = scan.nextInt();
    
    k = 100*(10-k);
    res = r + k;
    
    System.out.println(res)
    
  }
}

Compiler output:
Main.java:13: error: ';' expected
    System.out.println(res)
                           ^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  	
    Scanner scan = new Scanner(System.in);
    
    int k = scan.nextInt();
    int r = scan.nextInt();
    
    k = 100*(10-k);
    res = r + k;
    
    System.out.println(res);
    
  }

Compiler output:
Main.java:15: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  	
    Scanner scan = new Scanner(System.in);
    
    int k = scan.nextInt();
    int r = scan.nextInt();
    
    k = 100*(10-k);
    res = r + k;
    
    System.out.println(res)
    
  }

Compiler output:
Main.java:13: error: ';' expected
    System.out.println(res)
                           ^
Main.java:15: error: reached end of file while parsing
  }
   ^
2 errors
Language: C++

#include<iostream>

Using namespace std;

int main() 

{

int n, r, k;

cin>>n>>r;

if(n>=10)

cout<<r;

else 

cout<<r+100*(10-n)<<endl;

}



Compiler output:
a.cc:3:1: error: 'Using' does not name a type
    3 | Using namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 | cin>>n>>r;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | cout<<r;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 | cout<<r+100*(10-n)<<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:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 | cout<<r+100*(10-n)<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=int(a);i<int(b);i++)
typedef vector<int> vi;
typedef long long ll;


int main(){
    
    int N,R:cin>>N>>R;
    if(N<10){
        cout<<R+(10-N)*100<<endl;
        
    }
    else cout<<R<<endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: found ':' in nested-name-specifier, expected '::'
   11 |     int N,R:cin>>N>>R;
      |            ^
      |            ::
a.cc:11:11: error: 'R' has not been declared
   11 |     int N,R:cin>>N>>R;
      |           ^
a.cc:11:16: error: qualified-id in declaration before '>>' token
   11 |     int N,R:cin>>N>>R;
      |                ^~
a.cc:13:15: error: 'R' was not declared in this scope
   13 |         cout<<R+(10-N)*100<<endl;
      |               ^
a.cc:16:16: error: 'R' was not declared in this scope
   16 |     else cout<<R<<endl;
      |                ^
Language: C++

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

int main() {
  int n,r;
  cin >> n >> r;
  int K = 10-n
  if(n>9) {
    cout << r << endl;
  }
  else {
    cout << r+100*n << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if(n>9) {
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

#include<stdio.h>
int main(void){
  int N,R;
  scanf("%d%d",&N,&R);
  if(N>=10){
    printf("%d",R*2);
  }
  if(N<10){
    int K=R;
printf("%d",100*(10−K)+K);
       }
  
    
return 0;
}

Compiler output:
a.cc:10:18: error: extended character − is not valid in an identifier
   10 | printf("%d",100*(10−K)+K);
      |                  ^
a.cc: In function 'int main()':
a.cc:10:18: error: unable to find numeric literal operator 'operator""\U00002212K'
   10 | printf("%d",100*(10−K)+K);
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>

          using namespace std;
int dsdspp[3232];
          int main()
          {
            cin>> n>> k;
if(n < 10)
 cout << k + 100*(10-n);
else  cout << k;
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |             cin>> n>> k;
      |                   ^
      |                   yn
a.cc:7:23: error: 'k' was not declared in this scope
    7 |             cin>> n>> k;
      |                       ^
Language: Java

import java.util.Scanner;

public class Question20200222A {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num = scanner.nextInt();
		if(num >= 10) {
			num = 0;
		}
		int disp = scanner.nextInt();
		int inner = disp + (num * 100);
		System.out.println(inner);
	}

}

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

#include<stdio.h>
int main(void){
  int N,R;
  scanf("%d%d",&N,&R)
  if(N>=10){
    printf("%d",R*2);
  }
  if(N<10){
    int x=(100*(10−R)+R);
printf("%d",x);
       }
  
    
return 0;
}

Compiler output:
a.cc:9:17: error: extended character − is not valid in an identifier
    9 |     int x=(100*(10−R)+R);
      |                 ^
a.cc: In function 'int main()':
a.cc:4:22: error: expected ';' before 'if'
    4 |   scanf("%d%d",&N,&R)
      |                      ^
      |                      ;
    5 |   if(N>=10){
      |   ~~                  
a.cc:9:17: error: unable to find numeric literal operator 'operator""\U00002212R'
    9 |     int x=(100*(10−R)+R);
      |                 ^~~~
Language: C++

#include<iostream>
#include<stdio.h>

int main(){
  int n,r;
  cin>>n>>r;
  if(n<10)
    cout<<r+100*(10-n)<<endl;
  else
    cout<<r<<endl;
  
  return 0;
}

Compiler output:
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>>n>>r;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<r+100*(10-n)<<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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<r+100*(10-n)<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<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:10:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<r<<endl;
      |              ^~~~
      |              std::endl
/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;
#define int long long
int main()
{
   int k,R;
   cin>>k>>R;
   int ans = R + (k<10?(100*(10-k)):0);
   cout<<ans<<'\n';
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits./stdc++.h>
using namespace std;
#define ll long long
void solve();
int main()
{

    solve();
}

void solve()
{
   int n,m;
   cin>>n>>m;
   if(n<10)cout<<m+100*(10-n);
   else cout<<m;
}


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

#include<stdio.h>
int main(void){
  int N,R;
  scanf("%d%d",&N,&R);
  if(N>=10){
    printf("%d",R*2);
  }
  if(N<10){
    int x=(100*(10−R))+R;
printf("%d",x);
       }
  
    
return 0;
}

Compiler output:
a.cc:9:17: error: extended character − is not valid in an identifier
    9 |     int x=(100*(10−R))+R;
      |                 ^
a.cc: In function 'int main()':
a.cc:9:17: error: unable to find numeric literal operator 'operator""\U00002212R'
    9 |     int x=(100*(10−R))+R;
      |                 ^~~~
Language: C

#include<stdio.h>
 
int a,b;
int t=0;
int main(void){
  scanf("%d",&a);
  scanf("%d",&b)
  if(a<=9){
    t=b-100*(10-a);
    printf("%d",t+b);
    return 0;
  }else{
    printf("%d",b);
       return 0;
       }
  
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'if'
    7 |   scanf("%d",&b)
      |                 ^
      |                 ;
    8 |   if(a<=9){
      |   ~~
Language: C++

#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
const ll LL_MAX=LLONG_MAX;

struct In{
    template<typename T>
    operator T(){
        T x;
        cin >> x;
        return x;
    }
};
In in;

template <typename T,typename U>
void forin(T* x,U n){
    for (U i=0;i<n;i++) cin >> x[i];
}

template <typename T>
int div1(T x) {
    return x%1000000007;
}

template <typename T>
void out(T x){
    cout << x << endl;
}

template <typename T>
T gcd(T x,T y){
    if (y == 0) return x;
    return gcd(y,x%y);
}

template <typename T>
T lcm(T x,T y){
    return x*y/gcd(x,y);
}

int main(){
    int n=in(),r=in();
    out( (n<9) ? r+100*(10-n) : r );
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:13: error: no match for call to '(In) ()'
   45 |     int n=in(),r=in();
      |           ~~^~
a.cc:46:18: error: 'r' was not declared in this scope
   46 |     out( (n<9) ? r+100*(10-n) : r );
      |                  ^
Language: C++

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

#define rep(i, N) for (int i = 0; i < N; i++)
const int intinf = numeric_limits<int>::max();

using ll = long long int;
using pii = pair<int, int>;
using pll = pair<ll, ll>;

#include "Modulo.h"
#include "Prime.h"

void solve()
{
    int N, R;
    cin >> N >> R;

    int ans = (N >= 10) ? R : R + 100 * (10 - N);

    cout << ans << endl;
}

int main()
{
    solve();
    return 0;
}

Compiler output:
a.cc:11:10: fatal error: Modulo.h: No such file or directory
   11 | #include "Modulo.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

int main() {
  int N,R;
  cin >> N>>R;
  int H=0;
 if(N>=10){
   H=R;
 }
 else{
   H=100*(10-N);
 }
  cout << H << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N>>R;
      |   ^~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << H << endl;
      |   ^~~~
a.cc:11:16: error: 'endl' was not declared in this scope
   11 |   cout << H << endl;
      |                ^~~~
Language: C++

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

int main(){
  int N;
  int R;
  cin >> N >> R;
  
  if (N < 10){
    cout << R + 100 * (10 - N) << endl;
  else{
    cout << R << endl;
  }
}

  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:9:14: note: to match this '{'
    9 |   if (N < 10){
      |              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  cin >> n >> r;
  if(n >= 10)
    cout << r;
  else {
    cout << (r + 100 * (10 - n));
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   cin >> n >> r;
      |          ^
      |          yn
a.cc:7:15: error: 'r' was not declared in this scope
    7 |   cin >> n >> r;
      |               ^
Language: C++

#include<stdio.h>
int main(void){
  int N,R;
  scanf("%d",&N);
  scanf("%d",&R);
  if(N>=10){
    printf("%d",R*2);
  }else{
    int x=100*(10−R)+R;
printf("%d",x);
       }
  
    
return 0;
}

Compiler output:
a.cc:9:16: error: extended character − is not valid in an identifier
    9 |     int x=100*(10−R)+R;
      |                ^
a.cc: In function 'int main()':
a.cc:9:16: error: unable to find numeric literal operator 'operator""\U00002212R'
    9 |     int x=100*(10−R)+R;
      |                ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, R ;
  cin >> N >> R;
 
  if (N >= 10) {
    cout << R << endl;
  }
 
  else if (x < 10) {
    cout << R-(100*(10-N)) << endl;
  }
 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'x' was not declared in this scope
   12 |   else if (x < 10) {
      |            ^
Language: C++

#include<stdio.h>
int main(void){
  int N,R;
  scanf("%d",&N);
  scanf("%d",&R);
  if(N>=10){
    printf("%d",R*2);
  }else{
    int x=100×(10−R)+R;
printf("%d",x);
       }
  
    
return 0;
}

Compiler output:
a.cc:9:11: error: extended character × is not valid in an identifier
    9 |     int x=100×(10−R)+R;
      |           ^
a.cc:9:16: error: extended character − is not valid in an identifier
    9 |     int x=100×(10−R)+R;
      |                ^
a.cc: In function 'int main()':
a.cc:9:11: error: unable to find numeric literal operator 'operator""\U000000d7'
    9 |     int x=100×(10−R)+R;
      |           ^~~~
a.cc:9:16: error: unable to find numeric literal operator 'operator""\U00002212R'
    9 |     int x=100×(10−R)+R;
      |                ^~~~
Language: C++

#include <iostream>
int main(){
int N;
int R;
cin >> N;
cin >> R;
if(N >= 10){
cout << R;
}else{
cout << R-(100*(10-K));
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> N;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout << R;
      | ^~~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout << R-(100*(10-K));
      | ^~~~
      | 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:20: error: 'K' was not declared in this scope
   10 | cout << R-(100*(10-K));
      |                    ^
Language: C++

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

int main() {
  int N.R,ans;
  cin>>N>>R;
  
  if(N>=10){
    ans=R;
  }
  else{
    ans=R+100*(10-N);
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 |   int N.R,ans;
      |        ^
a.cc:6:8: error: 'N' was not declared in this scope
    6 |   cin>>N>>R;
      |        ^
a.cc:6:11: error: 'R' was not declared in this scope
    6 |   cin>>N>>R;
      |           ^
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans=R;
      |     ^~~
      |     abs
a.cc:12:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     ans=R+100*(10-N);
      |     ^~~
      |     abs
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b;
  while(cin>>a>>b)
    {
    if(a>=10)
      {
      cout<<b<<endl;
      }
    else if(a<10)
      {
      cout<<((100)*(10-a))+(b)<<endl
      }
    
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: expected ';' before '}' token
   14 |       cout<<((100)*(10-a))+(b)<<endl
      |                                     ^
      |                                     ;
   15 |       }
      |       ~
Language: C++

#include<iostream>
using namespace std;
 
int main() {
	int N = 0;
  	int R = 0;
  	cin >> N >> R;
  
	int rating = 0;
  	if (N < 10) {
      rating = R - 100 * (10 - N);
    } else {
      rating = R;
    }
  
  	cout << rating << endl;
  
  	return 0;
}
#include<iostream>
using namespace std;
 
int main() {
	int N = 0;
  	int R = 0;
  	cin >> N >> R;
  
	int rating = 0;
  	if (N < 10) {
      rating = R + 100 * (10 - N);
    } else {
      rating = R;
    }
  
  	cout << rating << endl;
  
  	return 0;
}

Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <typeinfo>
#include <math.h>

using namespace std;
using ll = long long;

int main() {
	ll n, r;
	cin >> n >> r;
	if (n < 10)
		cout << r + 100 * (10 - n) << endl;
	else
		cout << r << endl;
}

/*

Compiler output:
a.cc:28:1: error: unterminated comment
   28 | /*
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before 'if'
   11 |   if (n>=10) {
      |   ^~
Language: C

#include <stdio.h>
int main(void){
        int n,r;
        scanf("%d %d",&n,&r);
        if(n<10){
                r=r+100*(10-n);
        }
        printf("%d\n",r);
        return;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
    9 |         return;
      |         ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N R ;
  cin >> N R;
 
  if (N >= 10) {
    cout << R << endl;
  }
 
  else if (x < 10) {
    cout << R=R-(100*(10-N)) << endl;
  }
 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'R'
    5 |   int N R ;
      |         ^
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N R;
      |          ^
a.cc:9:13: error: 'R' was not declared in this scope
    9 |     cout << R << endl;
      |             ^
a.cc:12:12: error: 'x' was not declared in this scope
   12 |   else if (x < 10) {
      |            ^
a.cc:13:13: error: 'R' was not declared in this scope
   13 |     cout << R=R-(100*(10-N)) << endl;
      |             ^
Language: C++


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

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

  if (N >= 10) {
    cout << R << endl;
  else if (N < 10) {
      cout << R+100*(10-N) << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else if (N < 10) {
      |   ^~~~
a.cc:9:16: note: to match this '{'
    9 |   if (N >= 10) {
      |                ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, R;
  cin >> N >> R;
  
  if(N<10){ 
  cout << R + 100*(10-N) << endl;
  }else{
  cout << N << endl;
  
}

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

#include<stdc++.h>
using namespace std;
int main(){
int n,k;
  cin>>n>>k;
  cout<<((n>=10)?k:k+100*(10-n))<<endl;

}

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

#include <bits/stdc++.h>                                                                                                                 |   1|2 2919$
using namespace std;                                                                                                                     |   2|22 3051$
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)                                                                                     |
                                                                                                                                         |
int main() {                                                                                                                             |
    int n, r;                                                                                                                            |
    while (cin >> n >> r) {                                                                                                              |
        cout << r + 100 * max(0, 10-n) << endl;                                                                                          |
    }                                                                                                                                    |
}


Compiler output:
a.cc:1:138: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>                                                                                                                 |   1|2 2919$
      |                                                                                                                                          ^
a.cc:2:138: error: expected unqualified-id before '|' token
    2 | using namespace std;                                                                                                                     |   2|22 3051$
      |                                                                                                                                          ^
Language: C++

#include <stdio.h> 

int main() 
{ 
  long int n, m; 
  scanf("%ld %ld", &n, &m); 
  if(n >= 10)
    printf("%ld\n", m); 
  else 
    printf("%ld\n", m + (100*(10-n)));

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: expected '}' at end of input
   10 |     printf("%ld\n", m + (100*(10-n)));
      |                                       ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^