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

#include <iostream>
int main()
{
    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: In function 'int main()':
a.cc:12:29: error: expected ';' before '}' token
   12 |         ans = 100 * (10 - n)
      |                             ^
      |                             ;
   13 |     }
      |     ~
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)　+ r;
    }
    std::cout << ans;
}

Compiler output:
a.cc:12:29: error: extended character 　 is not valid in an identifier
   12 |         ans = 100 * (10 - n)　+ r;
      |                             ^
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, )
      |     ^~~~
a.cc: In function 'int main(int, int)':
a.cc:12:29: error: expected ';' before '\U00003000'
   12 |         ans = 100 * (10 - n)　+ r;
      |                             ^~
      |                             ;
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, )
      |     ^~~~
a.cc: In function 'int main(int, int)':
a.cc:12:29: error: expected ';' before '}' token
   12 |         ans = 100 * (10 - n)
      |                             ^
      |                             ;
   13 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;
int main(int argv, char *argm[]){
  if((atoi(argm[1]) <= 10){
    cout << atoi(argm[2]);
    return 0;
  }
     cout << 100*(10 - atoi(argm[2]));
     return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:4:27: error: expected ';' before '{' token
    4 |   if((atoi(argm[1]) <= 10){
      |                           ^
      |                           ;
a.cc:8:38: error: expected ')' before ';' token
    8 |      cout << 100*(10 - atoi(argm[2]));
      |                                      ^
      |                                      )
a.cc:4:5: note: to match this '('
    4 |   if((atoi(argm[1]) <= 10){
      |     ^
Language: C++

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

int main(){
  int c; cin>>c;
  int r; cin>>r;
  
  if(c>=10){
    cout<<r;
  }
  else{
    int inr = 100*(10−c);
    inr += r;
    cout<<inr;
  }
  
}

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

#include <cstdio>

int main()
{
	int n,r;

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: 'k' was not declared in this scope
   12 |                 return r+1000-100*k;
      |                                   ^
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:11:8: error: expected primary-expression before ')' token
   11 |   else(){
      |        ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  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:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n >> r;
      |          ^
      |          yn
a.cc:6:15: error: 'r' was not declared in this scope
    6 |   cin >> n >> r;
      |               ^
a.cc:10:8: error: expected primary-expression before ')' token
   10 |   else(){
      |        ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc:5:1: error: 'in' does not name a type; did you mean 'int'?
    5 | in main(){
      | ^~
      | int
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc:5:1: error: 'in' does not name a type; did you mean 'int'?
    5 | in main(){
      | ^~
      | int
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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*(100-N)<<endl;
  return 0
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
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*(100-N)<<endl;
}
  return 0
}

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

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

int N,R;
cin>>N>>R;

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

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>N>>R;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(N>=10){
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else{
      | ^~~~
Language: C++

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << r + (10 - n) * 100 << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << r + (10 - n) * 100 << endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         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:13:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << r << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: no matching function for call to 'max(int, long long int)'
    6 |  cout << r - 100 - max(10, 10 - n) *  10 << endl;
      |                    ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:6:23: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    6 |  cout << r - 100 - max(10, 10 - n) *  10 << endl;
      |                    ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:6:23: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    6 |  cout << r - 100 - max(10, 10 - n) *  10 << endl;
      |                    ~~~^~~~~~~~~~~~
Language: C++

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

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

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

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

// Author : Sarthak Kapoor
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define rep(i,n) for(int i=0;i<n;++i)
#define repa(i,a,n) for(int i=a;i<n;++i)
#define repr(i,n) for(int i=n-1;i>=0;--i)
#define repba(i,b,a) for(int i=b;i>=a;--i)
#define repab(i,a,b) for(int i=a;i<b;++i)
#define ll long long
#define ull unsigned long long
#define vi vector<int>
#define msi map<string,int>
#define mii map<int,int>
#define viip vector<pair<int,pair<int,int> > > 
#define mp make_pair
#define vip vector<pair<int,int> >
#define pb push_back 
#define po pop_back
#define fi first
#define sec second
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define s(v) v.size()
ll mod = 1000000007;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());//use rng()%n for numbers in range [0,n-1]
ll gcd(ll a,ll b){
	if(b==0)return a;
	return gcd(b,a%b);
}
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	// #ifndef ONLINE_JUDGE
 //    	freopen("input.txt", "r", stdin);
 //    	freopen("output.txt", "w", stdout);
	// #endif
	int n,r;
	cin>>n>>r;	
	if(n >= 10){
		ans = r;
	}
	else{
		ans = r + 100*(10-n);
	}
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   43 |                 ans = r;
      |                 ^~~
      |                 abs
a.cc:46:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   46 |                 ans = r + 100*(10-n);
      |                 ^~~
      |                 abs
a.cc:48:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   48 |         cout<<ans;
      |               ^~~
      |               abs
Language: C++

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

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

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

#include <bits/stdc++.h>

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

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: 'k' was not declared in this scope
    9 |         printf("%d\n",n>=10?r:r+100*(10-k));
      |                                         ^
Language: C++

import java.io.PrintWriter

val pw = PrintWriter(System.out)
fun main(args : Array<String>) {
    func()
    pw.flush()
}

fun func() {
    var (n,r) = listOfInt()
    var ans = r
    if (n < 10){
        ans += 100*(10-n)
    }
    println(ans)
}

// 入力取得
fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun listOfString() = next().split(" ")
fun listOfInt() =listOfString().map { it.toInt() }
fun listOfLong() =listOfString().map { it.toLong() }
fun listOfDouble() =listOfString().map { it.toDouble() }

// 約数のList
fun divisor(value : Long) : List<Long> {
    val max = Math.sqrt(value.toDouble()).toLong()
    return (1..max)
        .filter { value % it == 0L }
        .map { listOf(it, value / it) }
        .flatten()
        .sorted()
}

// 範囲内の素数を取得
// fromだけ指定すると戻り値の個数で素数判定ができる
fun prime(from : Long, to : Long = from) : List<Long> {
    return (from..to).filter { i ->
        val max = Math.sqrt(i.toDouble()).toLong()
        (2..max).all { j ->  i % j != 0L }
    }
}

// 素因数分解
fun decom(value : Long) : List<Long>{
    if (value == 1L) return listOf(1)
    val max = Math.sqrt(value.toDouble()).toLong()
    return prime(2, max).filter { value % it == 0L }
}

// 最大公約数
fun gcd(a : Long, b : Long) : Long {
    return if (a % b == 0L) b else gcd(b, a % b)
}

// 文字列を入れ替え
fun swap(base : String, a : String, b : String) : String {
    return base.map {
        when (it) {
            a.toCharArray()[0] -> b
            b.toCharArray()[0] -> a
            else -> it.toString()
        }
    }.joinToString()
}

fun println(value : Any) {
    pw.println(value)
}

Compiler output:
a.cc:31:13: error: too many decimal points in number
   31 |     return (1..max)
      |             ^~~~~~
a.cc:43:10: error: too many decimal points in number
   43 |         (2..max).all { j ->  i % j != 0L }
      |          ^~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.PrintWriter
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: 'fun' does not name a type
    9 | fun func() {
      | ^~~
a.cc:19:1: error: 'fun' does not name a type
   19 | fun next() = readLine()!!
      | ^~~
a.cc:25:1: error: 'fun' does not name a type
   25 | fun listOfLong() =listOfString().map { it.toLong() }
      | ^~~
a.cc:26:1: error: 'fun' does not name a type
   26 | fun listOfDouble() =listOfString().map { it.toDouble() }
      | ^~~
a.cc:29:1: error: 'fun' does not name a type
   29 | fun divisor(value : Long) : List<Long> {
      | ^~~
a.cc:40:1: error: 'fun' does not name a type
   40 | fun prime(from : Long, to : Long = from) : List<Long> {
      | ^~~
a.cc:48:1: error: 'fun' does not name a type
   48 | fun decom(value : Long) : List<Long>{
      | ^~~
a.cc:55:1: error: 'fun' does not name a type
   55 | fun gcd(a : Long, b : Long) : Long {
      | ^~~
a.cc:60:1: error: 'fun' does not name a type
   60 | fun swap(base : String, a : String, b : String) : String {
      | ^~~
a.cc:70:1: error: 'fun' does not name a type
   70 | fun println(value : Any) {
      | ^~~
Language: C++

num = gets.split(" ")
if num[0] => 10
  puts num[1]
else
  puts num[1] + 100 * (10 - num[0])
end

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num = gets.split(" ")
      | ^~~
      | enum
Language: C++

nums = gets.split(" ")
if nums[0] > 10
  	puts num[1].to_i
else
  	puts num[1] + 100 * (10 - num[0].to_i)
end

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

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


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

#include<bits/stdc++.h>

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

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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(n>=r) 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:6:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(n>=r) cout<<r<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<r+100*(10-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:7:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout<<r+100*(10-r)<<endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

    #include<bits/stdc++.h>
     
    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:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |       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:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |       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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |       if(n>=10) cout<<r<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       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:7:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |       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++

int main() {
  int c, e;
  cin >> c; 
  cin >> e; 
  c < 10 ? (cout << e) : (cout << (e + (100 * (10-e))));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> c;
      |   ^~~
a.cc:5:13: error: 'cout' was not declared in this scope
    5 |   c < 10 ? (cout << e) : (cout << (e + (100 * (10-e))));
      |             ^~~~
Language: Java

import java.util.Scanner;

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

}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'k' was not declared in this scope
   10 |     cout<<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 = sc.nextInt();
    int R = sc.nextInt();
    if (N < 10) {
       r += 100 * (10-N);
    }
    System.out.println(R);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
       r += 100 * (10-N);
       ^
  symbol:   variable r
  location: class Main
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:16: error: expected expression before '%' token
   10 |   printf("x\n",%d);
      |                ^
Language: C++

#include<bits/stdc++.h>

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:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:2: error: expected primary-expression before 'int'
    4 |  int n,r;
      |  ^~~
a.cc:4:2: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>n>>r;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(n>=10) cout<<r<<endl;
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 |   else cout<<r+100*(10-n)<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{ans = 100 * (10 -n);}
      |          ^
      |          (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected primary-expression before ')' token
    9 |   else if(ans = 100 * (10 -n);)
      |                               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |   if(n>=10){ans == r}
      |                     ^
      |                     ;
Language: C++

#include <bits/stdc++.h>
usingnamespace std:

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


Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std:
      | ^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
usingnamespase std:

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

Compiler output:
a.cc:2:1: error: 'usingnamespase' does not name a type
    2 | usingnamespase std:
      | ^~~~~~~~~~~~~~
Language: C++

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


Compiler output:
a.cc:7:23: error: extended character − is not valid in an identifier
    7 |     A = R + 100 * (10 − N);
      |                       ^
a.cc: In function 'int main()':
a.cc:7:22: error: expected ')' before '\U00002212'
    7 |     A = R + 100 * (10 − N);
      |                   ~  ^~
      |                      )
Language: C++

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


Compiler output:
a.cc:7:17: error: extended character × is not valid in an identifier
    7 |     A = R + 100 × (10 − N);
      |                 ^
a.cc:7:23: error: extended character − is not valid in an identifier
    7 |     A = R + 100 × (10 − N);
      |                       ^
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '\U000000d7'
    7 |     A = R + 100 × (10 − N);
      |                ^~
      |                ;
Language: C++

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

Compiler output:
a.cc:7:17: error: extended character × is not valid in an identifier
    7 |     A = R + 100 × (10 − N);
      |                 ^
a.cc:7:23: error: extended character − is not valid in an identifier
    7 |     A = R + 100 × (10 − N);
      |                       ^
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '\U000000d7'
    7 |     A = R + 100 × (10 − N);
      |                ^~
      |                ;
Language: C++

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

Compiler output:
a.cc:9:17: error: extended character × is not valid in an identifier
    9 |     A = R - 100 × (10 − N);
      |                 ^
a.cc:9:23: error: extended character − is not valid in an identifier
    9 |     A = R - 100 × (10 − N);
      |                       ^
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '\U000000d7'
    9 |     A = R - 100 × (10 − N);
      |                ^~
      |                ;
Language: Java

import java.util.*;

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

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
puclic class Main{
^
1 error
Language: C

#include<stdio.h>
int main(void){
    int N, K;
    int i=1;
    while(N >= K){
        N = N / k;
        i++;
    }
    printf("%d",i);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'k' undeclared (first use in this function)
    6 |         N = N / k;
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
    int N;//会員のコンテスト参加回数
    int dispR;//表示レーティング
    int inteR;//内部レーティング
    //入力
    scanf("%d %d",&N,&R);

    //エラー排除
    if(N>=1 && N<=100 && R>=0 && R<=4111){
        //処理
        if(N >= 10){
            inteR = dispR;
        }else{
            inteR = dispR + 100*(10 - N);
        }
    
        //出力
        printf("%d",dispR);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: 'R' undeclared (first use in this function)
    7 |     scanf("%d %d",&N,&R);
      |                       ^
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

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

public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int internal_rating;      //内部レーティング
      int display_rating;       //表示レーティング
      int participation_times;  //参加回数
      
      //標準入力受け取り
      Scanner scan = new Scanner(System.in);
      String  N    = scan.next();
      String  R    = scan.next();
      
      participation_times = Integer.parseInt(N);
      display_rating      = Integer.parseInt(R);
      
      //内部レーティング算出
      if (participation_times >= 10) {
        internal_rating = display_rating;
      } else {
        internal_rating = internal_rating + 100*(10-participation_times);
      }
      
      System.out.println(internal_rating);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:26: error: variable internal_rating might not have been initialized
        internal_rating = internal_rating + 100*(10-participation_times);
                          ^
1 error
Language: Java

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

public class Main {
  
  public static void main(String[] args){
    
    try {
      //ローカル変数定義
      int internal_rating;      //内部レーティング
      int display_rating;       //表示レーティング
      int participation_times;  //参加回数
      
      //標準入力受け取り
      Scanner scan = new Scanner(Sysytem.in);
      String  N    = scan.next();
      String  R    = scan.next();
      
      participation_times = Integer.parseInt(N);
      display_rating      = Integer.parseInt(R);
      
      //内部レーティング算出
      if (participation_times >= 10) {
        internal_rating = display_rating;
      } else {
        internal_rating = internal_rating + 100*(10-participation_times);
      }
      
      System.out.println(internal_rating);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:15: error: cannot find symbol
      Scanner scan = new Scanner(Sysytem.in);
                                 ^
  symbol:   variable Sysytem
  location: class Main
1 error
Language: Java

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

public class Main {
  
  public class static void main(String[] args){
    
    try {
      //ローカル変数定義
      int internal_rating;      //内部レーティング
      int display_rating;       //表示レーティング
      int participation_times;  //参加回数
      
      //標準入力受け取り
      Scanner scan = new Scanner(Sysytem.in);
      String  N    = scan.next();
      String  R    = scan.next();
      
      participation_times = Integer.parseInt(N);
      display_rating      = Integer.parseInt(R);
      
      //内部レーティング算出
      if (participation_times >= 10) {
        internal_rating = display_rating;
      } else {
        internal_rating = internal_rating + 100*(10-participation_times);
      }
      
      System.out.println(internal_rating);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}

Compiler output:
Main.java:6: error: <identifier> expected
  public class static void main(String[] args){
              ^
1 error
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:8: error: 'N' undeclared (first use in this function)
    4 |     if(N>=10)
      |        ^
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: 'k' undeclared (first use in this function)
    5 |         k=R;
      |         ^
main.c:5:11: error: 'R' undeclared (first use in this function)
    5 |         k=R;
      |           ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected '(' before 'N'
    4 |     if N>=10
      |        ^
      |        (
main.c:4:8: error: 'N' undeclared (first use in this function)
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'k' undeclared (first use in this function)
    7 |         k=100*(10-N);
      |         ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String input = scanner.nextLine();
        String[] numbers = input.split(" ");
        
        int numContest = Integer.parseInt(numbers[0]);
        int innerRating = Integer.parseInt(numbers[1]);
        if (numContest >= 10) {
            System.out.println(innerRating);
        } else {
            System.out.println(innerRating + 100 * (10 - numContest));
        }
    }

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String input = scanner.nextLine();
        String[] numbers = input.split(" ");
        int numContest = Integer.parseInt(numbers[0]);
        int innerRating = Integer.parseInt(numbers[1]);
        if (numContest >= 10) {
            System.out.println(innerRating);
        } else {
            System.out.println(innerRating + 100 * (10 - numContest));
        }
    }

}


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

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

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

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

import java.util.*;

public class Beginner {

	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+100*(10-n));
	}

}


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

#include <bits/stdc++.h>

int main() {
  int N, R;
  std::cin >> N >> R;
  std::cout << R + 100 * (10 - std::min(K, 10)) << std::endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expression cannot be used as a function
   10 |     k=k+100(10-n);
      |         ~~~^~~~~~
Language: C++

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

Compiler output:
a.cc:2:1: error: 'usnign' does not name a type; did you mean 'union'?
    2 | usnign namespace std;
      | ^~~~~~
      | union
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>>k;
      |   ^~~
      |   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:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(n>=10)cout<<k<<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: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(n>=10)cout<<k<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:12: error: expression cannot be used as a function
   10 |     k=k+100(10-n);
      |         ~~~^~~~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<k<<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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<k<<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<iostream>
using namespace std;

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

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

#include<iostream.h>
using namespace std;

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

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

#include <iostream>

using namespace std;

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


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

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

int main()
{
  int n, r;
  cin >> n >> r;
  if (n >= 10)
  {
    cout << r;
  }
  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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n >> r;
      |   ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << r;
      |     ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << r + 100 *(10-n) << endl;
      |     ^~~~
a.cc:14:32: error: 'endl' was not declared in this scope
   14 |     cout << r + 100 *(10-n) << endl;
      |                                ^~~~
Language: C++

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


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>
#include<string.h>
//言語は「C++14(GCC 5.4.1)」
//AtCoder Begi#include<stdio.h>
#include<string.h>
//言語は「C++14(GCC 5.4.1)」
//AtCoder Beginner Contest 156-A

int main(void) 
{
	int N, R;
	scanf("%d", &N); 
	scanf("%d", &R);
	if (N < 10)
	{
		printf("%d", R + 100 * (10 - N));
	}
	else
	{
		printf("%d", R);
	}
}nner Contest 156-A

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

Compiler output:
a.cc:22:2: error: 'nner' does not name a type
   22 | }nner Contest 156-A
      |  ^~~~
Language: C++

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

int main(){
  vector<int> vec(100);
  int N;
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> vec.at(i);
  }

  for(int i = 1;i < 101;i++){
    int b = 0;

    for(int j = 0;j < N;j++){
      b +=  (vec.at(j) - i)*(vec.at(j) - i);
    }
    if(i == 1){
      a = b;
    }
    if(a > b) {
      a = b;
      
    }

  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'a' was not declared in this scope
   19 |       a = b;
      |       ^
a.cc:21:8: error: 'a' was not declared in this scope
   21 |     if(a > b) {
      |        ^
a.cc:27:11: error: 'a' was not declared in this scope
   27 |   cout << a << endl;
      |           ^
Language: C++

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

int main(){
  vector<int> vec(100);
  int N;
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> vec.at(i);
  }

  for(int i = 1;i < 101;i++){
    int b = 0;

    for(int j = 0;j < N;j++){
      b +=  (vec.at(j) - i)*(vec.at(j) - i);
    }
    if(i === 1){
      a = b;
    }
    if(a > b) {
      a = b;
      
    }

  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected primary-expression before '=' token
   18 |     if(i === 1){
      |            ^
a.cc:19:7: error: 'a' was not declared in this scope
   19 |       a = b;
      |       ^
a.cc:21:8: error: 'a' was not declared in this scope
   21 |     if(a > b) {
      |        ^
a.cc:27:11: error: 'a' was not declared in this scope
   27 |   cout << a << endl;
      |           ^
Language: C++

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

int main(){
  vector<int> vec(100);
  int N;
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> vec.at(i);
  }

  for(int i = 1;i < 101;i++){
    int b = 0;

    for(int j = 0;j < N;j++){
      b +=  (vec.at(j) - i)*(vec.at(j) - i);
    }
    if(i === 1){
      a = i;
    }
    if(a > b) {
      a = b;
      
    }

  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected primary-expression before '=' token
   18 |     if(i === 1){
      |            ^
a.cc:19:7: error: 'a' was not declared in this scope
   19 |       a = i;
      |       ^
a.cc:21:8: error: 'a' was not declared in this scope
   21 |     if(a > b) {
      |        ^
a.cc:27:11: error: 'a' was not declared in this scope
   27 |   cout << a << 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-N)<<endl;}
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expression cannot be used as a function
    7 |   else{cout<<R+100(10-N)<<endl;}
      |                ~~~^~~~~~