criyle/codenet-compile-errors huggingface dataset:
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 << endl;
  }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 << endl;
  }else{
    cout << ans+=r << endl;
  }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << ans+=r << 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 
    cout<<r-100-(10-k)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: 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++)
#define intput(i) cout << i << endl
#define ll long long
#define stringput(s) cout << (string)(s) << endl

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'k' was not declared in this scope
   13 |   else ans = 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 - K) << endl;
    }
}

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

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

int main(){
	int n;
  	cin>>n;
  	
  	vector<int> v(n);
  	for(int i =0; i<n; i++){
      cin>>v[i];
    }
  	int min = v[0];
  	int max =v[0];
  for(int i =0; i<n; i++){
   	max = max(max,v[i]); 
    min = max(min,v[i]); 
  }
  int ans = INT_MAX;
  for(int i = min; i<=max; i++){
    int c =0;
    for(int j = 0; j<n; j++){
      	c += (v[j]-i)*(v[j]-i);
    }
    ans = min(ans,c);
  }
  
  cout<<ans<<endl;
  
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'max' cannot be used as a function
   15 |         max = max(max,v[i]);
      |               ~~~^~~~~~~~~~
a.cc:16:14: error: 'max' cannot be used as a function
   16 |     min = max(min,v[i]);
      |           ~~~^~~~~~~~~~
a.cc:24:14: error: 'min' cannot be used as a function
   24 |     ans = min(ans,c);
      |           ~~~^~~~~~~
Language: C++

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

}

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

#include<iosream>
using namespace std;

int main(){

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


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

#include<bits/stdc++.h>
 using namespace std
 int main() {
 int n, k;
 cin >> n >> k;
 int c = 0;
 while(n > 0) {
 n /= k; 
 c++;

 }
 cout << c << endl;
 return 0;
 }

Compiler output:
a.cc:2:21: error: expected ';' before 'int'
    2 |  using namespace std
      |                     ^
      |                     ;
    3 |  int main() {
      |  ~~~
Language: C++


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

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

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 |  int main() {
      |  ~~~                
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'while'
    9 |   while(n){
      |   ^~~~~
a.cc:13:17: error: expected '}' at end of input
   13 |   cout<<c<<endl;
      |                 ^
a.cc:5:13: note: to match this '{'
    5 |  int main() {
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:29: error: expected ';' before '}' token
    8 |       b = b + 100 * (10 - a)
      |                             ^
      |                             ;
    9 |     }
      |     ~                        
main.c:11:17: error: expected ';' before 'return'
   11 |   printf("%d",b)
      |                 ^
      |                 ;
   12 | 
   13 |  return 0;
      |  ~~~~~~
Language: C++

#include <iostream>
int main(){
	int N,R;
    int inner;
    std::cin>>N >>R;
    if (N>=10){
    	inner=R;
    }
    else{
    	inner=R+100*(10-N);
        }
    std::cout<<inner;
    return 0;
    


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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
Language: Java

import java.util.*;
public class code
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int R=in.nextInt();
    if(N>=10)
      System.out.println(R);
    else
      System.out.println(R-100*(100-N));
  }
}

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

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

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

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

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

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

//author:luckYrat(twitter:@luckYrat_)
//#include <bits/stdc++.h>

//def
#include <iostream>

#include <cmath>
#include <algorithm>
#include <iomanip>

//array
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <utility>
#include <climits>



using namespace std;

using ll = long long;
using P = pair<ll,ll>;

#define anyfill(n,s) setw(n) << setfill(s)
#define loop(s) for(int i = 0; s > i; i++)
#define rep(i,q) for(int i = 0; (q) > i; i++)
#define repp(i,n,q) for(int i = n; (q) > i; i++)
#define dep(i,q) for(int i = (q); 0 < i; i--)


#define MAX 1000000000
const int mod = 1000000007;
#define EPS (1e-10)

#define pb push_back
#define fir first
#define scn second
#define ednl endl

#define YesNo(a) (a?"Yes":"No")
#define YESNO(a) (a?"YES":"NO")
#define yesno(a) (a?"yes":"no")


P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}};
P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
/*
確認ポイント
cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる
vector.unique()は隣接した同じ要素を削除するので先にソートをする

計算量は変わらないが楽できるシリーズ
C++11以降でmin({a,b,c...})で複数個のmic,maxを処理できる
min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる
count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる

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



int main(){
  
  int n,r;cin>>n>>r;
  cout << r+max(10-n,0)*100



}

Compiler output:
a.cc: In function 'int main()':
a.cc:72:28: error: expected ';' before '}' token
   72 |   cout << r+max(10-n,0)*100
      |                            ^
      |                            ;
......
   76 | }
      | ~
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;]
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected primary-expression before ']' token
   12 |     cout << R << 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 - N) << endl;
  }
  
  else {
    cout << R << endl;

}


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

#include <iostream>
using namespace std;

void main()
{

    int a, b;
    scanf("%i %i", &a, &b);


    cout << a <<endl;
    cout << b <<endl;

    if (a < 10) {
        printf("%i\n", b + (100 * (10 - a)));
    } else {
        printf("%i\n", b );
    }
}


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

#include <iostream>

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:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int n, r; 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:5:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(n >= 10) cout << r << endl;
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(n >= 10) cout << r << endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout << r - 100 * (10 * n) << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout << r - 100 * (10 * n) << endl;
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
a.cc:7:15: note: to match this '{'
    7 |   if (N >= 10){
      |               ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
#include<conio.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

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

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

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

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

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

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

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

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();
   int R = sc.nextInt();
    
   int ans = R;
   if(N<10) ans -=(10-N)*100; 
   System.out.print(ans);
 }
}

Compiler output:
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'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

/*
 
*/
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
#include <set>
#include <map>
#include <stack>
#include <deque>
 
#define ll long long
#define cint const int
#define ld long double
#define sz(a) (int)a.size()
#define all(a) a.begin(), a.end()
#define pb push_back
#define ppb pop_back
#define fi first
#define se second
 
using namespace std;
 
typedef vector <long long> vll;
typedef vector <string> vs;
typedef vector <char> vc;
typedef set <int> si;
typedef set <string> ss;
typedef pair <int, int> pi;
typedef pair <long long, long long> pll;
typedef pair <int, long long> pil;
typedef pair <int, string> pis;
typedef pair <int, char> pic;
typedef pair <long long, int> pli;
typedef pair <long long, string> pls;
typedef pair <long long, char> plc;
typedef pair <string, int> psi;
typedef pair <string, long long> psl;
typedef pair <string, char> psc;
typedef pair <char, int> pci;
typedef pair <char, long long> pcl;
typedef pair <char, string> pcs;
 
int n, m;
 
int main () {
	cin >> n >> m;
	if (n >= 10) {
	    cout << m;
	    return 0;
	}
	court << m + (100 * (10 - n));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:9: error: 'court' was not declared in this scope
   55 |         court << m + (100 * (10 - n));
      |         ^~~~~
Language: Java

import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
import java.util.HashSet;
import java.util.*;

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


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

import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
import java.util.HashSet;
import java.util.*;

public class A1299 {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int r=sc.nextInt();
			if(n>=10) {
				pw.println(r);
			}
			else {
				pw.println(r+(100*(10-n)));
			}
			
			
			sc.close();
			pw.close();
			
		}
	
	
}


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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stdio.h>
#include <list>
#include <numeric>
#include <stack>
#include <queue>
#include <tuple>
#include <bitset>
#include <map>
#include <math.h>
//　ceil(a/b)   (a + (b - 1))/ b
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int,int> P;
const int inf=1000000007;
const ll mod=1000000007;
const double PI=3.14159265358979323846;
int dx[] = {1,-1,0,0};
int dy[] = {0,0,1,-1};

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

int cans(bool f){
  if(f) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


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

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




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

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int r=sc.nextInt();
        if(n < 10)
        {
            System.out.println(100*(10-n)+r);
        }
        else{
            System.out.println(r);
        }
	}
}


Compiler output:
Main.java:8: error: class Codechef is public, should be declared in a file named Codechef.java
public class Codechef
       ^
1 error
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++)
/*
*/

ll gcd(ll a,ll b){
  if(b == 0) return a;
  return gcd(b, a % b);
}
const ll P =  1000000007;
ll factorial(ll n){
   ll ans = 1;
   for(int i = n;i>=1;i--){
     ans *= i;
     ans %= P;
   }
   return ans;
}
using Graph = vector<vector<int>>;

ll kzyou(ll a,ll k){//aのk乗を返す
    ll zyou = 1;
    for(ll i = 1;i<=k;i++){
        zyou *= a;
    }
    return zyou;
}

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:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>

using namespace std;

void main(){
    int n, r;
    cin >> n >> r;
    if(n<10)
        cout << r - (100*(10-r)) << 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;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope
    7 |    cin >> n >> r;
      |    ^~~
a.cc:9:6: error: 'cout' was not declared in this scope
    9 |      cout << r + (10-n)*10 << endl;
      |      ^~~~
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |      cout << r + (10-n)*10 << endl;
      |                               ^~~~
a.cc:12:6: error: 'cout' was not declared in this scope
   12 |      cout << r << endl;
      |      ^~~~
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |      cout << r << endl;
      |                   ^~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:10: error: variable N might not have been initialized
	if(N>=10) {
	   ^
1 error
Language: C++

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

int main() {
  int N, R;
  cin >> N >> R;
  cout << ((N >= 10) ? R : R - 100 * (10 - K)) << "\n";
}

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

#include<cstdio>

int main(void) {
  int N, R;
  scanf("%d %d", &N, &R);
  if(N >= 10) {
    printf("%d", R);
  } else {
    printf("%d", R + 100 * (10 - K));
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: 'K' was not declared in this scope
    9 |     printf("%d", 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-n) << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:12: error: 'cin' was not declared in this scope
    6 |   int n,r; cin >> n >> r;
      |            ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << r << endl;
      |     ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout << r << endl;
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << r + 100*(10-n) << endl;
      |     ^~~~
a.cc:12:31: error: 'endl' was not declared in this scope
   12 |     cout << r + 100*(10-n) << endl;
      |                               ^~~~
Language: C++

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

Compiler output:
a.cc:15:18: error: stray '\' in program
   15 |   cout << Rin << \n;
      |                  ^
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before '}' token
   10 |     Rin = R - 100*(10-N)
      |                         ^
      |                         ;
   11 |   }
      |   ~                      
a.cc:13:12: error: expected ';' before '}' token
   13 |     Rin = R
      |            ^
      |            ;
   14 |   }
      |   ~         
a.cc:15:19: error: 'n' was not declared in this scope
   15 |   cout << Rin << \n;
      |                   ^
Language: C++


#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <string>
#include <algorithm>



void a(std::istream& in)
{
    int N, R;

    in >> N;
    in >> R;

    if (N >= 10)
    {
        std::cout << R;
        return;
    }

    std::cout << R + 100 * (10 - N);
}

int main_a(int, char* [])
{
    a(std::cin);
    return 9;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

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

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(); //コンテスト参加回数
        int r = sc.nextInt(); //表示レーティング

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

        // 出力
        System.out.println(r);
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<stdc++.h>
using namespace std;
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:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include<stdc++.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'N' was not declared in this scope
    8 | cin>>N;
      |      ^
a.cc:9:6: error: 'R' was not declared in this scope
    9 | cin>>R;
      |      ^
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
Language: C++

include <iostream>
using namespace std;

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

	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n>>r;
      |         ^~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << r + 100 * (10 - n);
      |                 ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << r;
      |                 ^~~~
Language: Java


import java.util.*;

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


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

#include<bits/stdc++.h>  
using namespace std;  
 
int main() {  
    ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);cout.precision(30);  
  	int N;
  	int R;
  	cin>>N>>R;
  	if(N>=10){
      cout<<R;
    }
  	else{
      cout<<(R+100*(10-N));
    }
    return 0;  
}  


Compiler output:
a.cc:1:9: error: extended character   is not valid in an identifier
    1 | #include<bits/stdc++.h>  
      |         ^
a.cc:1:9: error: extended character   is not valid in an identifier
a.cc:1:9: fatal error: bits/stdc++.h> �: No such file or directory
    1 | #include<bits/stdc++.h>  
      |         ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

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

        int n, r;

        n = cin.nextInt();
        r = cin.nextInt();

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


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

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

Compiler output:
a.cc:3:17: error: 'sd' is not a namespace-name
    3 | using namespace sd;
      |                 ^~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>r;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<(r+(100*(10-min(10,n))))<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:21: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   cout<<(r+(100*(10-min(10,n))))<<endl;
      |                     ^~~
      |                     std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<(r+(100*(10-min(10,n))))<<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before '}' token
   11 |       naibu=R
      |              ^
      |              ;
   12 |     }
      |     ~         
a.cc:14:21: error: expected ';' before '}' token
   14 |       naibu=R+(10-N)
      |                     ^
      |                     ;
   15 |     }
      |     ~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'else'
   11 |       naibu=R
      |              ^
      |              ;
   12 | 
   13 |     else
      |     ~~~~      
a.cc:17:16: error: expected ';' before 'endl'
   17 |     cout<<naibu endl;
      |                ^~~~~
      |                ;
Language: C++

#include <bits/stdc++.h>

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

}

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

 
int main() {
  
  int N,R,naibu;
    
    if (N >9){
      naibu=R
    
    else
      naibu=R+(10-N)
    endif
        }  
    cout<<naibu ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'else'
    9 |       naibu=R
      |              ^
      |              ;
   10 | 
   11 |     else
      |     ~~~~      
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<naibu ;
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>

 
int main() {
  
  int N,R,naibu;
    
    if N >9
      naibu=R
    
    else
      naibu=R+(10-N)
    endif
      
    cout<<naibu ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'N'
    8 |     if N >9
      |        ^
      |        (
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '>' token
    8 |         if(A=>10){
      |              ^
a.cc:11:19: error: expected primary-expression before '<' token
   11 |         else if(A=<10){
      |                   ^
Language: C++

/*

                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    prayer
*/

// g++ -std=c++11 a.cpp
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<unordered_map>
#include<utility>
#include<cmath>
#include<random>
#include<cstring>
#include<queue>
#include<stack>
#include<bitset>
#include<cstdio>
#include<sstream>
#include<iomanip>
#include<assert.h>
#include<typeinfo>
#include<numeric>
#define loop(i,a,b) for(long long i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
#define FOR(i,a) for(auto i:a)
#define pb push_back
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)
#define show1d(v) {rep(_,v.size())cout<<" "<<v[_];cout<<endl;}
#define show2d(v) {rep(__,v.size())show1d(v[__]);}
using namespace std;
//kaewasuretyuui
typedef long long ll;
#define int ll
typedef int Def;
typedef pair<Def,Def> pii;
typedef vector<Def> vi;
typedef vector<vi> vvi;
typedef vector<pii> vp;
typedef vector<vp> vvp;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<Def,pii> pip;
typedef vector<pip>vip;
#define mt make_tuple
typedef tuple<int,int,int,int> tp;
typedef vector<tp> vt;
template<typename A,typename B>bool cmin(A &a,const B &b){return a>b?(a=b,true):false;}
template<typename A,typename B>bool cmax(A &a,const B &b){return a<b?(a=b,true):false;}
const double PI=acos(-1);
const double EPS=1e-9;
Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9+10;
#define yes cout<<"Yes\n"
#define no cout<<"No\n"

template< typename T >
istream &operator>>(istream &is, vector< T > &v) {
  for(T &in : v) is >> in;
  return is;
}

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

    int n;
    cin>>n;
    string s;
    cin>>s;
    rep(i,s.size()){
        s[i]+=n;
        if(s[i]>'Z')s[i]-=26;
    }
    cout<<s<<endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:98:19: error: expected '}' at end of input
   98 |     cout<<s<<endl;
      |                   ^
a.cc:86:14: note: to match this '{'
   86 | signed main(){
      |              ^
Language: C++

#include<stdio.h>

int main void(){
  int N;
  int R;
  
  print("数字を入力してください");
  scanf("%d", &N);
  scanf("%d", &R);
  
  int x;
  x = 100 * (10 - N);
  int j;
  j = x + R;
  
  print("%d", j);
  return 0;
}
  


Compiler output:
a.cc:3:10: error: expected initializer before 'void'
    3 | int main void(){
      |          ^~~~
Language: C++

#include <iostream>
unsing namespace std;
int main() {
	int N, R;
	int ans = 0;
	cin >> N >> R;
	if N < 10 {
		ans = R + (100 * (10 - N))
	}
	else ans = R;
	cout << ans;
}

Compiler output:
a.cc:2:1: error: 'unsing' does not name a type; did you mean 'unsigned'?
    2 | unsing namespace std;
      | ^~~~~~
      | unsigned
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> 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:7:12: error: expected '(' before 'N'
    7 |         if N < 10 {
      |            ^
      |            (
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else ans = R;
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << ans;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: 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 | #inlcude<bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << R+(100*(10-N));
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << R;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,r;
  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:7:27: error: 'k' was not declared in this scope
    7 |     cout << r - 100 * (10-k) << endl;
      |                           ^
Language: C++

#include<bis/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:1:9: fatal error: bis/stdc++.h: No such file or directory
    1 | #include<bis/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

package atCoder;

import java.io.InputStream;
import java.util.Scanner;

/**
 * @author kanbe
 *
 */
public class PloblemA {
    
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        
        if (i < 10) {
            j = ((100 * (10 - i)) + j);
        } 
        System.out.println(j);
        
    }

}


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

import java.io.InputStream;
import java.util.Scanner;

/**
 * @author kanbe
 *
 */
public class PloblemA {
    
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        
        if (i < 10) {
            j = ((100 * (10 - i)) + j);
        } 
        System.out.println(j);
        
    }

}


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

public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        
        if (i < 10) {
            j = ((100 * (10 - i)) + j);
        } 
        System.out.println(j);
        
    }

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<bis/stdc++.b>
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:1:9: fatal error: bis/stdc++.b: No such file or directory
    1 | #include<bis/stdc++.b>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.io.InputStream;
import java.util.Scanner;

/**
 * @author kanbe
 *
 */
public class PloblemA {
    
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        
        if (i < 10) {
            j = ((100 * (10 - i)) + j);
        } 
        System.out.println(j);
        
    }

}

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

import java.io.InputStream;
import java.util.Scanner;

/**
 * @author kanbe
 *
 */
public class PloblemA {
    
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        
        if (i < 10) {
            j = ((100 * (10 - i)) + j);
        } 
        System.out.println(j);
        
    }

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.InputStream;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class PloblemA {
      | ^~~~~~
Language: C++

#include<iostream>
using namespce std;
int main(){
	int n,r,s;
	cin>>n>>r;
	if(n>=10){
		s=r;
	}
	else{
		s=r-100*(10-n);
	}
	cout<<s<<endl;
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
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<<s<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout<<s<<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++

#include<iostream>
using namespce std;
int main(){
	int n,r,s;
	cin>>n>>r;
	if(n>=10){
		s=r;
	}
	else{
		s=r-100*(10-k);
	}
	cout<<s<<endl;
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
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:10:29: error: 'k' was not declared in this scope
   10 |                 s=r-100*(10-k);
      |                             ^
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout<<s<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout<<s<<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++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected '}' at end of input
    8 |         else cout << 100*(10-N);
      |                                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main() {
 int N, R;
 scanf("%d %d", &N, &R);
 int ret;
 if (N >= 10) {
  ret = R;
 } else {
  ret = R + (100 * (10 - N));
 }
 printf("%d\n", ret);
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:2: error: 'scanf' was not declared in this scope
    3 |  scanf("%d %d", &N, &R);
      |  ^~~~~
a.cc:10:2: error: 'printf' was not declared in this scope
   10 |  printf("%d\n", ret);
      |  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: C++

#include <iostream>
int main(int argc, )
{
    int n, r, ans;
    std::cin >> n >> r ;
    if(n>10)
    {
        //内部レーティングに等しい
        ans = r;
    }
    else{
        ans = 100 * (10 - n);
    }
    std::cout << ans;
}

Compiler output:
a.cc:2:20: error: expected identifier before ')' token
    2 | int main(int argc, )
      |                    ^
a.cc:2:5: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
    2 | int main(int argc, )
      |     ^~~~