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

package ABC113;

public class DiscountFare {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		int x,y,sum;
		
		x = Integer.parseInt(args[0]);
		y = Integer.parseInt(args[1]);
		
		sum = x + y/2;
		
		System.out.println(sum);
	}

}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package ABC113;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class DiscountFare {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0;i < (int)n;i++)
#define repb(i, n) for(int i = (int)n;i >= 0;i--)
#define reps(i, m, n) for(int i = (int)m;i < (int)n;i++)
#define repsb(i, m, n) for(int i = (int)m;i >= (int)n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define INF 999999999999999999
using namespace std;
int dy[]={0, 0, 1, -1, 0}
int dx[]={1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[]) {
    int a,b;
    cin>>a,b;
    cout<<a+b/2<<endl;
    return 0;
}


Compiler output:
a.cc:12:1: error: expected ',' or ';' before 'int'
   12 | int dx[]={1, -1, 0, 0, 0};
      | ^~~
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0;i < (int)n;i++)
#define repb(i, n) for(int i = (int)n;i >= 0;i--)
#define reps(i, m, n) for(int i = (int)m;i < (int)n;i++)
#define repsb(i, m, n) for(int i = (int)m;i >= (int)n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define INF 999999999999999999
using namespace std;
int dy[]={0, 0, 1, -1, 0}tex
A;
int dx[]={1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[]) {
    int a,b;
    cin>>a,b;
    cout<<a+b/2<<endl;
    return 0;
}


Compiler output:
a.cc:11:26: error: expected ',' or ';' before 'tex'
   11 | int dy[]={0, 0, 1, -1, 0}tex
      |                          ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected '}' at end of input
    8 | printf("%d\n",X+R);
      |                    ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'getch' was not declared in this scope; did you mean 'getc'?
    8 |     getch();
      |     ^~~~~
      |     getc
Language: C++

int n,m;
    cin>>n>>m;
    m=m/2;
    cout<<n+m<<endl;

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin>>n>>m;
      |     ^~~
a.cc:3:5: error: 'm' does not name a type
    3 |     m=m/2;
      |     ^
a.cc:4:5: error: 'cout' does not name a type
    4 |     cout<<n+m<<endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
double II(double val)
{
	if(val<0) return -val;
	return val;
}
int main()
{
	double N,T,A;
	double H[1000];
	double ans=114514;
	double tem;
	int i;
	int num;
	cin>>N;
	cin>>T>>A;
	for(i=0;i<N;i++){
		cin>>H[i];
		tem=II((T-A)-H[i]*0.006);
		ans=min(ans,tem);
		if(ans==tem) num=i;
	}
	cout<<num+1<<endl;
	
}
#include <bits/stdc++.h>

using namespace std;
double II(double val)
{
	if(val<0) return -val;
	return val;
}
int main()
{
	double N,T,A;
	double H[1000];
	double ans=114514;
	double tem;
	int i;
	int num;
	cin>>N;
	cin>>T>>A;
	for(i=0;i<N;i++){
		cin>>H[i];
		tem=II((T-A)-H[i]*0.006);
		ans=min(ans,tem);
		if(ans==tem) num=i;
	}
	cout<<num+1<<endl;
	
}

Compiler output:
a.cc:31:8: error: redefinition of 'double II(double)'
   31 | double II(double val)
      |        ^~
a.cc:4:8: note: 'double II(double)' previously defined here
    4 | double II(double val)
      |        ^~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main()
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <cstring>
#include <cstdio>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string>
#include <stdlib.h>
#include <queue>
#include <stack>
#include <utility>
#include <fstream>
#include <random>
#include <map>
#include <unordered_map>
#include <cstdlib>
#include <functional>
#include <random>
#include <time.h>
#include <chrono>
#include <sstream>
#include <iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
#define rrep(i,n) for(int i=n-1;i>=0;i--)
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ll long long
#define INF 1000000001
#define mod 1000000007
#define sort(s) sort(s.begin(), s.end());
#define reverse(s) reverse(s.begin(), s.end());
#define p pair<int,int>
int dx[4] = { 0,1,0,-1 };
int dy[4] = { 1,0,-1,0 };
using namespace std;
int POW(int x, int y) { return int(pow(double(x), double(y))); }

unsigned int randxor()
{
	static unsigned int x = 123456789, y = 362436069, z = 521288629, w = 88675123;
	unsigned int t;
	t = (x ^ (x << 11)); x = y; y = z; z = w; return(w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)));
}


int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n, m;
	cin >> n >> m;
	vector<int> k(m), y(m);
	vector<vector<int>> x(n);
	rep(i, m) {
		int e, r;
		scanf_s("%d %d", &e, &r);
		k[i] = e;
		y[i] = r;
		k[i]--;
		x[k[i]].push_back(y[i]);
	}
	rep(i, n) {
		vector<int> z = x[i];
		sort(z);
		x[i] = z;
	}
	rep(i, m) {
		int a = k[i] + 1;
		vector<int> z = x[k[i]];
		int b = (lower_bound(z.begin(), z.end(), y[i]) - z.begin()) + 1;
		printf("%06d%06d\n", a, b);

	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   55 |                 scanf_s("%d %d", &e, &r);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <stdio.h>

int main(){
	int X,Y;
  	scanf("%d %d", &X, &);
    printf("%d\n",X+Y/2);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: expected primary-expression before ')' token
    5 |         scanf("%d %d", &X, &);
      |                             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'ans' was not declared in this scope
    5 |         ans = X + (Y/2);
      |         ^~~
Language: C++

#include <stdio.h>
int X, Y;
void main() {
	X, Y = scanf_s("%d%d", &X, &Y);
	printf("%d",X+Y/2);
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 |         X, Y = scanf_s("%d%d", &X, &Y);
      |                ^~~~~~~
      |                scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |    scanf_s("%d %d", &x, &y);
      |    ^~~~~~~
      |    scanf
Language: C++

#include<stdio.h>
#include<cstdio>
int main()
{
   int x, y, ans;
 
   std::sscanf("%d %d", &x, &y);
 
   ans = x + (y/2);
 
   printf("%d\n", ans);
 
   return 0;                                                                              
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: cannot convert 'int*' to 'const char*'
    7 |    std::sscanf("%d %d", &x, &y);
      |                         ^~
      |                         |
      |                         int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<stdio.h>
#include<cstudio>
int main()
{
   int x, y, ans;
 
   std::sscanf("%d %d", &x, &y);
 
   ans = x + (y/2);
 
   printf("%d\n", ans);
 
   return 0;                                                                              
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |    scanf_s("%d %d", &x, &y);
      |    ^~~~~~~
      |    scanf
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |    scanf_s("%d %d", &x, &y);
      |    ^~~~~~~
      |    scanf
Language: C++

# include < cstdio >
int X , Y ;
int main ()
{
scanf ("% d % d " ,&X ,& Y );
printf ("% d \ n " , X + Y /2);
}


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

# include <cstdio>
int X, Y;
int main() {
	X, Y = scanf_s("%d%d", &X, &Y);
	printf("%d%n",X+Y/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 |         X, Y = scanf_s("%d%d", &X, &Y);
      |                ^~~~~~~
      |                scanf
Language: C++

# include < cstdio >
int X, Y;
int main() {
	X, Y = scanf_s("%d%d", &X, &Y);
	printf("%d%n",X+Y/2);
}

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

int X, Y;
int main() {
	X, Y = scanf_s("%d%d", &X, &Y);
	printf("%d%n",X+Y/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 'scanf_s' was not declared in this scope
    3 |         X, Y = scanf_s("%d%d", &X, &Y);
      |                ^~~~~~~
a.cc:4:9: error: 'printf' was not declared in this scope
    4 |         printf("%d%n",X+Y/2);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int X, Y;
Language: C++

int X, Y;
void main() {
	X, Y = scanf_s("%d%d", &X, &Y);
	printf("%d%n",X+Y/2);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:16: error: 'scanf_s' was not declared in this scope
    3 |         X, Y = scanf_s("%d%d", &X, &Y);
      |                ^~~~~~~
a.cc:4:9: error: 'printf' was not declared in this scope
    4 |         printf("%d%n",X+Y/2);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int X, Y;
Language: C

#include <stdio.h>
int main(){
    int a,b;
    scanf(“%d %d”,&a,&b);

    printf(“%d\n”,a+b/2);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:11: error: stray '\342' in program
    4 |     scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |           ^~~~~~~~
main.c:4:12: error: expected expression before '%' token
    4 |     scanf(“%d %d”,&a,&b);
      |            ^
main.c:4:17: error: stray '\342' in program
    4 |     scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |                        ^~~~~~~~
main.c:6:12: error: stray '\342' in program
    6 |     printf(<U+201C>%d\n<U+201D>,a+b/2);
      |            ^~~~~~~~
main.c:6:13: error: expected expression before '%' token
    6 |     printf(“%d\n”,a+b/2);
      |             ^
main.c:6:15: error: stray '\' in program
    6 |     printf(“%d\n”,a+b/2);
      |               ^
main.c:6:17: error: stray '\342' in program
    6 |     printf(<U+201C>%d\n<U+201D>,a+b/2);
      |                        ^~~~~~~~
Language: Java

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:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d %d,&x, &y);
      |       ^
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d%d,&x,&y);
      |       ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d%d,&x,&y);
      |       ^
main.c:7:8: error: expected expression before '%' token
    7 | printf(%d,(x+y)/2);
      |        ^
Language: C

#include<stdio.h>
int x;
int y;
scanf(%d%d,&x,&y);
printf(%d,(x+y)/2);

Compiler output:
main.c:4:7: error: expected declaration specifiers or '...' before '%' token
    4 | scanf(%d%d,&x,&y);
      |       ^
main.c:4:12: error: expected declaration specifiers or '...' before '&' token
    4 | scanf(%d%d,&x,&y);
      |            ^
main.c:4:15: error: expected declaration specifiers or '...' before '&' token
    4 | scanf(%d%d,&x,&y);
      |               ^
main.c:5:8: error: expected declaration specifiers or '...' before '%' token
    5 | printf(%d,(x+y)/2);
      |        ^
main.c:5:11: error: expected declaration specifiers or '...' before '(' token
    5 | printf(%d,(x+y)/2);
      |           ^
Language: C

#include<stdio.h>
 int abs2(int A){
     int a;
     if(A>=0){a=A;}else{a=-A;}
     return a;
}
int min(int n,int x[]){
    int y,i=0,j=0;
    y=x[0];
    while(i<n){
        if(x[i]<y){
            y=x[i];
            j=i;
        }
        i++;
    }
    return j+1;
}

int main(void){
    int N,T,A,h,d;
    scanf("%d%d%d",&N,&T,&A);
    int H[N];
    for(int i=0;i<N;i++){
        scanf("%d",&H[i]);
    }
    for(int i=0;i<N;i++){
        d=H[i]*6;
        H[i]=abs2(1000A-1000T+d);
    }
    printf("%d\n",min(N,H));
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:29:19: error: invalid suffix "A" on integer constant
   29 |         H[i]=abs2(1000A-1000T+d);
      |                   ^~~~~
main.c:29:25: error: invalid suffix "T" on integer constant
   29 |         H[i]=abs2(1000A-1000T+d);
      |                         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected identifier before '&' token
    4 |         scanf("%d%d".&X,&Y);
      |                      ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before ';' token
    9 | cout<<x+(y/2)<<;
      |                ^
Language: C++

#include<iostream>
using namsepace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<a+b/2<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namsepace'
    2 | using namsepace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<a+b/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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<a+b/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

file:///home/scinfo22/220397g/kutpg/atcoder/181109/discountfare.c


Compiler output:
main.c:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    1 | file:///home/scinfo22/220397g/kutpg/atcoder/181109/discountfare.c
      |     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int n,m;

int main(){
	scanf("%d%d",&n,&m);
	printf("%d\n",n+m/2);
	retu9rn 0;
}

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

#include <iostream>
using namespace std;
int main(){
    int A,B;
    cin>>A>>B;

    cout(A+B/2)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
    7 |     cout(A+B/2)
      |     ~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int A,B;
    cin>>A>>B;

    print(A+B/2)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 |     print(A+B/2)
      |     ^~~~~
      |     printf
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 () {
<cstdio > <vector > <algorithm >
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("%012lld\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: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      | ^
a.cc:10:2: error: 'cstdio' was not declared in this scope; did you mean 'stdin'?
   10 | <cstdio > <vector > <algorithm >
      |  ^~~~~~
      |  stdin
a.cc:10:11: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      |           ^
a.cc:10:19: error: missing template arguments before '>' token
   10 | <cstdio > <vector > <algorithm >
      |                   ^
a.cc:10:21: error: expected primary-expression before '<' token
   10 | <cstdio > <vector > <algorithm >
      |                     ^
a.cc:10:22: error: 'algorithm' was not declared in this scope
   10 | <cstdio > <vector > <algorithm >
      |                      ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
//using multiInt = boost::multiprecision::cpp_int;

using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template<typename Q_temp>
using smaller_queue = priority_queue <Q_temp, vector<Q_temp>, greater<Q_temp> >;

const int INF = (int) 1e9;
const ll LINF = (ll) 4e18;
const ll MOD = (ll) (1e9 + 7);
const double PI = acos(-1.0);
const int limit = 100010;

#define REP(i,m,n) for(ll i = m; i < (ll)(n); ++i)
#define rep(i,n) REP(i, 0, n)
#define MP make_pair
#define YES(n) cout << ((n) ? "YES" : "NO") << endl
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible") << endl
#define all(v) v.begin(), v.end()
#define NP(v) next_permutation(all(v))
#define dbg(x_) cerr << #x_ << ":" << x_ << endl;
#define dbg2(x_) for(auto a_ : x_) cerr << a_ << " "; cerr << endl;
#define dbg3(x_ , sx_) rep(i, sx_) cerr << x_[i] << " "; cerr << endl;
vector<int> Dx = {0, 0, -1, 1, -1, 1, -1, 1, 0};
vector<int> Dy = {1, -1, 0, 0, -1, -1, 1, 1, 0};

ll gcd(ll a, ll b) {
    return b == 0 ? a : gcd(b, a % b);
}

inline ll CEIL(ll a, ll b) {
    return (a + b - 1) / b;
}

//------------------------------------------------------

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



Compiler output:
a.cc: In function 'int main()':
a.cc:46:12: error: 'x' was not declared in this scope; did you mean 'Dx'?
   46 |     cin >> x >> y;
      |            ^
      |            Dx
a.cc:46:17: error: 'y' was not declared in this scope; did you mean 'yn'?
   46 |     cin >> x >> y;
      |                 ^
      |                 yn
Language: C++

#include <iostream>
#include <string>
using namespace std

int main(){
  int x;
  int y;

  cin >> x >> y;
  cout << (x + y/2) << endl;
}


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

#include<iostream>

int main()
{
  //入力
  int X=0, Y=0;
  cin>>X>>Y;
  
  //出力
  cout<<X+Y/2<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>X>>Y;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout<<X+Y/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:10:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout<<X+Y/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/stdio.h>

using namespace std;

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


Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> a >> b;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << a+b/2 << endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 | cout << a+b/2 << endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<bits/stdio.h>

using namespace std;

int main()
{
    int a,b;


Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: expected '}' at end of input
    7 |     int a,b;
      |             ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
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++

int main()
{
	mondai1();
	return 0;
}

void mondai1() {
	int aTob, bToc,fare;
	cin >> aTob >> bToc;
	
	fare = aTob + bToc/2;

	cout << fare;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'mondai1' was not declared in this scope
    3 |         mondai1();
      |         ^~~~~~~
a.cc: In function 'void mondai1()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> aTob >> bToc;
      |         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << fare;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout < x + y/2 << endl;
      |          ~~~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(
{
      int x,y;
     scanf("%d%d",&x,&y);

     printf("%d",x+y/2);
     return 0;
}


Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main(
      |     ^~~~
a.cc:7:7: error: expected primary-expression before 'int'
    7 |       int x,y;
      |       ^~~
a.cc:7:7: error: expected '}' before 'int'
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
a.cc:6:2: error: expected ')' before 'int'
    6 | {
      |  ^
      |  )
    7 |       int x,y;
      |       ~~~
a.cc:5:9: note: to match this '('
    5 | int main(
      |         ^
a.cc:7:13: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |       int x,y;
      |             ^
      |             yn
a.cc:8:11: error: expected constructor, destructor, or type conversion before '(' token
    8 |      scanf("%d%d",&x,&y);
      |           ^
a.cc:10:12: error: expected constructor, destructor, or type conversion before '(' token
   10 |      printf("%d",x+y/2);
      |            ^
a.cc:11:6: error: expected unqualified-id before 'return'
   11 |      return 0;
      |      ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C

include<stdio.h>
int main()
{
int farea,fareb;
int result;
scanf("%d%d",&farea,&fareb);
result=farea+fareb/2;
printf("%d",result);
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,y;
  cint>>x>>y;
  cout<<x+(y/2)<<endl;
  return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    5 |   cint>>x>>y;
      |   ^~~~
      |   uint
Language: C

#include <math.h>
#include <stdio.h>
int main()
{
	int n,ans;
	double t,x,a;
	scanf("%d %lf %lf",&n ,&t ,&a);
	double array[];
	for(int i = 0; i< n; i++){
		scanf("%lf",&x);
		array[i] = fabs(a-(t - x*0.006)); 
	}
	ans = 0;
	double xmin = array[0];
	for(int i; i<n; i++){
		if(xmin > array[i]){
			xmin = array[i];
			ans = i;
		}
	}
	printf("%d",ans);
	
	
}


Compiler output:
main.c: In function 'main':
main.c:8:16: error: array size missing in 'array'
    8 |         double array[];
      |                ^~~~~
Language: C++

#include<cstdio>
using namespace std;
#define R reigster
int main()
{
R int a,b;
scanf("%d%d",&a,&b);
printf("%d",a + (b >> 1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'reigster' was not declared in this scope; did you mean 'register'?
    3 | #define R reigster
      |           ^~~~~~~~
a.cc:6:1: note: in expansion of macro 'R'
    6 | R int a,b;
      | ^
a.cc:7:15: error: 'a' was not declared in this scope
    7 | scanf("%d%d",&a,&b);
      |               ^
a.cc:7:18: error: 'b' was not declared in this scope
    7 | scanf("%d%d",&a,&b);
      |                  ^
Language: C++

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


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

#include <iostream>
using namespase std;

int main()
{
    int X, Y; cin >> X >> Y;
    cout << X + Y / 2 << 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:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     int X, Y; cin >> X >> Y;
      |               ^~~
      |               std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << X + Y / 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:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << X + Y / 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 <iostream>
#include <cstdio>

using namespace std;

int main(){
	int x, y;
 	int ans = 0;
  	scanf("%d%d", &x, &y)
  	ans = 0;
	ans = x + y/2;
	printf("%d\n", ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'ans'
    9 |         scanf("%d%d", &x, &y)
      |                              ^
      |                              ;
   10 |         ans = 0;
      |         ~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int x,y,z;
cin>>x>>y;
z =x+(y/2);
count<<z;}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'count' was not declared in this scope
    7 | count<<z;}
      | ^~~~~
Language: C

#include <stdio.h>

int main(void){
  
 int X, Y;
  
  scanf("%d %d". &X, &Y);
  
  printf("%d", X + (Y/2));
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected identifier before '&' token
    7 |   scanf("%d %d". &X, &Y);
      |                  ^
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<cmath>
using namespace std;
#define REP(i, limit) for(int i=0; i< limit; ++i)
#define FOR(i, j, limit) for(int i=j; i< limit; ++i)
#define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";else cout<<endl;}
#define LL long long
#define INF LONG_MAX
#define LINF LLONG_MAX
LL MOD = 1000000007;
typedef pair<int, int>P;
typedef pair<LL, LL>PL;


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


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'LLONG_MAX' was not declared in this scope
   14 | #define LINF LLONG_MAX
      |              ^~~~~~~~~
a.cc:23:8: note: in expansion of macro 'LINF'
   23 |   if(X<LINF)cout<<X+Y/2<<endl;
      |        ^~~~
a.cc:8:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    7 | #include<cmath>
  +++ |+#include <climits>
    8 | using namespace std;
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<cmath>
using namespace std;
#define REP(i, limit) for(int i=0; i< limit; ++i)
#define FOR(i, j, limit) for(int i=j; i< limit; ++i)
#define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";else cout<<endl;}
#define LL long long
#define INF LONG_MAX
#define LINF LONG_MAX
LL MOD = 1000000007;
typedef pair<int, int>P;
typedef pair<LL, LL>PL;


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


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'LONG_MAX' was not declared in this scope
   14 | #define LINF LONG_MAX
      |              ^~~~~~~~
a.cc:23:8: note: in expansion of macro 'LINF'
   23 |   if(X<LINF)cout<<X+Y/2<<endl;
      |        ^~~~
a.cc:8:1: note: 'LONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    7 | #include<cmath>
  +++ |+#include <climits>
    8 | using namespace std;
Language: C

#include<stdio.h>
int main(){
	int X, Y;
	printf("%d%d", &X, &Y);
	printf("%d", X+(Y/2));
	return;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
    6 |         return;
      |         ^~~~~~
main.c:2:5: note: declared here
    2 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int x,y;
  cin>>x>>y;
  cout<<yy/2+xx<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'yy' was not declared in this scope; did you mean 'y'?
    7 |   cout<<yy/2+xx<<endl;
      |         ^~
      |         y
a.cc:7:14: error: 'xx' was not declared in this scope; did you mean 'x'?
    7 |   cout<<yy/2+xx<<endl;
      |              ^~
      |              x
Language: C++

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

Compiler output:
a.cc:7:18: error: stray '\' in program
    7 | printf("%d\n",x+y\2);
      |                  ^
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before numeric constant
    7 | printf("%d\n",x+y\2);
      |       ~          ^~
      |                  )
Language: C++

#include<stdio.h>
int main()
{
int x,y;
while(~scanf("%d %d",&x,&y))
{
printf("%f\n",x+y/2.0);
}
retrun 0;
}

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

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
    int n,m = 0;
    int i,j,c = 0;
    int p
    cin >> n >> m;
    int p[m][3];
    // int y[m];
    for(i=0;i<m;++i){
        cin >> p[i][0] >> p[i][1];
    }
    for(i=0;i<m;++i){
        for(j=0;j<m;++j){
            if(h[i][0] == h[j][0]){
                if(h[i][1] > h[j][1])c++;
            }
        }
        h[i][2] = c;
        c = 0;
    }
    for(i=0;i<m;++i){
        cout << setfill(‘0’) << setw(6) << right << h[i][0] << setfill(‘0’) << setw(6) << right << h[i][2];
    }
}

Compiler output:
a.cc:25:25: error: extended character ‘ is not valid in an identifier
   25 |         cout << setfill(‘0’) << setw(6) << right << h[i][0] << setfill(‘0’) << setw(6) << right << h[i][2];
      |                         ^
a.cc:25:25: error: extended character ’ is not valid in an identifier
a.cc:25:72: error: extended character ‘ is not valid in an identifier
   25 |         cout << setfill(‘0’) << setw(6) << right << h[i][0] << setfill(‘0’) << setw(6) << right << h[i][2];
      |                                                                        ^
a.cc:25:72: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'cin'
    9 |     cin >> n >> m;
      |     ^~~
a.cc:17:16: error: 'h' was not declared in this scope
   17 |             if(h[i][0] == h[j][0]){
      |                ^
a.cc:21:9: error: 'h' was not declared in this scope
   21 |         h[i][2] = c;
      |         ^
a.cc:25:25: error: '\U000020180\U00002019' was not declared in this scope
   25 |         cout << setfill(‘0’) << setw(6) << right << h[i][0] << setfill(‘0’) << setw(6) << right << h[i][2];
      |                         ^~~
a.cc:25:53: error: 'h' was not declared in this scope
   25 |         cout << setfill(‘0’) << setw(6) << right << h[i][0] << setfill(‘0’) << setw(6) << right << h[i][2];
      |                                                     ^
Language: C++

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

using namespace std;

#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
 
#define pb(a) push_back(a)
#define all(x) (x).begin(),(x).end()

int main(void){

    double N,T,A,ans;
    
    cin >> N >> T >> A;
    
    vector<double> vec(N);
    REP(i,N) cin >> vec[i];
    
    REP(i,N){
       vec[i] = T - 0.006*vec[i];    
    }

   double min = 9999999999;

   ans=0;

   for(int i=0;i<N;i++){
       if(A-vec[i]>0){
           tmp = A-vec[i];
           if(min < 0)  tmp *= -1;

           if(min > tmp){
               min = tmp;
               ans= i+1;
           }
   }

   cout << ans << endl;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   33 |            tmp = A-vec[i];
      |            ^~~
      |            tm
a.cc:44:2: error: expected '}' at end of input
   44 | }
      |  ^
a.cc:14:15: note: to match this '{'
   14 | int main(void){
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int N;
    cin >> N;
    int T, A;
    cin >> T >> A;
    std::vector<int> H;
    std::vector<int> temp;
    for (int i = 0; i < N; i++) {
        cin >> i.at(i);
        temp.at(i) = T - (H.at(i) * 0.006);
    }
    sort (temp.begin(), temp.end());
    cout << temp.at(0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'vector' is not a member of 'std'
    8 |     std::vector<int> H;
      |          ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:17: error: expected primary-expression before 'int'
    8 |     std::vector<int> H;
      |                 ^~~
a.cc:9:10: error: 'vector' is not a member of 'std'
    9 |     std::vector<int> temp;
      |          ^~~~~~
a.cc:9:10: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:9:17: error: expected primary-expression before 'int'
    9 |     std::vector<int> temp;
      |                 ^~~
a.cc:11:18: error: request for member 'at' in 'i', which is of non-class type 'int'
   11 |         cin >> i.at(i);
      |                  ^~
a.cc:12:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   12 |         temp.at(i) = T - (H.at(i) * 0.006);
      |         ^~~~
      |         tm
a.cc:12:27: error: 'H' was not declared in this scope
   12 |         temp.at(i) = T - (H.at(i) * 0.006);
      |                           ^
a.cc:14:11: error: 'temp' was not declared in this scope; did you mean 'tm'?
   14 |     sort (temp.begin(), temp.end());
      |           ^~~~
      |           tm
a.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |     sort (temp.begin(), temp.end());
      |     ^~~~
      |     short
Language: C

#include <stdio.h>
#include <math.h>
int main()
{
  int n;
  float T,x,A;
  scanf("%d\n",&n);
  scanf("%f\n",&T);
  scanf("%f\n",&A);
int array[];
for (int i = 0; i <=n; i++) {
 scanf("%f\n",&x);
  array[i] = fabsf(T - x*0.006);
}
float min = array[0];
for (int i = 0; i <=n; i++) {
  if(array[i] < min) min = array[i];
}


}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: array size missing in 'array'
   10 | int array[];
      |     ^~~~~
Language: C

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

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

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#define MAXN 100000+10
int main (void)
{
	int n,m;
	cin>>n>>m;
	cout<<n+m/2<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin>>n>>m;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<n+m/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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<n+m/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 "pch.h"
#include <iostream>
using namespace std;

int abs(int);

int main()
{
	int N, T, A, H[100000];
	int temp, ans, num = 0;

	//入力部分
	cin >> N;
	cin >> T >> A;
	for (int i = 0; i < N; i++) {
		cin >> H[i];
	}

	//計算部分
	temp = T - H[0] * 0.006;
	ans = abs(temp - A);
	for (int i = 1; i < N; i++) {
		temp = T - H[i] * 0.006;
		if (abs(temp - A) < ans) {
			ans = abs(temp - A);
			num = i;
		}
	}
	
	//出力部分
	cout << num + 1 << endl;

	return 0;
}

int abs(int x)
{
	if (x > 0) {
		return x;
	}
	else {
		return -x;
	}
}

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

#include <iostream>
#include <String>

using namespace std;

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

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

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

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

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'x' was not declared in this scope
    6 |   cin >>x;
      |         ^
a.cc:7:9: error: 'y' was not declared in this scope
    7 |   cin >>y;
      |         ^
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >>x;
      |   ^~~
      |   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:4:9: error: 'x' was not declared in this scope
    4 |   cin >>x;
      |         ^
a.cc:5:9: error: 'y' was not declared in this scope
    5 |   cin >>y;
      |         ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout <<(x+y/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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout <<(x+y/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 <iostream>

int main(){
cin >>x
;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin >>x
      | ^~~
      | 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:4:7: error: 'x' was not declared in this scope
    4 | cin >>x
      |       ^
Language: C

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

int main()
{
	int i=0,N, T,A,H[1001],check[1001],check2[1001],point;
	int i_count;

	scanf_s("%d", &N);
	scanf_s("%d", &T);
	scanf_s("%d", &A);
	
	do {
		scanf_s("%d", &H[i]);
		i++;
	} while (N>i);
	
	i = 0;
	do {
		check[i] = T - H[i] * 0.006;
		i++;
	} while (N>i);
	
	i = 0;
	point = H[0];
	do {
		check2[i] = abs(T - check[i]);
		if (check2[i] <= point) {
			point = check2[i];
			i_count = i;
		}
		i++;
	} while (N>i);

	printf("%d", i_count+1);

	return 0;
}

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