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

#include<iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<complex>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
#include<cassert>
using namespace std;
typedef long long  ll;
typedef unsigned long long ul;
typedef unsigned int ui;
const ll mod = 1000000007;
typedef double ld;
typedef complex<ld> Point;
const ll INF = mod * mod;
typedef pair<int, int> P;
#define stop char nyaa;cin>>nyaa;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
const ld eps = 1e-8;
const ld pi = acos(-1.0);
typedef pair<ld, ld> LDP;
typedef pair<ll, ll> LP;
typedef vector<int> vec;

const int mn = 100001;
bool isp[mn];
vector<int> p;
void init() {
	fill(isp+2, isp + mn, true);
	Rep(i, 2, mn) {
		if (!isp[i])continue;
		p.push_back(i);
		for (int j = 2*i; j < mn; j += i) {
			isp[j] = false;
		}
	}
}

int ma[1 << 17];

int gcd(int a, int b) {
	if (a < b)swap(a, b);
	while (b) {
		int r = a % b; a = b; b = r;
	}
	return a;
}
ll mod_pow(ll a, ll n = mod - 2, ll m = mod) {
	ll ret = 1;
	while (n) {
		if (n % 2)ret = ret * a%mod;
		a = a * a%mod; n >>= 1;
	}
	return ret;
}

void solve() {
	//init();

	int n; cin >> n;
	vector<int> a(n);
	rep(i, n)cin >> a[i];
	sort(a.begin(), a.end());
	ll ans = a[0];
	int g = 1;
	rep1(i, n - 1) {
		g = gcd(g, a[i]);
	}
	cout << ans * g%mod << endl; return;
	rep1(i, n-1) {
		int g = i;
		int u = gcd(g, n - i);
		g /= u;
		u = gcd(g, a[i]);
		g /= u;
	}
	ll ans = a[0];
	rep1(i, n - 1) {
		ans = ans * i%mod;
	}
	Rep(i,2, mn) {
		ll inv = mod_pow(i);
		rep(j, ma[i]) {
			ans = ans * inv%mod;
		}
	}
	cout << ans << endl;
}

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed << setprecision(5);
	//while (cin >> n,n)solve();
	solve();
	//stop
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:94:12: error: redeclaration of 'll ans'
   94 |         ll ans = a[0];
      |            ^~~
a.cc:81:12: note: 'll ans' previously declared here
   81 |         ll ans = a[0];
      |            ^~~
Language: C++

#include <bits/stdc++.h>

usign namespace std;

int main()
{
  cout << "1\n";
  return 0;
}

Compiler output:
a.cc:3:1: error: 'usign' does not name a type
    3 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << "1\n";
      |   ^~~~
      |   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

main(){
	int n,i=0;
	cin>>n;
	long a[n];
	for(;i<n;cin>>a[i],i++);
	sort(a,a+n);
	for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1ll))%=998244353,i--);
	cout<<*a<<endl;
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:28: error: no matching function for call to '__gcd(long int&, long long int)'
   10 |         for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1ll))%=998244353,i--);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:10:28: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long int' and 'long long int')
   10 |         for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1ll))%=998244353,i--);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~
Language: C++

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

main(){
	int n,i=0;
	cin>>n;
	long long a[n];
	for(;i<n;cin>>a[i],i++);
	sort(a,a+n);
	for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1))%=998244353,i--);
	cout<<*a<<endl;
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:28: error: no matching function for call to '__gcd(long long int&, int)'
   10 |         for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1))%=998244353,i--);
      |                       ~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:10:28: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
   10 |         for(;i-1;(*a*=__gcd(a[n-i+1],n-i+1))%=998244353,i--);
      |                       ~~~~~^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<vector>
#include<list>
#include<deque>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<ctime>
#include<complex>
#include<functional>
#include<climits>
#include<cassert>
#include<iterator>
#include<random>
#include<unordered_set>
#include<unordered_map>

using namespace std;

#define MAX 100002
#define MOD 998244353

int n;

vector<int> v;

long long int gcd(long long int a, long long int b) {
	if (a > b)swap(a, b);
	while (a) {
		swap(a, b);
		a %= b;
	}
	return b;
}

int main() {
	cin >> n;
	for (int i = 0; i < n; i++) {
		int a;
		scanf("%d", &a);
		v.push_back(a);
	}
	sort(v.begin(), v.end());
	for (int i = 0; i < v.size(); i++) {

	}
	return 0;
}

あいうえお

Compiler output:
a.cc:62:1: error: '\U00003042\U00003044\U00003046\U00003048\U0000304a' does not name a type
   62 | あいうえお
      | ^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main (void)
{
int x,y;
  cin<>>x>>y;
  cout<<x+y/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before '>>' token
    7 |   cin<>>x>>y;
      |       ^~
Language: C++

#incude<stdio.h>
int main()
{
    int a,b,c,d;
    
    scanf("%d %d %d %d",&a,&b,&c,&d);
    
    if(fabs(a-b)<=d&&fabs(b-c)<=d||fabs(a-c)<=d)
    {
        printf("Yes\n");
    }
    
    else
    {
        printf("No\n");
    }
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d %d %d %d",&a,&b,&c,&d);
      |     ^~~~~
a.cc:8:8: error: 'fabs' was not declared in this scope
    8 |     if(fabs(a-b)<=d&&fabs(b-c)<=d||fabs(a-c)<=d)
      |        ^~~~
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("Yes\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #incude<stdio.h>
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("No\n");
      |         ^~~~~~
a.cc:15:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include<stdio.h>
int main()
{
int x,y,a,c;
scanf("%d%d"&x,&y);
a = y/2;
c = x +a;
printf("%d\n",c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 | scanf("%d%d"&x,&y);
      |       ~~~~~~^
      |       |
      |       char *
Language: C++

#include "./bits/stdc++.h"

using namespace std;



int mian(){
    int x,y;
    cin >>x >> y;
    cout << x+(y/2) << endl;

    return 0;
}


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

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

int x, y, total;

int main () {
	cin>> x >> y;
	total= (x + (y/2));
	cout<< total << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected '}' at end of input
    9 |         cout<< total << endl;
      |                              ^
a.cc:6:13: note: to match this '{'
    6 | int main () {
      |             ^
Language: C++

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

int main() {
  int x, y;
  cin >> x >> y;
  
  cout << x + y / 2 << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
using LL = long long;
#define REP(i, n) for (LL i = 0; i < (LL)(n); i++)
#define REP2(i, n) for (LL i = 1; i <= (LL)(n); i++)
#define FOR(i, m, n) for (LL i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define RSORT(x) sort(x.begin(), x.end(),greater<int>())
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define SUM(x) accumulate(x.begin(), x.end(),0)
#define VLL(v,n) vector<LL> v(n); REP(i,n)cin>>v[i];
#define VSTR(v,n) vector<string> v(n); REP(i,n)REP(i,n)cin>>v[i];
LL INF = 1e9 + 1;
LL MOD = 1e9+7;
  LL a,b,c,d,e,n,m,l,r,x,y,z,ans=100000000,ans2=0,cnt=0;
string s,S,t;
bool flag=false;
int main() {
  LL t;
ios_base::sync_with_stdio(false);
cin>>n>>t>>a;
REP(i,n){
  cin>>x;
 if(abs(((t*1000-(x*6))-a*1000)<ans){
 ans=abs((t*1000-(x*6))-a*1000);
 ans2=i+1;
         }
}
cout << ans2<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:37: error: expected ')' before '{' token
   25 |  if(abs(((t*1000-(x*6))-a*1000)<ans){
      |    ~                                ^
      |                                     )
a.cc:29:1: error: expected primary-expression before '}' token
   29 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <cstdlib>  
#include <algorithm>
#include <string>

using namespace std;
 
int main() {
    int x,y;icin>>x>>y;
    cout<<x+y/2;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'icin' was not declared in this scope
   10 |     int x,y;icin>>x>>y;
      |             ^~~~
Language: C++

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

int main(){
    ll x,y;
  cin >>x >>y;
  put(x+y/2);
    }
}


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

#include <bits/stdc++.h>
#define int long long int
#define gif(a,b) (a/b +(a%b?1:0))
#define pi 3.14159265358
#define watch(x) cout<<(#x)<<" is "<<(x)<<"\n";
#define float long double
using namespace std;

int32_t main()
{   
    cin.tie(NULL);
    std::ios::sync_with_stdio(false);
  	int  x;
  	cin >> y;
  	y /=2;
  	cout << x + y;
    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:14:16: error: 'y' was not declared in this scope
   14 |         cin >> y;
      |                ^
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
#include <string>
#include <queue>
#include <algorithm>
#include <map>
#include <cmath>
#include <numeric>
#include <list>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <tuple>
#include <deque>
#include <complex>

using namespace std;

/*
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
*/

typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<long long, long long> pll;
typedef vector<pll> vpll;

typedef long double ld;
typedef vector<ld> vld;

typedef vector<bool> vb;

#define rep(i, n) for (ll i = 0; i < (n); i++)
#define reps(i, n) for (ll i = 1; i <= (n); i++)
#define rrep(i, n) for (ll i = (n) - 1; i >= 0; i--)
#define rreps(i, n) for (ll i = (n); i >= 1; i--)
#define all(v) (v).begin(), (v).end()

template <class T> void chmin(T& a, T b) { a = min(a, b);}
template <class T> void chmax(T& a, T b) { a = max(a, b);}

constexpr int INF = 1 << 30;
constexpr ll INFL = 1LL << 60;
constexpr ll MOD = 1000000007;
constexpr ld EPS = 1e-12;
ld PI = acos(-1.0);

void solve() {
  	cin >> x >> y;
  	cout << x + y/2 << endl;
    return;
}

int main() {
    std::cin.tie(nullptr);
    std::ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:56:16: error: 'x' was not declared in this scope
   56 |         cin >> x >> y;
      |                ^
a.cc:56:21: error: 'y' was not declared in this scope; did you mean 'yn'?
   56 |         cin >> x >> y;
      |                     ^
      |                     yn
Language: C++

#include <iostream>

int main() {
    int p, q;
    cin >> p >> q;
    cout << p + q / 2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> p >> q;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << p + q / 2 << 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 |     cout << p + q / 2 << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  int x, y;
  cin >> x >> y;
  cout << x + y / 2 << endl;
  }
}


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdlib.h>
using namespace std;

int main(){
    int N;
    cin >> N;
    double T;
    double A;
    cin >> T >> A;
    double H[N];
    double Array[N];
    for (int i=0; i < N; i++){
        double h;
        cin >> h;
        double temp = T - h*0.006;
        Array[i] = fabs(temp - A);
    }
    int n = min_element(Array, Array+N) - Array;
    cout << n + 1  << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   19 |         Array[i] = fabs(temp - A);
      |                    ^~~~
      |                    labs
Language: C++

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

int main(){
    int N;
    cin >> N;
    double T;
    double A;
    cin >> T >> A;
    double H[N];
    double Array[N];
    for (int i=0; i < N; i++){
        double h;
        cin >> h;
        double temp = T - h*0.006;
        Array[i] = fabs(temp - A);
    }
    int n = min_element(Array, Array+N) - Array;
    cout << n + 1  << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   18 |         Array[i] = fabs(temp - A);
      |                    ^~~~
      |                    labs
Language: C++

#include  <cstdio >
int N,T,A,X;
int  main(){scanf ("%d%d%d",&N,&T,&A);
int res=0;
int cc=1<<30;
for(int i=1;i<=N;i++){
scanf ("%d",&X);
int d=(T*1000-X*6)-A*1000;if(d<0)d=-d;
if(cc >d)cc=d,res=i;
}
printf ("%d\n",res);

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

#include <iostream>
using namespace std;

int main()[
  int X, Y;
  cin >> X >> Y;
  
  cout << X+Y/2 << endl;
]

Compiler output:
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int X, Y;
      |   ^~~
a.cc:4:12: error: expected ']' before 'int'
    4 | int main()[
      |            ^
      |            ]
    5 |   int X, Y;
      |   ~~~       
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> X >> Y;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << X+Y/2 << endl;
      |   ^~~~
a.cc:9:1: error: expected unqualified-id before ']' token
    9 | ]
      | ^
Language: Java

import java.util.*;
import java.util.Arrays;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int [] a = new int[N];
    int [] temp = new int[N];
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = T-a[i]*0.006;
      
    }
    int min =100;
    int ans = 0;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i;
      }
    }
    System.out.println(ans);
  }
}
                          
                         
                    
    
    
    
    
    
    


Compiler output:
Main.java:14: error: incompatible types: possible lossy conversion from double to int
      temp[i] = T-a[i]*0.006;
                 ^
Main.java:20: error: cannot find symbol
      x = Math.abs(A-temp[i]);
      ^
  symbol:   variable x
  location: class Main
Main.java:21: error: cannot find symbol
      if(x<min){
         ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
        min = x;
              ^
  symbol:   variable x
  location: class Main
4 errors
Language: Java

import java.util.*;
import java.util.Arrays;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int [] a = new int[N];
    int [] temp = sc.nextInt();
    for(int i=0;i<N;i++){
      a[i] = sc.nextInt();
      temp[i] = T-a[i]*0.006;
      
    }
    int min =100;
    int ans = 0;
    for(int i=0;i<N;i++){
      x = Math.abs(A-temp[i]);
      if(x<min){
        min = x;
        ans = i;
      }
    }
    System.out.println(ans);
  }
}
                          
                         
                    
    
    
    
    
    
    


Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to int[]
    int [] temp = sc.nextInt();
                            ^
Main.java:14: error: incompatible types: possible lossy conversion from double to int
      temp[i] = T-a[i]*0.006;
                 ^
Main.java:20: error: cannot find symbol
      x = Math.abs(A-temp[i]);
      ^
  symbol:   variable x
  location: class Main
Main.java:21: error: cannot find symbol
      if(x<min){
         ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
        min = x;
              ^
  symbol:   variable x
  location: class Main
5 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll int64_t
#define all(v) v.begin(), v.end()
#define bitrep(n) for(int bit=0;bit<(1<<n);bit++)

int main() {
  int X Y;
  cin >> X >> Y;

  cout << X+Y/2 << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before 'Y'
    9 |   int X Y;
      |         ^
a.cc:10:10: error: 'X' was not declared in this scope
   10 |   cin >> X >> Y;
      |          ^
a.cc:10:15: error: 'Y' was not declared in this scope
   10 |   cin >> X >> Y;
      |               ^
Language: C++

#includeinclude<iostream.h>

using namespace std;
int main()
  {
  int a,b,c;
  cin>>a>>b;
  c=a+(b/2);
  cout<<c<<endl;
  
  return 0;
  }

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includeinclude
    1 | #includeinclude<iostream.h>
      |  ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includeinclude<iostream.h>
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<c<<endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:12: error: 'endl' was not declared in this scope
    9 |   cout<<c<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includeinclude<iostream.h>
Language: Java

import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int y = sc.nextInt();

    System.out.println(x + y/2;)


    
    
    
	}
}

Compiler output:
Main.java:15: error: ')' or ',' expected
    System.out.println(x + y/2;)
                              ^
Main.java:15: error: illegal start of expression
    System.out.println(x + y/2;)
                               ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int y = sc.nextInt();

    System.out.println(x + y/2)


    
    
    
	}
}

Compiler output:
Main.java:15: error: ';' expected
    System.out.println(x + y/2)
                               ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
int x.y;
cin >> x >> y;
cout << x+ y/2 << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected initializer before '.' token
   13 | int x.y;
      |      ^
a.cc:14:8: error: 'x' was not declared in this scope
   14 | cin >> x >> y;
      |        ^
a.cc:14:13: error: 'y' was not declared in this scope; did you mean 'yn'?
   14 | cin >> x >> y;
      |             ^
      |             yn
Language: C++

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

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll x,y;cin>>x>>y;
  ll ans=x+y/2;
  print(ans)
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int X,Y;
  cin>>X>>Y;
  cout<<X+(Y/2)<<endl;
  reutn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'reutn' was not declared in this scope
    7 |   reutn 0;
      |   ^~~~~
Language: C++

# include < bits/stdc++.h >
using namespace std;
int X , Y ;
int main ()
{
scanf ("% d % d " ,&X ,& Y );
printf ("% d \ n " , X + Y /2);
}


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

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

int main(){
    int x,y;
    cin x >> y;
    cout << x+y/2 << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected ';' before 'x'
   11 |     cin x >> y;
      |        ^~
      |        ;
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    int x = 1000; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      int xi = (double)A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i;}     
    }
    System.out.println(number);
  }  
}


Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to int
      int xi = (double)A - (T - H[i] * 0.006);
                         ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    int x = 1000; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      int xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i;}     
    }
    System.out.println(number);
  }  
}


Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to int
      int xi = A - (T - H[i] * 0.006);
                 ^
1 error
Language: Java

mport java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		sc.close();

		System.out.println(x + y / 2);
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;
 
class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    int ans = x + y / 2  
    System.out.println(ans);
  }
}

Compiler output:
Main.java:8: error: ';' expected
    int ans = x + y / 2  
                       ^
1 error
Language: Java

import java.util.scanner;
 
class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    int ans = x + y / 2; 
    System.out.println(ans);
  }
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
Main.java:5: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.scanner;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int y = scanner.nextInt();
    int ans = x + y / 2  
    System.out.println(ans);
  }
}
      
  

Compiler output:
Main.java:8: error: ';' expected
    int ans = x + y / 2  
                       ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
 
using namespace std;
using std::cout;
using ll =long long;
bool is_int_lround(double x){
  return std::lround(x)==x;
}
int ketasuu(int x){
  int n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}
ll gcd11(ll x, ll y){
  long long a= max(x,y), b=min(x,y), c=a%b;
  while( c!=0){
    a =b;
    b =c;
    c = a%b;
  }
  return b;
}

int ab(int x, int y){
  if(x>=y){
    return x-y;
  }
  else if(y>x){
    return y-x;
  }
}
int main(){
  int X,Y;
  cin>>X>>Y;
  cout <<X +Y/2<<endl;



Compiler output:
a.cc: In function 'int main()':
a.cc:40:23: error: expected '}' at end of input
   40 |   cout <<X +Y/2<<endl;
      |                       ^
a.cc:37:11: note: to match this '{'
   37 | int main(){
      |           ^
a.cc: In function 'int ab(int, int)':
a.cc:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int X, Y;
  cin X >> Y;
  cout << X + Y / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'X'
    6 |   cin X >> Y;
      |      ^~
      |      ;
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC113A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] c = Console.ReadLine().Split();
            int A = int.Parse(c[0]);
            int B = int.Parse(c[1]);
            int s;
            s = A + B / 2;
            Console.Write(s);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:20:6: error: expected ';' after class definition
   20 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC113A::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string[] c = Console.ReadLine().Split();
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             string[] c = Console.ReadLine().Split();
      |                    ^
a.cc:14:21: error: expected primary-expression before 'int'
   14 |             int A = int.Parse(c[0]);
      |                     ^~~
a.cc:15:21: error: expected primary-expression before 'int'
   15 |             int B = int.Parse(c[1]);
      |                     ^~~
a.cc:18:13: error: 'Console' was not declared in this scope
   18 |             Console.Write(s);
      |             ^~~~~~~
Language: C++

import java.util.Scanner;
//なんかよくわからないやつ
class Main{
    public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      //入力のやつ
        int X = sc.nextInt();
        //鉄道運賃
        int Y = sc.nextInt();
        //バス運賃
        System.out.println(X + Y / 2);
        //合計運賃を計算して出力
    }
}

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:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:7: error: 'Scanner' was not declared in this scope
    5 |       Scanner sc = new Scanner(System.in);
      |       ^~~~~~~
a.cc:7:17: error: 'sc' was not declared in this scope
    7 |         int X = sc.nextInt();
      |                 ^~
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.println(X + Y / 2);
      |         ^~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		scan.close();
		System.out.println(n+(m/2));
	}
}

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

#include <iostream>

int main()
{
	int fareTrain, fareBus;
	std::cin >> fareTrain >> fareBus;

	std::cout << fareTrain + fareBus/2
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: expected ';' before '}' token
    8 |         std::cout << fareTrain + fareBus/2
      |                                           ^
      |                                           ;
    9 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main{
  int x,y; cin >> x >> y;
  cout << x+y/2 << endl;
  return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int x,y; cin >> x >> y;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:5:12: error: 'cin' does not name a type
    5 |   int x,y; cin >> x >> y;
      |            ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << x+y/2 << endl;
      |   ^~~~
a.cc:7:3: error: expected unqualified-id before 'return'
    7 |   return 0;
      |   ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 	int X,Y;
   	cin >> X >> Y;
  	cout << x + Y / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'x' was not declared in this scope
    7 |         cout << x + Y / 2 << endl;
      |                 ^
Language: C

#include<stdio.h>
int main(void)
{
	int 
	scanf("%d %d", &x, &y);
	printf("%d\n", x+y/2);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected declaration specifiers or '...' before string constant
    5 |         scanf("%d %d", &x, &y);
      |               ^~~~~~~
main.c:5:24: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d %d", &x, &y);
      |                        ^
main.c:5:28: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d %d", &x, &y);
      |                            ^
main.c:6:24: error: 'x' undeclared (first use in this function)
    6 |         printf("%d\n", x+y/2);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:26: error: 'y' undeclared (first use in this function)
    6 |         printf("%d\n", x+y/2);
      |                          ^
Language: Java


import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    System.out.println(sc.nextInt() + (sc.nextInt() / 2);
  }
}


Compiler output:
Main.java:8: error: ')' or ',' expected
    System.out.println(sc.nextInt() + (sc.nextInt() / 2);
                                                        ^
1 error
Language: C++

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

int main() {
  int A,B,C;
  cin>>A>>B;
  C=B/2
  cout<<A+C<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'cout'
    7 |   C=B/2
      |        ^
      |        ;
    8 |   cout<<A+C<<endl;
      |   ~~~~
Language: Java

import java.util.*;
public class main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int x = sc.nextInt();
      int y = sc.nextInt();

        System.out.println(x+y/2);

  }
}


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

# include < cstdio >
# include < vector >
# include < algorithm >
using namespace std ;
typedef long long ll ;
# define rep (i , n ) for ( int i =0; i < n ; i ++)
int N , M ;
int P [100000] , Y [100000];
vector < int > yd [100001];
int main ()
{
scanf ("% d % d " ,&N ,& M );
rep (i , M ) scanf ("% d % d " ,& P [ i ] ,& Y [ i ]) , yd [ P [ i ]]. push_back ( Y [ i ]);
rep (i , N ) sort ( yd [ i +1]. begin () , yd [ i +1]. end ());
rep (i , M ) printf ("%012 lld \ n " , ll ( P [ i ])*1000000+ int ( lower_bound ( yd [ P [ i ]].
begin () , yd [ P [ i ]]. end () , Y [ i ]) - yd [ P [ i ]]. begin ())+1);
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a>> b;
  ciut << a+b/2<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ciut' was not declared in this scope
    6 |   ciut << a+b/2<<endl;
      |   ^~~~
Language: C++

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

int main() {
  int x,y;
  cin >> x >> y;
  cout x+y/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'x'
    7 |   cout x+y/2 << endl;
      |       ^~
      |       ;
Language: C++

#include<iostrem>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<a+b/2<<endl;
  return 0;
}

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

int main(){
  int x, y;
  cin >> x >> y;
  cout << x+(y/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x >> y;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << x+(y/2);
      |   ^~~~
Language: C++

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

int main() {
  int X,Y;
  cin>>X>>Y;
  ans=X+Y/2;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=X+Y/2;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
    int n,t,a;
    double ans = 1e9;
    cin>>n>>t>>a;
        
    int h[n+5];
 
    for(int i=0;i<n;++i){
        
        cin>>h[i];
        
        ans =  min(ans,abs(a-(t-h[i]*0.006)));
    }  
    
    for(int i=0;i<n;i++){
        if(ans ==  (abs(a-(t-h[i]*0.006)))
        {    cout<<i+1;
             break; 
        }
    }
    
    
 
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:43: error: expected ')' before '{' token
   20 |         if(ans ==  (abs(a-(t-h[i]*0.006)))
      |           ~                               ^
      |                                           )
   21 |         {    cout<<i+1;
      |         ~                                  
a.cc:24:5: error: expected primary-expression before '}' token
   24 |     }
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 	int a, b;
	cin>>a>>b;
  
    cout<<(a+(b\2));
  
  
}

Compiler output:
a.cc:8:16: error: stray '\' in program
    8 |     cout<<(a+(b\2));
      |                ^
a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before numeric constant
    8 |     cout<<(a+(b\2));
      |              ~ ^~
      |                )
a.cc:8:20: error: expected ')' before ';' token
    8 |     cout<<(a+(b\2));
      |           ~        ^
      |                    )
Language: C++

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

int main() {
	
	int X,Y;
	cin >>X >>Y;
	
	cout <<X+Y/2
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 |         cout <<X+Y/2
      |                     ^
      |                     ;
   10 | 
   11 | }
      | ~
Language: Java

import java.util.*;
public class A{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
      int b = sc.nextInt();
      System.out.println(a + b/2);
    }
}


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

import java.util.*;
public class sep17{
    public static void main(String[] args){
     Scanner sc = new Scanner(System.in);
     int a = sc.nextInt();
      int b = sc.nextInt();
      System.out.println(a + b/2);  
    }
}

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

#include<stdio.h>
int main()
{
    int a,cost,X,Y;
    scanf("%d%d",&X,&Y);
    {
        a=Y/2;
        cost=(X+a);
    }
    printf("%d\n",cost);

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

#include<stdio.h>

int main()
{
     int X,Y,cost;

     scanf("%d",&X,&Y);

     cost = (X+(Y/2));
     printf("%d\n",cost):

     return 0 ;
}

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

#include<iostream>
using namespace std;
int main() {
	int x, y; cin >> x >> y;
	cout << x + y / 2 << endl;
	return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before '}' token
    6 |         return 0
      |                 ^
      |                 ;
    7 | }
      | ~
Language: C

# include < cstdio >
# include < vector >
# include < algorithm >
using namespace std ;
typedef long long ll ;
# define rep (i , n ) for ( int i =0; i < n ; i ++)
int N , M ;
int P [100000] , Y [100000];
vector < int > yd [100001];
int main ()
{
scanf ("% d % d " ,&N ,& M );
rep (i , M ) scanf ("% d % d " ,& P [ i ] ,& Y [ i ]) , yd [ P [ i ]]. push_back ( Y [ i ]);
rep (i , N ) sort ( yd [ i +1]. begin () , yd [ i +1]. end ());
rep (i , M ) printf ("%012 lld \ n " , ll ( P [ i ])*1000000+ int ( lower_bound ( yd [ P [ i ]].
begin () , yd [ P [ i ]]. end () , Y [ i ]) - yd [ P [ i ]]. begin ())+1);
}

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

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

int main(void){
    int x,y;
    scanf("%d%d",&x,&y);
    printf("%d",x + (y/2))
}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: expected ';' before '}' token
    7 |     printf("%d",x + (y/2))
      |                           ^
      |                           ;
    8 | }
      | ~
Language: C++

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

int main(){
    int x, y;cin >> x >> y;

    cout << x + y / 2 << endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ';' before 'return'
    7 |     cout << x + y / 2 << endl
      |                              ^
      |                              ;
    8 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>
int main (void)
{
  int x,y;
  
  scanf("%d%d",&x,&y);
  
  pritnf("%d",x + y/2);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   pritnf("%d",x + y/2);
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
int main (void)
{
  int x,y,s;
  
  scanf("%d%d",&x,&y);
  
  s = x + y/2;
  
  pritnf("%d",s);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   pritnf("%d",s);
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
int main (void)
{
  int x,y;
  
  scanf("%d%d",&x,&y);
  
  pritnf("%d",x+y/2);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   pritnf("%d",x+y/2);
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
int main (void)
{
  int x,y;
  scanf("%d%d",&x,&y);
  
  pritnf("%d",(x+y)/2);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |   pritnf("%d",(x+y)/2);
      |   ^~~~~~
      |   printf
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N,T,A;
    cin >> N >> T >> A;
    vector<int> H(N);
    for (int i=0;i<N;i++) {
        cin >> H.at(i);
    }
    int M;
    int cnt=0;
    int minnum = 10000000;
    for (int i=0;i<N;i++) {
        int num=0;
        M = T * 1000 - H.at(i) * 0.006 * 1000;
        //cout << M << endl;
        if (M>(A*1000) {
            num = M-A;
            //cout << num << endl;
         } else {
             num = A-M;
             //cout << num << endl;
        }
        if (num<minnum) {
            minnum = num;
            cnt = i+1;
        }
    }
    cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected ')' before '{' token
   18 |         if (M>(A*1000) {
      |            ~          ^~
      |                       )
a.cc:29:5: error: expected primary-expression before '}' token
   29 |     }
      |     ^