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

#include<stdio.h>
#include<math.h>
#include<string.h>

int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
  if(a<10) printf("%d", b-100*(10-a));
  else printf("%d", b)
 

		return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'return'
   10 |   else printf("%d", b)
      |                       ^
      |                       ;
......
   13 |                 return 0;
      |                 ~~~~~~
Language: C++

#include<stdio.h>
#include<math.h>
#include<string.h>

int main()
{
	int a, b;
	scanf("%d %d", &a, b);
  if(a<10) printf("%d", b-100*(10-a));
  else printf("%d", b)
 

		return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'return'
   10 |   else printf("%d", b)
      |                       ^
      |                       ;
......
   13 |                 return 0;
      |                 ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '>' token
    8 |   if(N=>10){
      |        ^
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:4:13: error: expected unqualified-id before ';' token
    4 |   int N, R, ;
      |             ^
Language: C++

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

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


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

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

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

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

#include<iostream>
using namespace std;
int main()
{
  int n,r;
  cin>>n>>r;
  if(n<=10)
    int z = 100*(10-n);
    cout<< r+z <<endl;
  if(n>10)
    cout<<r<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'z' was not declared in this scope
    9 |     cout<< r+z <<endl;
      |              ^
Language: C++

#include <iostream>
using namespace std;
void ABC150(void);
void ABC151(void);
void ABC152(void);
void ABC153(void);
void ABC154(void);
void ABC155(void);
void ABC156(void);
void ABC157(void);
void ABC158(void);
void ABC159(void);

int main(void){
    ABC156();
}

void ABC156(){
    int n,r;
    cin>>n>>r;
    if(n>=10)cout<<r<<endl;
    else cout<<r-100*(10-k)<<endl;
}

Compiler output:
a.cc: In function 'void ABC156()':
a.cc:22:26: error: 'k' was not declared in this scope
   22 |     else cout<<r-100*(10-k)<<endl;
      |                          ^
Language: C++

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

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

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

int main(){
  int n,r;
  cin >> n >> r;
  ans = r + 1000 - 100*min(n, 10)
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = r + 1000 - 100*min(n, 10)
      |   ^~~
      |   abs
Language: C++

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

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

Compiler output:
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
    1 | #include<bits/std++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
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-n);
  }
  return 0;
}
    

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>
#include <stdlib.h>


int main(){

    int n,r;
    scanf("%d %d",&n,&r);

    if(n >= 10){
        printf("%d",r);
    }else{
        pprintf("%d",r+1000-100*n);
    }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'pprintf'; did you mean 'dprintf'? [-Wimplicit-function-declaration]
   13 |         pprintf("%d",r+1000-100*n);
      |         ^~~~~~~
      |         dprintf
Language: Java

import java.util.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
          System.out.println(num + 100 * ( 10 - n));
                                                ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
          System.out.println(num - 100 * ( 10 - n));
                                                ^
  symbol:   variable n
  location: class Main
1 error
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> n >> r;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << r << endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |         cout << r << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << r + 100 * (10 - n) << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:39: error: 'endl' was not declared in this scope
    9 |         cout << r + 100 * (10 - n) << endl;
      |                                       ^~~~
a.cc:9:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: 'K' was not declared in this scope
    7 |   if(N < 10) R += 100 * (100 - K);
      |                                ^
Language: C++

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

#define ll long long
#define ull unsigned ll

#define vi vector <int>
#define ii pair <int, int>
#define vii vector <ii>
#define vll vector <ll>
#define vull vector <ull>
#define INFL 9e18
#define INF 2e9
#define EPS 1e-9
#define pb push_back
#define emp emplace_back
#define PI acos(-1.0)
#define endl "\n"
#define mp make_pair
#define mod 1000003
#define DEBUG 0




int main ()

{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

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

    }
    return 0;
}

Compiler output:
a.cc:49:5: error: expected unqualified-id before 'return'
   49 |     return 0;
      |     ^~~~~~
a.cc:50:1: error: expected declaration before '}' token
   50 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int d, k;
	cin >> d >> k;
	int u = 100+(10-k)
	if (k >= 10)
		cout << d;
	else
		cout << d+u;
}

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

#include <iostream>
using namespace std;

int main()
{
	int d, k;
	cin >> d >> k;
	if (k >= 10)
		cout << d;
	else
		cout << d+100*(10-k)
}

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

#include<bits/stdc++.h>
#include<iostream>
#include<string.h>
#include<math.h>
using namespace std;
int main()
{
    long long int a,b,i,z=0,c=1,j,n,t;
    cin>>a>>b;
    if(a<10)
    {
        j=100*(10-a);
        ptinrf("%lld\n",j+b);
    }
    else printf("%lld\n",b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'ptinrf' was not declared in this scope; did you mean 'printf'?
   13 |         ptinrf("%lld\n",j+b);
      |         ^~~~~~
      |         printf
Language: C++

include<stdio.h>
include<stdlib.h>

int modpow(long long x,long long n,long long mod){
  if(n == 1) return x % mod;
  if(n % 2 == 1)return (x * modpow(x,n-1,mod)) % mod;
  long long t = modpow(x,n/2,mod);
  return (t*t) % mod;
}


int main(){
  int i;
  long long a,b,n,mod = 1e9+7;
  scanf("%d %d %d",&n,&a,&b);

  long ans, base_ans,a_ans,b_ans;
  int a_head = 1,b_head = 1;
  int a_bottom,b_bottom;

  for(i=0; i<a; i++){
    a_head*=n-i;
    a_bottom*=i+1;
  }
  a_bottom=a_bottom % mod;

  for(i=0; i<b; i++){
    b_head*=n-i;
    b_bottom*=i+1;
  }
  b_bottom=b_bottom % mod;

  a_ans=a_head*modpow(a_bottom, mod-2, mod);
  b_ans=b_head*modpow(b_bottom, mod-2, mod);

  base_ans = modpow(2,n,mod) - 1;
  ans = base_ans - a_ans - b_ans;
  printf("%lld\n",ans);
  return 0;
  }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:15:3: error: 'scanf' was not declared in this scope
   15 |   scanf("%d %d %d",&n,&a,&b);
      |   ^~~~~
a.cc:33:16: error: 'modpow' was not declared in this scope
   33 |   a_ans=a_head*modpow(a_bottom, mod-2, mod);
      |                ^~~~~~
a.cc:38:3: error: 'printf' was not declared in this scope
   38 |   printf("%lld\n",ans);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<stdio.h>
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:11:23: error: 'r' undeclared (first use in this function)
   11 |         printf("%d\n",r);
      |                       ^
main.c:11:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++/h>

using namespace std;

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


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

#include<bits/stdc++/h>

using namespace std;

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '}' token
    8 |     r += (10 - n)*100
      |                      ^
      |                      ;
    9 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  int a[n];
  for(int i=0;i<n;i++){
    cin>>a[i];
  }
  int minumum=1000000000;
  for(int i=1;i<=100;i++){
    int ans=0;
    for(int j=0;j<n;j++){
      ans+=((a[j]-i)*(a[j]-i));
    }
    minimum=min(minimum,ans);
  }
  cout<<minimum<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'minimum' was not declared in this scope; did you mean 'minumum'?
   16 |     minimum=min(minimum,ans);
      |     ^~~~~~~
      |     minumum
a.cc:18:9: error: 'minimum' was not declared in this scope; did you mean 'minumum'?
   18 |   cout<<minimum<<endl;
      |         ^~~~~~~
      |         minumum
Language: C++

#include <string>
#include<vector>
#include<algorithm>

using namespace std;

int main() {
	int N, 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:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N >> R;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<algorithm>
  +++ |+#include <iostream>
    4 | 
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << R+100 * (10 - N) << endl;
      |                 ^~~~
a.cc:11:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:45: error: 'endl' was not declared in this scope
   11 |                 cout << R+100 * (10 - N) << endl;
      |                                             ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include<algorithm>
  +++ |+#include <ostream>
    4 | 
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << R << endl;
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout << R << endl;
      |                              ^~~~
a.cc:14:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
#define ll signed long long int
#define MAXX 1000005
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
 


signed main()
{
	FAST;
	ll n, t;
	cin >> n >> t;
	if(10-n <= 0){
		cout << t;
	}
	else{
		cout <<t+ 100*(10-a);
	}
	
	
	
}
		
		
	
	


Compiler output:
a.cc: In function 'int main()':
a.cc:18:35: error: 'a' was not declared in this scope
   18 |                 cout <<t+ 100*(10-a);
      |                                   ^
Language: C++

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:25: error: 'k' undeclared (first use in this function)
   12 |   printf("%d",r+100*(10-k));
      |                         ^
main.c:12:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

  1 #include <bits/stdc++.h>                                                                   
  2 using namespace std;                                                                       
  3                                                                                            
  4 int main(){                                                                                
  5                                                                                            
  6         int n,r,o;                                                                         
  7         scanf("%d %d", &n, &r);                                                            
  8         if(n<10){                                                                          
  9                 o=100*(10-n);                                                              
 10                 printf("%d", r+o);                                                         
 11         } else if(n>10){                                                                   
 12                 printf("%d", r);                                                           
 13         }                                                                                  
 14         return 0;                                                                          
 15 }                                                                                          
~                                                                                              
~                                                                                              
~                                                                                              
~                        

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 |   1 #include <bits/stdc++.h>
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include <bits/stdc++.h>
      |   ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 |   3
      |   ^
a.cc:17:1: error: expected class-name before '~' token
   17 | ~
      | ^
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> n >> r;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << res << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |     cout << res << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: Java

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: Java

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

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
Main.java:14: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

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

}

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

import java.util*

public class Main(){
	public static void main(String args[]){
    Scanner s = new Scanner(System.in);
    int c = s.nextInt();
    int r = s.nextInt();
    
    int res = (c>10)?r:(r-(100*(10-r)));
    System.out.println(res);
    }

	
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*
                ^
Main.java:3: error: '{' expected
public class Main(){
                 ^
2 errors
Language: C++

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'K' was not declared in this scope
   14 |     cout << 100 * (10 - K) << endl;
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define pll pair<ll,ll>
#define x first
#define y second
#define mod 1e9+7
#define f(i,a,b) for(ll i=a;i<b;i++)
#define rof(i,a,b) for(ll i=a;i>b;i--)

//int a[1001][1001] //aise global me hi

ll lcm(ll a, ll b){
    return a / __gcd(a, b) * b;
}
//memset can initialize to 0 or -1 ONLY //memset(str, 't', sizeof(str)); // string
//memset(a, 0, sizeof(a));  //1D array    // memset(a,0,sizeof(a[0][0])*n*n); //2D array
// set.insert(),find()    // sort(v.begin(),v.end(),compare)

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


int main()
{

ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    ll t=1;
   // cin>>t;
    while(t--)
    {
    
    solve();
    
    }

}

Compiler output:
a.cc: In function 'void solve()':
a.cc:29:17: error: 'k' was not declared in this scope
   29 | cout<<r+100*(10-k);
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before '}' token
    9 |   else cout << R - 100 * (10 - R)
      |                                  ^
      |                                  ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'K' was not declared in this scope
    8 |   if(N >= 10) cout << K << endl;
      |                       ^
a.cc:9:16: error: 'K' was not declared in this scope
    9 |   else cout << K - 100 * (10 - K)
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'in' was not declared in this scope; did you mean 'yn'?
    5 |   in N, R;
      |   ^~
      |   yn
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> R;
      |          ^
a.cc:6:15: error: 'R' was not declared in this scope
    6 |   cin >> N >> R;
      |               ^
a.cc:8:23: error: 'K' was not declared in this scope
    8 |   if(N >= 10) cout << K << endl;
      |                       ^
a.cc:9:16: error: 'K' was not declared in this scope
    9 |   else cout << K - 100 * (10 - K)
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int) n; i++)
using ll = long long;

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

  return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int) n; i++)
using ll = long long;

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

  return 0;
}

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

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

int main(){
    ll n,r;
    cin>>n>>r;
    cout<<(n>=10?r:r+100*(10-k))<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'k' was not declared in this scope
   12 |     cout<<(n>=10?r:r+100*(10-k))<<endl;
      |                              ^
Language: C++

#include <iostream>

int main() {
  int n, r;
  std::cin >> n >> r;

  if (n < 10)
    std::cout << n << std::endl;
  else
    std::cout << 100 * (10 - k) << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'k' was not declared in this scope
   10 |     std::cout << 100 * (10 - k) << std::endl;
      |                              ^
Language: C++

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

int main()
{

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



Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: 'k' was not declared in this scope
   16 |     ans -= 100*(10-k) ;
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:37: error: 'K' was not declared in this scope
   10 |                 cout << 100 * (10 - K) << endl;
      |                                     ^
Language: C++

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> N >> R;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << R << endl;
      |         ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << R << endl;
      |                      ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << R+(100*(10-N)) << endl;
      |         ^~~~
a.cc:11:35: error: 'endl' was not declared in this scope
   11 |         cout << R+(100*(10-N)) << endl;
      |                                   ^~~~
Language: C++

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> N >> r;
      |     ^~~
a.cc:7:17: error: 'r' was not declared in this scope
    7 |     cin >> N >> r;
      |                 ^
a.cc:8:9: error: 'n' was not declared in this scope
    8 |     if (n>=10){
      |         ^
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << R << endl;
      |         ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << R << endl;
      |                      ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << R + (100 * ( 10 - N )) << endl;
      |         ^~~~
a.cc:11:43: error: 'endl' was not declared in this scope
   11 |         cout << R + (100 * ( 10 - N )) << endl;
      |                                           ^~~~
Language: C++

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> n >> r;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << r << endl;
      |         ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << r << endl;
      |                      ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << r + (100 * ( 10 - n )) << endl;
      |         ^~~~
a.cc:11:43: error: 'endl' was not declared in this scope
   11 |         cout << r + (100 * ( 10 - n )) << endl;
      |                                           ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if(a < 10) System.out.println(b + 100 * (10 - 2);
        else system.out.println(b);
    }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
        if(a < 10) System.out.println(b + 100 * (10 - 2);
                                                        ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: expected ';' before 'if'
    6 |   ans = ((10 - n)*100)
      |                       ^
      |                       ;
    7 | 
    8 |   if(n >= 10){
      |   ~~
Language: C++

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

// typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<PII> VP;

// rep
//------------------------------------------
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) (x).begin(), (x).end()
#define DEBUG(x) cerr << #x << ": " << x << '\n'
#define DEBUGP(x) cerr << #x << ": " << x.first << " \t" << x.second << '\n'

int n, r;

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n >> r;
      |     ^~~
a.cc:4:18: error: 'cout' was not declared in this scope
    4 |     if (n >= 10) cout << r << endl;
      |                  ^~~~
a.cc:4:31: error: 'endl' was not declared in this scope
    4 |     if (n >= 10) cout << r << endl;
      |                               ^~~~
a.cc:5:10: error: 'cout' was not declared in this scope
    5 |     else cout << r + 100 * (10 - n) << endl;
      |          ^~~~
a.cc:5:40: error: 'endl' was not declared in this scope
    5 |     else cout << r + 100 * (10 - n) << endl;
      |                                        ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < n; i++)
using namespace std;
int main(){

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

    

Compiler output:
a.cc:23:3: error: 'cout' does not name a type
   23 |   cout <<
      |   ^~~~
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: expected declaration or statement at end of input
   10 |     printf("%d\n",ans);
      |     ^~~~~~
main.c:10:5: error: expected declaration or statement at end of input
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for(i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define MOD 1000000007

int main(){
  ll N, R, ans;
  cin >> N >> R;
  
  ans = R;
  
  if(N < 10){
    ans -= (10 - N)*100;

  cout << ans << endl;
  return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a >>b;
      |   ^~~
a.cc:7:19: error: 'b' was not declared in this scope
    7 |   if(a>=10)cout <<b<<endl;
      |                   ^
a.cc:8:16: error: 'b' was not declared in this scope
    8 |   else cout << b + 100*(10-a) << endl;
      |                ^
Language: C

#include <stdio.h>

int main()
{
  int n,r;
  scanf_s("%d%d",&n,&r);
  if (n >= 10)
    printf("%d",r);
  else
    printf("%d",r+(10-n)*100);
}

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

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected identifier or '(' before ';' token
    4 |     int n,r,s,;
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected ')' before ';' token
    5 |   printf("%d",r+(100*(10-n));
      |         ~                   ^
      |                             )
main.c:6:19: error: expected ';' before '}' token
    6 |          return 0;
      |                   ^
      |                   ;
    7 |          }
      |          ~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
using namespace std;
using Graph = vector<vector<int> >;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << R + 100*(10-N) <<endl;
      |   ^~~~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before '}' token
   13 |  return 0
      |          ^
      |          ;
   14 | }
      | ~
Language: Java

import java.util.*;
public class Main{
  public static void main{
    Scanner sc =new Scanner(System.in);
    int N=sc.nextInt();
    int R =100*Math.max(0,10-N)+sc.nextInt();
    System.out.println(R);
  }
}

Compiler output:
Main.java:3: error: '(' expected
  public static void main{
                         ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'K' was not declared in this scope
    9 |  else{cout << R+(100*(10-K)) << 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 - K) << endl;
  }
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: 'K' was not declared in this scope
   13 |     cout << R + 100 * (10 - K) << endl;
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FASTIO ios_base::sync_with_stdio(0); cin.tie(NULL);


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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expression cannot be used as a function
   14 |     cout<<r+100(10-n)<<endl;
      |             ~~~^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: expected ';' before 'if'
    6 |   sum = 100 * (10 - a)
      |                       ^
      |                       ;
    7 | 
    8 |   if(a >= 10){
      |   ~~                   
main.c:16:3: error: expected declaration or statement at end of input
   16 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before '>' token
    7 |   if(N=>10) {
      |        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'coud' was not declared in this scope
    8 |         else coud << R-100*(10-N) << endl;
      |              ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'K' was not declared in this scope
    7 |         if (K >= 10) cout << R << endl;
      |             ^
a.cc:8:14: error: 'coud' was not declared in this scope
    8 |         else coud << R-100*(10-K) << endl;
      |              ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a,b,c;
  	cin >> a >> b >> c;
  	if (a == b || b == c || a == c){
      cout << "Yes";
      
    }
  	else{
    cout << "No"
    }
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before '}' token
   12 |     cout << "No"
      |                 ^
      |                 ;
   13 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b ;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << b << endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |         cout << b << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << b << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout << b << endl;
      |                      ^~~~
a.cc:11:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
	int n, k;
  	cin>>n>>k;
  	
  	int out = (k>=10)?r:(100*(10-k));
  	cout<<out<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'r' was not declared in this scope
    8 |         int out = (k>=10)?r:(100*(10-k));
      |                           ^
Language: Java

package contest_156;

import java.util.Scanner;

public class Beginner {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int DR = scn.nextInt();
		int CR = 0;
		if (n > -10) {
			CR = DR;
		} else {
			CR = DR + 100 * (10 - n);
		}
		System.out.println(CR);
	}
}


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

static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int DR = scn.nextInt();
		int CR = 0;
		if (n > -10) {
			CR = DR;
		} else {
			CR = DR + 100 * (10 - n);
		}
		System.out.println(CR);
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
static Scanner scn = new Scanner(System.in);
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Beginner {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int DR = scn.nextInt();
		int CR = 0;
		if (n > -10) {
			CR = DR;
		} else {
			CR = DR + 100 * (10 - n);
		}
		System.out.println(CR);
	}
}


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

#include<stdio.h>
#include<stdlib.h>
int main(){
int N, DispR;
int InnR;
scanf("%d", &N);
scanf("%d", &DispR);
if(N>=10)
{
InnR = DispR;
printf("%d", InnR);
}
else
{
InnR = Disp + 100*(10-N);
printf("%d", InnR)
}

Compiler output:
main.c: In function 'main':
main.c:15:8: error: 'Disp' undeclared (first use in this function); did you mean 'DispR'?
   15 | InnR = Disp + 100*(10-N);
      |        ^~~~
      |        DispR
main.c:15:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:19: error: expected ';' before '}' token
   16 | printf("%d", InnR)
      |                   ^
      |                   ;
   17 | }
      | ~                  
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define ll long long
using namespace std;
 
int main(){
 int N,R;
 cin>>N>>R;

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

return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected primary-expression before ';' token
   11 |  else{cout<<R<<;}
      |                ^
Language: Java

import java.util.Scanner;
 
class Main{
 
	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();
		int B = stdIn.nextInt();
		int C;
		
		if (A <= 10) {
			C = B + (100 * (10 - A));
			System.out.println(C);
		}else{
			System.out.println(B);
		}
		
	
	}

Compiler output:
Main.java:21: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include "bits/stdc++.h"
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/rational.hpp>
using namespace std;


#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()


bool my_cp(pair<int, int> a, pair<int, int> b){
  return (double)b.first / (double)(b.second+1) < (double)a.first / (double)(a.second+1);
}



// substr(start, len)

int main(){
  int N, R, rate;

  cin >> N >> R;

  if(N >= 10){
    rate = R;
  }else{
    rate = R + 100*(10-K);
  }

  cout << rate << endl;
  

// CHECK if it's possible to overflow!!
}

Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_dec_float.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_dec_float.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no match for 'operator+=' (operand types are 'std::basic_ostream<char>' and 'int')
   12 |     cout << ans+=r;
      |     ~~~~~~~~~~~^~~
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no match for 'operator+=' (operand types are 'std::basic_ostream<char>' and 'int')
   12 |     cout << ans+=r;
      |     ~~~~~~~~~~~^~~