criyle/codenet-compile-errors huggingface dataset:
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);
  }
  int a = 100 ** 18;

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

    for(int j = 0;j < N;j++){

      int c = 0;
      c = (vec.at(j) - i);
      b += c * c;
    }

    if(a > b) {
      a = b;
      
    }

  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: invalid type argument of unary '*' (have 'int')
   11 |   int a = 100 ** 18;
      |                ^~~~
Language: C++

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

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

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
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 /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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout <<r+100*(100-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:10:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout <<r+100*(100-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 <iostream<
using namespace std;
int main(){
  int n ,r;
  cin >> n >> r;
  if(n >= r) cout << r << endl;
  else
  cout << r + 100*(10-n) << endl;
}

Compiler output:
a.cc:1:20: error: missing terminating > character
    1 | #include <iostream<
      |                    ^
a.cc:1:10: fatal error: iostream<: No such file or directory
    1 | #include <iostream<
      |          ^
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:20: error: missing terminating > character
    1 | #include <iostream<
      |                    ^
a.cc:1:10: fatal error: iostream<: No such file or directory
    1 | #include <iostream<
      |          ^
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: expected '}' at end of input
    6 |   cout << r - 100*(10-n) << endl;
      |                                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:1:20: error: missing terminating > character
    1 | #include <iostream<
      |                    ^
a.cc:1:10: fatal error: iostream<: No such file or directory
    1 | #include <iostream<
      |          ^
compilation terminated.
Language: Java

import java.util.*;
public class Main {//ここが Main になっている
    public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String input = sc.readLine();
      String[] inputs = input.split(" ");
      int n = Integer.parseInt(inputs[0]);
      int r = Integer.parseInt(inputs[1]);
      
      if(n >= 10){
        System.out.println(r);
      }else{
        int num = 100 * (100-n);
        System.out.println(r+num);
      }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
      String input = sc.readLine();
                       ^
  symbol:   method readLine()
  location: variable sc of type Scanner
1 error
Language: C++

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

int main(){
  int N, R;
  cout << (N < 10) ? R - 100(10 - N) : R;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expression cannot be used as a function
    9 |   cout << (N < 10) ? R - 100(10 - N) : R;
      |                          ~~~^~~~~~~~
Language: C++

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

int main(){
  int N, R;
  cout << (N < 10) ? R - 100(10 - N) : R: 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expression cannot be used as a function
    9 |   cout << (N < 10) ? R - 100(10 - N) : R:
      |                          ~~~^~~~~~~~
Language: C++

using System;

namespace atcorder
{
    class Program
    {
        public static void Main()
        {
            string[] In = Console.ReadLine().Split(' ');
            int n = int.Parse(In[0]);
            //rは表示レーティング
            //r=(内部レート)-100*(10-n)
            int r = int.Parse(In[1]);
            int x = 0;
            if (n >= 10)
            {
                x = r;
            }
            else
            {
                x = r + (100 * (10 - n));
            }
            Console.WriteLine(x);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:15: error: expected ':' before 'static'
    7 |         public static void Main()
      |               ^~~~~~~
      |               :
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void atcorder::Program::Main()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] In = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] In = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int n = int.Parse(In[0]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int r = int.Parse(In[1]);
      |                     ^~~
a.cc:23:13: error: 'Console' was not declared in this scope
   23 |             Console.WriteLine(x);
      |             ^~~~~~~
Language: C++

using System;

namespace atcorder
{
    class Program
    {
        static void Main()
        {
            string[] In = Console.ReadLine().Split(' ');
            int n = int.Parse(In[0]);
            //rは表示レーティング
            //r=(内部レート)-100*(10-n)
            int r = int.Parse(In[1]);
            int x = 0;
            if (n >= 10)
            {
                x = r;
            }
            else
            {
                x = r + (100 * (10 - n));
            }
            Console.WriteLine(x);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void atcorder::Program::Main()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] In = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] In = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int n = int.Parse(In[0]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int r = int.Parse(In[1]);
      |                     ^~~
a.cc:23:13: error: 'Console' was not declared in this scope
   23 |             Console.WriteLine(x);
      |             ^~~~~~~
Language: C++

using System;

namespace atcorder
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] In = Console.ReadLine().Split(' ');
            int n = int.Parse(In[0]);
            //rは表示レーティング
            //r=(内部レート)-100*(10-n)
            int r = int.Parse(In[1]);
            int x = 0;
            if (n >= 10)
            {
                x = r;
            }
            else
            {
                x = r + (100 * (10 - n));
            }
            Console.WriteLine(x);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void atcorder::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] In = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] In = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int n = int.Parse(In[0]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int r = int.Parse(In[1]);
      |                     ^~~
a.cc:23:13: error: 'Console' was not declared in this scope
   23 |             Console.WriteLine(x);
      |             ^~~~~~~
Language: C++

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


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

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

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

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'inr' was not declared in this scope; did you mean 'int'?
    9 |   else inr = r;
      |        ^~~
      |        int
a.cc:10:11: error: 'inr' was not declared in this scope; did you mean 'int'?
   10 |   cout << inr << endl;
      |           ^~~
      |           int
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'inr' was not declared in this scope; did you mean 'int'?
    9 |     inr = r + 100*(10 - n);
      |     ^~~
      |     int
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else inr = r;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else inr = r
      |   ^~~~
a.cc:11:8: error: 'inr' was not declared in this scope; did you mean 'int'?
   11 |   else inr = r
      |        ^~~
      |        int
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else inr = r
      |   ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if (n<10) {
      |             ^
a.cc:10:8: error: 'inr' was not declared in this scope; did you mean 'int'?
   10 |   else inr = r
      |        ^~~
      |        int
a.cc: At global scope:
a.cc:12:3: error: 'cout' does not name a type
   12 |   cout << inr << endl;
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

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


Compiler output:
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin >> n, r >> endl;
      | ^~~
a.cc: In function 'int main()':
a.cc:10:11: error: 'r' was not declared in this scope
   10 |     inr = r + 100*(10 - n);
      |           ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else inr = r
      |   ^~~~
a.cc:8:13: note: to match this '{'
    8 |   if (n<10) {
      |             ^
a.cc:11:8: error: 'inr' was not declared in this scope; did you mean 'int'?
   11 |   else inr = r
      |        ^~~
      |        int
a.cc:11:14: error: 'r' was not declared in this scope
   11 |   else inr = r
      |              ^
a.cc: At global scope:
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << inr << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
namespace std;

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

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


Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin >> n, r >> endl;
      | ^~~
a.cc: In function 'int main()':
a.cc:10:11: error: 'r' was not declared in this scope
   10 |     inr = r + 100*(10 - n);
      |           ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else inr = r
      |   ^~~~
a.cc:8:13: note: to match this '{'
    8 |   if (n<10) {
      |             ^
a.cc:11:8: error: 'inr' was not declared in this scope; did you mean 'int'?
   11 |   else inr = r
      |        ^~~
      |        int
a.cc:11:14: error: 'r' was not declared in this scope
   11 |   else inr = r
      |              ^
a.cc: At global scope:
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << inr << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
namespace :: std

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

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

Compiler output:
a.cc:2:11: error: expected identifier before '::' token
    2 | namespace :: std
      |           ^~
a.cc:2:14: error: 'std' in namespace '::' does not name a type
    2 | namespace :: std
      |              ^~~
In file included from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:308:11: note: 'std' declared here
  308 | namespace std
      |           ^~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'n' was not declared in this scope
    8 |   if (n<10) {
      |       ^
a.cc:10:11: error: 'r' was not declared in this scope
   10 |     inr = r + 100*(10 - n);
      |           ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else inr = r
      |   ^~~~
a.cc:8:13: note: to match this '{'
    8 |   if (n<10) {
      |             ^
a.cc:11:8: error: 'inr' was not declared in this scope; did you mean 'int'?
   11 |   else inr = r
      |        ^~~
      |        int
a.cc:11:14: error: 'r' was not declared in this scope
   11 |   else inr = r
      |              ^
a.cc: At global scope:
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << inr << endl;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:19: error: invalid suffix "＊" on integer constant
    7 |     printf("%d",r+100＊(10-n));
      |                   ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:19: error: invalid suffix "＊" on integer constant
    8 |     printf("%d",r+100＊(10-n));
      |                   ^~~~~
Language: C

#include<stdio.h>

int main(){
  int n,r;
  scanf("%d%d",&n,&r);
  
  if(n<10){
    printf("%d",r+100＊(10-n));
  }
  else
    printf("%d",r);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: invalid suffix "＊" on integer constant
    8 |     printf("%d",r+100＊(10-n));
      |                   ^~~~~
Language: C++

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

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


  if (N > 10) {
    return R;
  } else {
    return R + (100 * (10 - N)); 
  }
}

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

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

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


if (N > 10) {
  return R;
} else {
  return R + (100 * (10 - N)); 
}

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

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

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


if (N > 10) {
  return R;
} else {
  return R + (100 * (10 - N)); 
}

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

inp = list(map(int, input().split()))
n = inp[0]
r = inp[1]
if(n >= 10):
    print(r)
else:
    print(r + 100 * (10-n))

Compiler output:
a.cc:1:1: error: 'inp' does not name a type; did you mean 'int'?
    1 | inp = list(map(int, input().split()))
      | ^~~
      | int
Language: C++

i = list(map(int, input().split()))
n = i[0]
r = i[1]
if(n >= 10):
    print(r)
else:
    print(r + 100 * (10-n))

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i = list(map(int, input().split()))
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    long long 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:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

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

#include<cstdio>
int a,b;
int main(){
	scanf("%d%d",&a,&b);
  	printf("%d\n",(a<10?100*(10-a)):0)+b);
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:39: error: expected ':' before ')' token
    5 |         printf("%d\n",(a<10?100*(10-a)):0)+b);
      |                                       ^
      |                                       :
a.cc:5:39: error: expected primary-expression before ')' token
Language: C++

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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |   puts(n>10?r:r-100*(10-n));
      |        ~~~~^~~~~~~~~~~~~~~
      |            |
      |            int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #icnlude <bits/stdc++.h>
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |   if(n >=10) cout << r << endl;
      |              ^~~~
a.cc:7:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |   if(n >=10) cout << r << endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << r+c << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout << r+c << endl;
      |                    ^~~~
a.cc:10:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

main(void) {
  int N = 0;
  int R = 0;
  scanf("%d %d",&N,&R);
  int inner = N<10?100*(10-N):R
  printf("%d",inner);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void) {
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: expected ',' or ';' before 'printf'
    8 |   printf("%d",inner);
      |   ^~~~~~
Language: C++

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

int mian() {
    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 mian()':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/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: C++

#include <iostream>
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:4:8: error: expected initializer before '.' token
    4 |   int n.r;
      |        ^
a.cc:5:8: error: 'n' was not declared in this scope
    5 |   cin>>n>>r;
      |        ^
a.cc:5:11: error: 'r' was not declared in this scope
    5 |   cin>>n>>r;
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'n' was not declared in this scope
    4 |   cin>>n;
      |        ^
a.cc:5:8: error: 'r' was not declared in this scope
    5 |   cin>>r;
      |        ^
a.cc:9:23: error: 'k' was not declared in this scope
    9 |     cout<<r + 100*(10-k);
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'n' was not declared in this scope
    4 |   cin>>n;
      |        ^
a.cc:5:8: error: 'r' was not declared in this scope
    5 |   cin>>r;
      |        ^
a.cc:9:23: error: 'k' was not declared in this scope
    9 |     cout<<r + 100*(10-k)
      |                       ^
Language: C++

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

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

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

class Main {
import java.util.*;
import java.io.*;
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
  	int contests = sc.nextInt();
  	int display = sc.nextInt();
  	int inner = 0;
  	if (contests < 10) { 
    	System.out.println((100 * (10 - contests)) + display);
    }
  else System.out.println(display);
}
}

Compiler output:
Main.java:2: error: illegal start of type
import java.util.*;
^
Main.java:2: error: <identifier> expected
import java.util.*;
                 ^
Main.java:3: error: illegal start of type
import java.io.*;
^
Main.java:3: error: <identifier> expected
import java.io.*;
               ^
4 errors
Language: Java

class Main {
import java.util*;
import java.io.*;
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
  	int contests = sc.nextInt();
  	int display = sc.nextInt();
  	int inner = 0;
  	if (contests < 10) { 
    	System.out.println((100 * (10 - contests)) + display);
    }
  else System.out.println(display);
}
}

Compiler output:
Main.java:2: error: illegal start of type
import java.util*;
^
Main.java:2: error: <identifier> expected
import java.util*;
                ^
Main.java:3: error: illegal start of type
import java.io.*;
^
Main.java:3: error: <identifier> expected
import java.io.*;
               ^
4 errors
Language: Java

import java.util.*;
import java.io.*;
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
  	int contests = sc.nextInt();
  	int display = sc.nextInt();
  	int inner = 0;
  	if (contests < 10) { 
    	System.out.println((100 * (10 - contests)) + display);
    }
  else System.out.println(display);
}


Compiler output:
Main.java:3: 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: Java

import java.util*;
import java.io.*;
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
  	int contests = sc.nextInt();
  	int display = sc.nextInt();
  	int inner = 0;
  	if (contests < 10) { 
    	System.out.println((100 * (10 - contests)) + display);
    }
  else System.out.println(display);
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
Main.java:3: 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)
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int  ll;
const ll mod = 1e9+7;

//* Author :- Amey :P *//
void swap(ll &a , ll &b){
    ll t = a;
    a = b;
    b = t;
}

ll min(ll a, ll b){
    if(a<b)return a;
    return b;
}

ll max(ll a, ll b){
    if(a>b)return a;
    return b;
}
 ll pow(ll a, ll b) {
    a %= mod;
    ll ans = 1;
    while (b > 0) {
        if (b & 1)
            ans = ans * a % mod;
        a = a * a % mod;
        b /= 2;
    }
    return ans;
}






int main(){

//   #ifndef ONLINE_JUDGE
//      freopen("input.txt", "r", stdin);
//   #endif
//   ll n;
   cin>>n;
   ll r;
   cin>>r;

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

}


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

n, a, b = map(int, input().split())
 
 
mod = 1000000007
 
inv = [1] * 222222
 
# 0 = a * MOD/a + MOD % a
# a*MOD/a = -MOD%a
# a = -MOD%a * inv[MOD/a]
# inv[a] = -inv[MOD%a] * MOD/a
for i in range(2, 222222):
    inv[i] = -inv[mod % i] * (mod // i)
    inv[i] %= mod
    
def comb(n, a):
    res = 1
    for i in range(a):
        res *= n-i
        res *= inv[i+1]
        res %= mod
    return res
 
ans = pow(2, n, mod) - 1 - comb(n, a) - comb(n, b)
 
ans %= mod
if ans < 0:
    ans += mod
 
print(ans)

Compiler output:
a.cc:8:5: error: "=" is not a valid filename
    8 | # 0 = a * MOD/a + MOD % a
      |     ^
a.cc:9:3: error: invalid preprocessing directive #a
    9 | # a*MOD/a = -MOD%a
      |   ^
a.cc:10:3: error: invalid preprocessing directive #a
   10 | # a = -MOD%a * inv[MOD/a]
      |   ^
a.cc:11:3: error: invalid preprocessing directive #inv
   11 | # inv[a] = -inv[MOD%a] * MOD/a
      |   ^~~
a.cc:1:1: error: 'n' does not name a type
    1 | n, a, b = map(int, input().split())
      | ^
Language: C++

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

Compiler output:
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
Language: C++

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

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

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include iostream
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin>>N>>rate;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include iostream
a.cc:7:2: error: 'cout' was not declared in this scope
    7 |  cout<<rate;
      |  ^~~~
a.cc:7:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

#include <iostream>

using namespace std;

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

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

include <bits/stdc++.h>
#pragma GCC optimize("Ofast")

#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()

using ll = long long;
using ull = unsigned long long;
using namespace std;

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


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:14:3: error: 'cin' was not declared in this scope
   14 |   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 | include <bits/stdc++.h>
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << R << endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |     cout << R << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | include <bits/stdc++.h>
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << 100 * (10 - N) << endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:31: error: 'endl' was not declared in this scope
   18 |     cout << 100 * (10 - N) << endl;
      |                               ^~~~
a.cc:18:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'k' was not declared in this scope
    7 |    rating += 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));
  

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

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

Compiler output:
a.cc:8:16: error: stray '\' in program
    8 |      cout<< r<<\n;
      |                ^
a.cc:11:15: error: stray '\' in program
   11 |     cout<< r<<\n; }
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const ll mod = 1e9 +7;
const ll MAXN = 1e6 + 5;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: no matching function for call to 'min(int, ll&)'
   13 |         cout << r + 100 * (10 - min(10, n));
      |                                 ~~~^~~~~~~
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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:13:36: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   13 |         cout << r + 100 * (10 - min(10, n));
      |                                 ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281: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:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:13:36: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   13 |         cout << r + 100 * (10 - min(10, n));
      |                                 ~~~^~~~~~~
Language: C++

N, R = map(int, input().split())
if N>=10:
    print(R)
else:
    naibu = 100*(10-N)
    print(R+naibu)


Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N, R = map(int, input().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-n];
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: invalid types 'int[int]' for array subscript
   13 |     cout<< r + 100[10-n];
      |                   ^
Language: C++

import java.util.Scanner;


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

        if(N >= 10){
            in_rate = R;
        }else{
            in_rate = R+100*(10-N);
        }
        System.out.println(in_rate);
        
    }
}


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

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

int main() {
    int N;
    cin >> N;
    vector<int>x(N);
    int mx=-1;
    rep(i,N){
        cin >> x[i];
       mx = max(x[i],mx);
    }
    int mn=9999999;
    for(int i=0; i<=mx; i++){
        int sum = 0 ;
        for(int j=0; j<N; j++){
            int tmp =  pow(x[j]-i,2);   
            sum += tmp;       
        }
       mn =  min(sum,mn);
    }

    cout << mn << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:37: error: 'n' was not declared in this scope
    3 | #define rep(i,N) for(int (i)=0;(i)<(n);(i)++)
      |                                     ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(i,N){
      |     ^~~
Language: C

#include <stdio.h>
int main(){
    int n,r;
    int ans;

    scanf("%d %d", &n &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:6:23: error: invalid operands to binary & (have 'int *' and 'int')
    6 |     scanf("%d %d", &n &r);
      |                    ~~ ^
      |                    |
      |                    int *
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const double PI = 4*atan(1);
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
const double EPS = 1e-9;
const string YES = "Possible";
const string NO = "Impossible";
#define pb push_back
#define mp make_pair


int N, R;

void solve()
{
	if(N >=10) cout << R << '\n';
	else{
		cout << R + 100*(10-K) << '\n';
	}
}

int main()
{
	ios::sync_with_stdio(false);
	cin >> N >> R;
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:21:37: error: 'K' was not declared in this scope
   21 |                 cout << R + 100*(10-K) << '\n';
      |                                     ^
Language: C++

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

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


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

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

const int K = pow(10, 9) + 7;
void comb(vector<vector <long long int> >& v) {
	for (int i = 0; i < v.size(); i++) {
		v[i][0] = 1;
		v[i][i] = 1;
	}
	for (int k = 1; k < v.size(); k++) {
		for (int j = 1; j < k; j++) {
			v[k][j] = ((v[k - 1][j - 1] + v[k - 1][j])) / K;

		}
	}
}

int main() {
	int n, a, b;
	long long int ans = 1;
	
	cin >> n >> a >> b;

	for (int i = 0; i < n; i++) {
		ans *= 2;
		ans %= K;
	}

	vector<vector<long long int> > v(n + 1, vector<long long int>(n + 1, 0));
	comb(v);
	ans -= v[n][a];
	vector<vector<long long int> > w(n + 1, vector<long long int>(n + 1, 0));
	comb(w);
	ans -= w[n][b];

	ans -= 1;
	ans %= K;

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc:7:15: error: 'pow' was not declared in this scope
    7 | const int K = pow(10, 9) + 7;
      |               ^~~
Language: C++

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

int main() {
 int n,dr;
  cin >> n >> dr;
  if(n>9)
    cout << dr << endl;
  else
    cout << dr + 100 x (10 - n) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before 'x'
   10 |     cout << dr + 100 x (10 - n) << endl;
      |                     ^~
      |                     ;
Language: C++

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

int main() {
 int n,dr;
  cin >> n >> dr;
  if(n>9)
    return dr;
  else
    return dr + 100 x (10 - n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'x'
   10 |     return dr + 100 x (10 - n);
      |                    ^~
      |                    ;
a.cc:10:21: error: 'x' was not declared in this scope
   10 |     return dr + 100 x (10 - n);
      |                     ^
Language: Java

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

Compiler output:
Main.java:3: error: class InputSample is public, should be declared in a file named InputSample.java
    public class InputSample {
           ^
Main.java:7: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
            Integer joinCount = new Integer(str[0]);
                                ^
Main.java:8: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
            Integer displayCount = new Integer(str[1]);
                                   ^
1 error
2 warnings
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before '}' token
   14 |         cout<<(n-(10*k))<<endl
      |                               ^
      |                               ;
   15 |     }
      |     ~