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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before '>' token
   10 |   if(n => 10){
      |         ^
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, R;
  cin >> N >> R;
  
  if (N < 10){
    cout << R + 1000 - 100 * N << endl;
  }
  else{
    cout << R << endl;
  }
}

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

#include<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:
main.c: In function 'main':
main.c:9:14: error: stray '\303' in program
    9 |     int x=100<U+00D7>(10<U+2212>R)+R;
      |              ^~~~~~~~
main.c:9:18: error: stray '\342' in program
    9 |     int x=100<U+00D7>(10<U+2212>R)+R;
      |                         ^~~~~~~~
main.c:9:18: error: expected ')' before 'R'
    9 |     int x=100×(10−R)+R;
      |               ~  ^~
      |                  )
main.c:9:11: error: called object is not a function or function pointer
    9 |     int x=100×(10−R)+R;
      |           ^~~
Language: Java

package zz_kono;

import java.util.Scanner;

public class AtCoder01 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int r = sc.nextInt();

		int innerRate = 0;
		if (n >= 10) {
			innerRate = r;
		} else {
			innerRate = r + (100 * (10 - n));
		}

		System.out.println(innerRate);

		sc.close();
	}
}


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

#include "stdafx.h"
#include <bits/stdc++.h>
#define f(i,n) for(int i=0;i<n;i++)
#define P pair<int,int>
#define F first
#define S second
#define int long long
using namespace std;
signed main() {
	int a, b;
	cin >> a >> b;
	cout << b + max((int)0, 10 - a) * 100 << endl;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
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:8:3: error: expected primary-expression before 'if'
    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 {
    cout<<(r-100*(10-n))<<endl;
  }
  return ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |   return ;
      |   ^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)
#define REP(i,n) for (int i=1;i<=n;i++)

int ketasu(int n,int m) {
	int count = 1;
	while (n >= m) {
		n /= m;
		count++;
	}
	return count;
}

int main() {
  int n;cin>>n;
  cout<<ketasu(n,m)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: 'm' was not declared in this scope
   20 |   cout<<ketasu(n,m)<<endl;
      |                  ^
Language: C

#include<iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'iont' was not declared in this scope; did you mean 'int'?
    5 |         iont n,m;
      |         ^~~~
      |         int
a.cc:6:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         cin>>n>>m;
      |              ^
      |              yn
a.cc:6:17: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |         cin>>n>>m;
      |                 ^
      |                 tm
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected primary-expression before ';' token
   11 |         cout<<;
      |               ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> 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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << result;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define sci(x) scanf("%d",&x);
#define scd(x) scanf("%lf",&x);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'mn' was not declared in this scope; did you mean 'n'?
   12 |         ans=100*(10-mn);
      |                     ^~
      |                     n
Language: C++

#include <iostream>
#include <cstdlib>
#include <utility>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <cmath>

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

using namespace std;
typedef pair<int, int> pint;

int main() {
  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 'int main()':
a.cc:21:34: error: 'k' was not declared in this scope
   21 |     else cout << r + 100 * (10 - k)<< endl;
      |                                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: stray '\342' in program
    4 |         scanf(<U+201C>%d %d<U+201D>,&N,&R);
      |               ^~~~~~~~
main.c:4:16: error: expected expression before '%' token
    4 |         scanf(“%d %d”,&N,&R);
      |                ^
main.c:4:21: error: stray '\342' in program
    4 |         scanf(<U+201C>%d %d<U+201D>,&N,&R);
      |                            ^~~~~~~~
main.c:6:24: error: stray '\342' in program
    6 |                 printf(<U+201C>%d\n<U+201D>,R);
      |                        ^~~~~~~~
main.c:6:25: error: expected expression before '%' token
    6 |                 printf(“%d\n”,R);
      |                         ^
main.c:6:27: error: stray '\' in program
    6 |                 printf(“%d\n”,R);
      |                           ^
main.c:6:29: error: stray '\342' in program
    6 |                 printf(<U+201C>%d\n<U+201D>,R);
      |                                    ^~~~~~~~
main.c:8:24: error: stray '\342' in program
    8 |                 printf(<U+201C>%d\n<U+201D>,R+100*(10-N));
      |                        ^~~~~~~~
main.c:8:25: error: expected expression before '%' token
    8 |                 printf(“%d\n”,R+100*(10-N));
      |                         ^
main.c:8:27: error: stray '\' in program
    8 |                 printf(“%d\n”,R+100*(10-N));
      |                           ^
main.c:8:29: error: stray '\342' in program
    8 |                 printf(<U+201C>%d\n<U+201D>,R+100*(10-N));
      |                                    ^~~~~~~~
Language: C++

n ,r = input().split(" ")
n = int(n)
r = int(r)
if n < 10:
    print( r + 100 * (10 - n))
else:
    print(r)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n ,r = input().split(" ")
      | ^
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:
main.c: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 n,m;
    cin>>n>>m;
    if(n>=10)
        cout<<m<<endl;
    else
    {
        cout<<m+(100*(10-n))<<endl;
    }
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N>>R;
      |   ^~~
a.cc:9:9: error: expected '(' before '{' token
    9 |  else if{
      |         ^
      |         (
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << H << endl;
      |   ^~~~
a.cc:13:16: error: 'endl' was not declared in this scope
   13 |   cout << H << endl;
      |                ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: stray '\303' in program
    8 | printf("%d",100<U+00D7>(10<U+2212>R)+R);
      |                ^~~~~~~~
main.c:8:20: error: stray '\342' in program
    8 | printf("%d",100<U+00D7>(10<U+2212>R)+R);
      |                           ^~~~~~~~
main.c:8:20: error: expected ')' before 'R'
    8 | printf("%d",100×(10−R)+R);
      |                 ~  ^~
      |                    )
main.c:8:13: error: called object is not a function or function pointer
    8 | printf("%d",100×(10−R)+R);
      |             ^~~
Language: C

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

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)
#define REP(i,n) for (int i=1;i<=n;i++)
 
int main() {
  int n;cin>>n;
  int ketasu(int n,int m) {
	int count = 1;
	while (n >= m) {
		n /= m;
		count++;
	}
	return count;
}
  cout<<ketasu(n,m)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: a function-definition is not allowed here before '{' token
   11 |   int ketasu(int n,int m) {
      |                           ^
a.cc:19:18: error: 'm' was not declared in this scope
   19 |   cout<<ketasu(n,m)<<endl;
      |                  ^
a.cc:19:9: error: 'ketasu' was not declared in this scope
   19 |   cout<<ketasu(n,m)<<endl;
      |         ^~~~~~
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:8:3: error: expected primary-expression before 'if'
    8 |   if (n>=10) {
      |   ^~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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:10:17: error: extended character × is not valid in an identifier
   10 |     cout << R - 100×(10−N) << endl;
      |                 ^
a.cc:10:22: error: extended character − is not valid in an identifier
   10 |     cout << R - 100×(10−N) << endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:10:17: error: unable to find numeric literal operator 'operator""\U000000d7'
   10 |     cout << R - 100×(10−N) << endl;
      |                 ^~~~
a.cc:10:22: error: unable to find numeric literal operator 'operator""\U00002212N'
   10 |     cout << R - 100×(10−N) << endl;
      |                      ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: stray '\303' in program
    8 | printf("%d",100<U+00D7>(10<U+2212>R)+R;
      |                ^~~~~~~~
main.c:8:20: error: stray '\342' in program
    8 | printf("%d",100<U+00D7>(10<U+2212>R)+R;
      |                           ^~~~~~~~
main.c:8:20: error: expected ')' before 'R'
    8 | printf("%d",100×(10−R)+R;
      |                 ~  ^~
      |                    )
main.c:8:13: error: called object is not a function or function pointer
    8 | printf("%d",100×(10−R)+R;
      |             ^~~
main.c:8:25: error: expected ')' before ';' token
    8 | printf("%d",100×(10−R)+R;
      |       ~                 ^
      |                         )
main.c:8:26: error: expected ';' before '}' token
    8 | printf("%d",100×(10−R)+R;
      |                          ^
      |                          ;
    9 |        }
      |        ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: stray '\342' in program
    4 |         scanf(<U+201C>%d %d<U+201D>,&N,&R);
      |               ^~~~~~~~
main.c:4:16: error: expected expression before '%' token
    4 |         scanf(“%d %d”,&N,&R);
      |                ^
main.c:4:21: error: stray '\342' in program
    4 |         scanf(<U+201C>%d %d<U+201D>,&N,&R);
      |                            ^~~~~~~~
main.c:6:24: error: stray '\342' in program
    6 |                 printf(<U+201C>%d\n<U+201D>,R);
      |                        ^~~~~~~~
main.c:6:25: error: expected expression before '%' token
    6 |                 printf(“%d\n”,R);
      |                         ^
main.c:6:27: error: stray '\' in program
    6 |                 printf(“%d\n”,R);
      |                           ^
main.c:6:29: error: stray '\342' in program
    6 |                 printf(<U+201C>%d\n<U+201D>,R);
      |                                    ^~~~~~~~
main.c:8:24: error: stray '\342' in program
    8 |                 printf(<U+201C>%d\n<U+201D>,R+100*(10-N));
      |                        ^~~~~~~~
main.c:8:25: error: expected expression before '%' token
    8 |                 printf(“%d\n”,R+100*(10-N));
      |                         ^
main.c:8:27: error: stray '\' in program
    8 |                 printf(“%d\n”,R+100*(10-N));
      |                           ^
main.c:8:29: error: stray '\342' in program
    8 |                 printf(<U+201C>%d\n<U+201D>,R+100*(10-N));
      |                                    ^~~~~~~~
Language: Java

import java.util.Scanner;


public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
        STring[] data  =s.split(" ");

      
        int N = Integer.parseInt(data[0]);
        int R = Integer.parseInt(data[1]);
		
		System.out.println(R - (100*(10-N)));
	}
}


Compiler output:
Main.java:10: error: cannot find symbol
        STring[] data  =s.split(" ");
        ^
  symbol:   class STring
  location: class Main
1 error
Language: C++

#![allow(unused)]

//input
//use std::io::Read;

//collections
//use std::collections::BTreeMap;
//use std::collections::BTreeSet;
//use std::collections::HashMap;
//use std::collections::HashSet;

//入力マクロここから
//https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}
//入力マクロここまで

fn main() {
    input! {
        n: u64,
        r: u64,
    }

    if n < 10 {
        println!("{}", r + 100 * (10 - n));
    } else {
        println!("{}", r);
    }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #![allow(unused)]
      |  ^
a.cc:51:10: error: too many decimal points in number
   51 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:14:1: error: 'macro_rules' does not name a type
   14 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:35:1: error: 'macro_rules' does not name a type
   35 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:45:1: error: 'macro_rules' does not name a type
   45 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:68:1: error: 'fn' does not name a type
   68 | fn main() {
      | ^~
Language: C++

#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<algorithm>
#include<queue>
#include<map>
#include<vector>
#include<functional>
#include <random>
#include<iostream>
#include<iomanip>
using namespace std;

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

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

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

int main() {FIN

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:49: error: expected ';' before 'return'
   12 |               cout << r + 100 * (10 - n) << "\n"
      |                                                 ^
      |                                                 ;
   13 |         return 0;
      |         ~~~~~~
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
 
import java.util.*;
import java.lang.*;
import java.io.*;

@SuppressWarnings("unchecked")
public class Solution implements Runnable {

  static BufferedReader in;
  static PrintWriter out;
 
  public static void main(String[] args) {
      new Thread(null, new Solution(), "whatever", 1<<29).start();
  }
 
  public void run() {
    in = new BufferedReader(new InputStreamReader(System.in));
    out = new PrintWriter(System.out, false);
 
    try
    {
      // in = new BufferedReader(new FileReader("class_treasurer.txt"));
      // out = new PrintWriter("output.txt");

      int t,x1,n,r,inner;
      String str;
      String[] token;

      str=in.readLine().trim();
      token=str.split(" ");
      n=Integer.parseInt(token[0]);
      r=Integer.parseInt(token[1]);

      if(n>=10) {
        inner=r;
      }
      else {
        inner=r+(100*(10-n));
      }

      out.println(inner);


      out.flush();
      out.close();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  }
}


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

import java.util.*

fun main(args: Array<String>) {
    val scn = Scanner(System.`in`)
    val N = scn.nextInt()
    val R = scn.nextInt()

    if(N>=10){
        println(R)
        return
    }

    var ans = 0
    ans =  R+ 100*(10-N)
    println(ans)
}

Compiler output:
a.cc:4:30: error: stray '`' in program
    4 |     val scn = Scanner(System.`in`)
      |                              ^
a.cc:4:33: error: stray '`' in program
    4 |     val scn = Scanner(System.`in`)
      |                                 ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

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

  else{
    cout << R << endl;
    }

}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#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<<r+100*(10-n)-<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected primary-expression before '<<' token
   12 |         cout<<r+100*(10-n)-<<endl;
      |                            ^~
Language: Java

Main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int r = scan.nextInt();

		if(n >= 10) {
			System.out.println(r);
		}else {
			System.out.println(r + (10 - n) * 100);
		}


	}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Main(String[] args) {
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
		int n = scan.nextInt();
		^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: class, interface, enum, or record expected
		if(n >= 10) {
		^
Main.java:9: error: class, interface, enum, or record expected
		}else {
		^
Main.java:11: error: class, interface, enum, or record expected
		}
		^
5 errors
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;
  }
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |     cout<<(R+(100*(10-N))<<endl;
      |            ~~~~~~~~~~~~~~^~~~~~
a.cc:16:32: error: expected ')' before ';' token
   16 |     cout<<(R+(100*(10-N))<<endl;
      |           ~                    ^
      |                                )
Language: C++

def main():
    import sys
    input = sys.stdin.readline
    N, R = map(int,input().split())
    if N >= 10:
        print(R)
    elif N < 10:
        print(R + 100 * (10 - N))

if __name__ == "__main__":
    main()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:5:2: error: stray '#' in program
    5 | }#include<bits/stdc++.h>
      |  ^
a.cc:5:3: error: 'include' does not name a type
    5 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:7:5: error: redefinition of 'int main()'
    7 | int main() {
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main() {
      |     ^~~~
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expected ';' before '}' token
   11 |       rating = R - 100 * (10 - N)
      |                                  ^
      |                                  ;
   12 |     } else {
      |     ~                             
a.cc:13:17: error: expected ';' before '}' token
   13 |       rating = R
      |                 ^
      |                 ;
   14 |     }
      |     ~
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<<r<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before '<<' token
    7 |     cout<<r+100*(10-n);<<endl;
      |                        ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <map>
#include <string>
#include <math.h>
using namespace std;


int main() {

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

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

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'n' 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;
      |                 ^
Language: C++

import sys
n, r = [int(x) for x in input().split()]
if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n))


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <cstdlib>
#include <utility>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <cmath>
#include <bitset>

using namespace std;

using ll = long long int;
using vi vector<int>;
using vi2 vector<vi>;
using vi3 vector<vi2>;
using vll vector<ll>;
using vll vector<vll>;
using vll vector<vll2>;
using vd vector<double>;
using vd2 vector<vd>;
using vd3 vector<vd2>;
using pi = pair<int, int>;
using pll = pair<ll, ll>;
using vpi = vector<pi>;
using vpll = vector<pll>;
const double eps = 1e-7;
#define loop(i, n) for (int i = 0; i < (int)n; i++)
#define loopeq(i, n) for (int i = 0; i <= (int)n; i++)
#define loopll(i, n) for (ll i = 0; i < (ll)n; i++)
#define looplleq(i, n) for (ll i = 0; i <= (ll)n; i++)
#define rloop(i, n) for (int i = (int)n - 1; i >= 0; i--)
#define rloopeq(i, n) for (int i = (int)n - 1; i >= 1; i--)
#define rloopll(i, n) for (int i = (ll)n - 1; i >= 0; i--)
#define rlooplleq(i, n) for (int i = (ll)n - 1; i >= 1; i--)
bool feq(float x, float y) {return abs(x-y) <= eps;}
bool deq(double x, double y) {return abs(x-y) <= eps;}
int ceillog2(ll x) {return int(ceil(log2(x)));}
int floorlog2(ll x) {return int(floor(log2(x)));}
template<class T> T reversed (T container) { reverse(container.begin(), container.end()); return container; }
template<class T> T sort (T container) { sort(container.begin(), container.end()); return container; }
ll gcd(ll m, ll n) {if (n == 0) return m; else return gcd(n, m % n);}
ll lcm(ll m, ll n) {return m * n / gcd(m, n);}

typedef pair<int, int> pint;

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


Compiler output:
a.cc:16:7: error: expected nested-name-specifier before 'vi'
   16 | using vi vector<int>;
      |       ^~
a.cc:17:7: error: expected nested-name-specifier before 'vi2'
   17 | using vi2 vector<vi>;
      |       ^~~
a.cc:18:7: error: expected nested-name-specifier before 'vi3'
   18 | using vi3 vector<vi2>;
      |       ^~~
a.cc:19:7: error: expected nested-name-specifier before 'vll'
   19 | using vll vector<ll>;
      |       ^~~
a.cc:20:7: error: expected nested-name-specifier before 'vll'
   20 | using vll vector<vll>;
      |       ^~~
a.cc:21:7: error: expected nested-name-specifier before 'vll'
   21 | using vll vector<vll2>;
      |       ^~~
a.cc:22:7: error: expected nested-name-specifier before 'vd'
   22 | using vd vector<double>;
      |       ^~
a.cc:23:7: error: expected nested-name-specifier before 'vd2'
   23 | using vd2 vector<vd>;
      |       ^~~
a.cc:24:7: error: expected nested-name-specifier before 'vd3'
   24 | using vd3 vector<vd2>;
      |       ^~~
a.cc: In function 'int main()':
a.cc:53:34: error: 'k' was not declared in this scope
   53 |     else cout << r + 100 * (10 - k)<< endl;
      |                                  ^
Language: C++

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

int main(void)
{
    int n,r;

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

    if(n>=10) pritnf("%d",r);
    else printf("%d",r+100*(10-n));

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   10 |     if(n>=10) pritnf("%d",r);
      |               ^~~~~~
      |               printf
Language: C++

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

int main() {
  cin.tie()->sync_with_stdio(0):
  
  int n, r;
  cin >> n >> r;
  
  cout << (n < 10 ? r + (100 * (10 - n)) : r);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:32: error: expected ';' before ':' token
    6 |   cin.tie()->sync_with_stdio(0):
      |                                ^
      |                                ;
a.cc:9:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |   cin >> n >> r;
      |          ^
      |          yn
a.cc:9:15: error: 'r' was not declared in this scope
    9 |   cin >> n >> r;
      |               ^
Language: C++

#include <iostream>

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

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << ans << 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:12:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << ans << 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: Java

public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int r = scan.nextInt();

		if(n >= 10) {
			System.out.println(r);
		}else {
			System.out.println(r + (10 - n) * 100);
		}


	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <bits/stdc++.h>

int main(int argc, const char * argv[]) {

  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.precision(13);
  cout.setf(ios::fixed);
  srand((unsigned int)time(NULL));
   
  // enter your code here
  int n, r;
  
  while (cin >> n >> r) {
    cout << (10 <= n ? r : r + 100 * (10 - n)) << endl;
  }
  
  

  return 0;
}



Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:3: error: 'ios' has not been declared
    5 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin.tie(0);
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout.precision(13);
      |   ^~~~
      |   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:13: error: 'ios' has not been declared
    8 |   cout.setf(ios::fixed);
      |             ^~~
a.cc:15:51: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout << (10 <= n ? r : r + 100 * (10 - n)) << endl;
      |                                                   ^~~~
      |                                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'K' was not declared in this scope
   12 |     U = R + 100*(10-K);
      |                     ^
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
	int r = Integer.parseInt(sc.next());

    if(n=>10){
      System.out.println(r);
    } else {
      System.out.println(r+1000-100*n);
    }
    
  }
}


Compiler output:
Main.java:9: error: illegal start of expression
    if(n=>10){
         ^
1 error
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);


int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int nmax = 50, wmax = 10000;
int dp[nmax][wmax][nmax];

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


Compiler output:
a.cc:38:20: error: size of array 'dp' is not an integral constant-expression
   38 | int dp[nmax][wmax][nmax];
      |                    ^~~~
a.cc:38:14: error: size of array 'dp' is not an integral constant-expression
   38 | int dp[nmax][wmax][nmax];
      |              ^~~~
a.cc:38:8: error: size of array 'dp' is not an integral constant-expression
   38 | int dp[nmax][wmax][nmax];
      |        ^~~~
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;
  }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expression cannot be used as a function
   16 |     cout<<(R+(100(10-N))<<endl;
      |               ~~~^~~~~~
a.cc:16:31: error: expected ')' before ';' token
   16 |     cout<<(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 + (100 * (10 - k));
  }else{
    cout << r;
  }
}


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

#include<iostream>

int main() {
  int a, b;
  cin >> a >> b;
  
  
  cout << a >= 10 ? b : b + 100 * (10 - a) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << a >= 10 ? b : b + 100 * (10 - a) << 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:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << a >= 10 ? b : b + 100 * (10 - a) << 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++

#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI=acos(-1.0);
#define t1(x)             cerr<<#x<<"="<<x<<endl
#define t2(x, y)          cerr<<#x<<"="<<x<<" "<<#y<<"="<<y<<endl
#define t3(x, y, z)       cerr<<#x<<"=" <<x<<" "<<#y<<"="<<y<<" "<<#z<<"="<<z<<endl
#define t4(a,b,c,d)       cerr<<#a<<"="<<a<<" "<<#b<<"="<<b<<" "<<#c<<"="<<c<<" "<<#d<<"="<<d<<endl
#define t5(a,b,c,d,e)     cerr<<#a<<"="<<a<<" "<<#b<<"="<<b<<" "<<#c<<"="<<c<<" "<<#d<<"="<<d<<" "<<#e<<"="<<e<<endl
#define t6(a,b,c,d,e,f)   cerr<<#a<<"="<<a<<" "<<#b<<"="<<b<<" "<<#c<<"="<<c<<" "<<#d<<"="<<d<<" "<<#e<<"="<<e<<" "<<#f<<"="<<f<<endl
#define GET_MACRO(_1,_2,_3,_4,_5,_6,NAME,...) NAME
#define t(...) GET_MACRO(__VA_ARGS__,t6,t5, t4, t3, t2, t1)(__VA_ARGS__)
//freopen("output.txt","w",stdout);
//freopen("input.txt","r",stdin);
/*-------------------------------------------------------------------------------------------------------------------------------------*/
#define MOD 1000000007
#define endl "\n" 
#define int long long // remove when constraints are tight.
#define inf 1e18
#define ld long double
/*-------------------------------------------------------------------------------------------------------------------------------------*/

int32_t main()
{
	ios::sync_with_stdio(0);cin.tie(0);
	int n,r;
	cin>>n>>r;
	if(n<10)
	{
		cout<<r+100*(10-k)<<endl;
	}
	else
	{
		cout<<r<<endl;
	}
	
}


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

#include <bits/stdc++.h>

#define rep(X,N) for(ll X = 0; X < (N); X++)
#define PI (acos(-1.0))
#define pback push_back
#define mpair make_pair
#define MODN 1000000007
#define ALL(V) (V).begin(),(V).end()
#define CERR if(false) cerr
#define INT_MAX_HALF (INT_MAX / 2)
#define EPS (1e-10)

using namespace std;

typedef long long ll;


int main(){

    int n,r;
    cin >> n >> r;

    if(n >= 10){
        cout << r << endll;
    }else{
        cout << r - 100 * (10 - n) << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'endll' was not declared in this scope
   24 |         cout << r << endll;
      |                      ^~~~~
Language: C++

#include <bits/stdc++.h>
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) R += 100*(10=N);
  
  cout << R << endl;
  
  return 0;
}

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

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define INF 100000000
using namespace std;
const int mod = 1000000007;

int main() {

  int N;
  cin>>N>>R;
  if(N>=10)cout<<R<<endl;
  else cout<<100*(10-N)+R<<endl;
  //vector<int> A(N);
  //for(int i=0; i<N; i++){cin>>A[i];}
  //vector<vector<int>> A(N,vector<int>(M));
  //for(int i=0; i<N; i++){for(int j=0; j<M; j++){cin>>A[i][j];}}
  //sort(A.begin(),A.end());
  //for (int i = 0; i < N; i++) { maximum = max(maximum , A[i]);}
  //for (int i = 0; i < N; i++) { minimum = min(minimum , A[i]);}
  //cout <<  << endl;
}


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

#include<iostream>
using namespace std;
int main(){
	int n,m;
  cin>>n>>m;
  if(n>=10)cout<<m<<endl;
  else cout<<100×(10−n)<<endl;
}

Compiler output:
a.cc:7:14: error: extended character × is not valid in an identifier
    7 |   else cout<<100×(10−n)<<endl;
      |              ^
a.cc:7:19: error: extended character − is not valid in an identifier
    7 |   else cout<<100×(10−n)<<endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:7:14: error: unable to find numeric literal operator 'operator""\U000000d7'
    7 |   else cout<<100×(10−n)<<endl;
      |              ^~~~
a.cc:7:19: error: unable to find numeric literal operator 'operator""\U00002212n'
    7 |   else cout<<100×(10−n)<<endl;
      |                   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,x,y) for(int i=x;i<y;i++)
#define print(A,x,n) rep(i,0,n){cout<<(i ? " ":"")<<A[i]x;}cout<<endl;
#define pprint(A,y,m,n) rep(j,0,m){print(A[j],y,n);}
const long mod=1e9+7;
const int size=1e4;
const long inf=1e18;
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:15: error: 'R' was not declared in this scope
   10 |         int N;R;cin>>N>>R;
      |               ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)
#define REP(i,n) for (int i=1;i<=n;i++)

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,r;
    scanf("%d%d",&n,&r);
    printf("%d",r+max(0,(10-n))*100)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: expected ';' before '}' token
    6 |     printf("%d",r+max(0,(10-n))*100)
      |                                     ^
      |                                     ;
    7 | }
      | ~
Language: C++

#inlucde<bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int c = 1;
  int t = 1;
  while (n > t) {
    c++;
    t *= k;
  }
  cout << c << endl;
}

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

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
int n,k;
cin>>n>>k;
int ans=0;
while(N>0){
  n/=k;
  ans++;
}
cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'N' was not declared in this scope
   16 | while(N>0){
      |       ^