criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class GCDOnBlackboard {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] Ai = new int[N];
        List<ArrayList<Integer>> AiList = new ArrayList<>();
        List<Integer> GreatestCommonDivisorList = new ArrayList<>();
        int notMatch = 0;

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

            Ai[i] = sc.nextInt();
        }

        //Aiごとに約数を算出
        for (int i = 0; i < N; i++) {

            ArrayList<Integer> factoring = new ArrayList<>();

            for(int n = 1; n-1 < Ai[i]; n++) {

                if(Ai[i] % n == 0) {

                    factoring.add(n);
                }
            }

            AiList.add(factoring);
        }
// ---------ここまでok
        int hoge = 0;

        //NC2回の全ての組み合わせに対して最大公約数をListに格納
        while (hoge < N-1) {

            int foo = hoge + 1;
            Integer GreatestCommonDivisor = 0;

            while(foo <= N) {

                for (int n = 0; n <= AiList.get(hoge).size(); n++) {

                    for (int nextAi = 0; nextAi <= AiList.get(foo-1).size(); nextAi++) {

                        if(AiList.get(hoge).get(n).equals(AiList.get(foo-1).get(nextAi))) {

                            GreatestCommonDivisor = AiList.get(hoge).get(n);
                        }
                    }

                foo++;
                }

                GreatestCommonDivisorList.add(GreatestCommonDivisor);
                if(GreatestCommonDivisor.equals(1)) {

                    notMatch++;
                }
            }

            hoge++;
        }

        //GreatestCommonDivisorListのsizeと最大公約数がない場合に応じてansを出力
        if (notMatch >= 2) {

            System.out.println(1);
        } else if ( N == 2) {

            if (Ai[0] >= Ai[1]) {

                System.out.println(Ai[0]);
            } else {

                System.out.println(Ai[1]);
            }
        } else {

            int max = 0;

            for (int i = 0; i < GreatestCommonDivisorList.size(); i++) {

                if (max < GreatestCommonDivisorList.get(i)) {

                    max = GreatestCommonDivisorList.get(i);
                }
            }

            System.out.println(max);
        }

        sc.close();
    }
}

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

include<iostream>
using namespace std;
int main(){
  int B;
  float A, T;
  cin >> A >> B >> T;
 
  int sum = 0;
  for(int i=0;i<T/A;++i){
    sum += B;
  }
  cout << sum << endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> T;
      |   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << sum << endl;
      |   ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |   cout << sum << endl;
      |                  ^~~~
Language: C++

include<iostream>
using namespace std;
int main(){
  int B;
  float A, T;
  cin >> A >> B >> T;
 
  int sum = 0;
  if(A <= T){
    while(A <= T+0.5){
      sum += B;
      A += A;
    }
     cout << sum << endl;
  }
  else{
    cout << 0 << endl;
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> T;
      |   ^~~
a.cc:14:6: error: 'cout' was not declared in this scope
   14 |      cout << sum << endl;
      |      ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |      cout << sum << endl;
      |                     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << 0 << endl;
      |     ^~~~
a.cc:17:18: error: 'endl' was not declared in this scope
   17 |     cout << 0 << endl;
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b, t;
  cin >> a >> b >>t;
  int i;
  i = t / a;
  int j;
  j = s * b;
  cout << j << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 's' was not declared in this scope
   10 |   j = s * b;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b, t;
  cin >> a >> b >>t;
  int i;
  s = t / A;
  int j;
  j = s * B;
  cout << j << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 's' was not declared in this scope
    8 |   s = t / A;
      |   ^
a.cc:8:11: error: 'A' was not declared in this scope
    8 |   s = t / A;
      |           ^
a.cc:10:11: error: 'B' was not declared in this scope
   10 |   j = s * B;
      |           ^
Language: C++

#include <iostream>
using nameplace std;
int main()
{
int a,b,t;
cin>>a>>b>>t;
int c;
 c=(t+0.5)/a;
  b=b*c;
  cout<<b<<endl;
return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>a>>b>>t;
      | ^~~
      | 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<<b<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout<<b<<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<bits/stdc++.h>
using namespace std;
int main(){
  	int a, b, c;
	cin>>a>>b>>t;
 	cout<<(t/a)*b<<endl;
    return 0;
}   

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

#include <vector>
using namespace std;
 
long long int gcd(long long int a,long long int b)
{
    if(b==0) return a;
    return gcd(b,a%b);
}
 
int main()
{
	long long int n; cin>>n;
	long long int a[1000001];
	for(long long int i=0;i<n;i++) cin>>a[i];
	
	long long int l[1000001],r[1000001];
	
	l[0]=a[0],r[n-1]=a[n-1];
	
	for(long long int i=1,j=n-2;i<n;i++,j--)
	{
	   l[i]=gcd(l[i-1],a[i]);
	   r[j]=gcd(r[j+1],a[j]);
	}
	long long int m=0;
	for(long long int i=1;i<=n-2;i++) m=max(m,gcd(l[i-1],r[i+1]));
	
	m=max(m,l[n-2]);
	m=max(m,r[1]);
	cout<<m<<endl;
}
#include <iostream>
#include <vector>
using namespace std;

long long int gcd(long long int a,long long int b)
{
    if(b==0) return a;
    return gcd(b,a%b);
}

int main()
{
	long long int n; cin>>n;
	long long int a[1000001];
	for(long long int i=0;i<n;i++) cin>>a[i];
	
	long long int l[1000001],r[1000001];
	
	l[0]=a[0],r[n-1]=a[n-1];
	
	for(long long int i=1,j=n-2;i<n;i++,j--)
	{
	   l[i]=gcd(l[i-1],a[i]);
	   r[j]=gcd(r[j+1],a[j]);
	}
	long long int m=0;
	for(long long int i=1;i<=n-2;i++) m=max(m,gcd(l[i-1],r[i+1]));
	
	m=max(m,l[n-2]);
	m=max(m,r[1]);
	cout<<m<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: 'cin' was not declared in this scope
   12 |         long long int n; cin>>n;
      |                          ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout<<m<<endl;
      |         ^~~~
a.cc:30:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:18: error: 'endl' was not declared in this scope
   30 |         cout<<m<<endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc: At global scope:
a.cc:36:15: error: redefinition of 'long long int gcd(long long int, long long int)'
   36 | long long int gcd(long long int a,long long int b)
      |               ^~~
a.cc:4:15: note: 'long long int gcd(long long int, long long int)' previously defined here
    4 | long long int gcd(long long int a,long long int b)
      |               ^~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main()
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main()
      |     ^~~~
Language: C++

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

int main(){
 int A,B,T,bisc;
    cin >> A >> B >> T;
  bisc = {(T+0.5)/A}*B;
  
  cout << bisc << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: warning: narrowing conversion of '(((double)T + 5.0e-1) / (double)A)' from 'double' to 'int' [-Wnarrowing]
    7 |   bisc = {(T+0.5)/A}*B;
      |           ~~~~~~~^~
a.cc:7:21: error: expected ';' before '*' token
    7 |   bisc = {(T+0.5)/A}*B;
      |                     ^
      |                     ;
Language: Java

import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		int n = seer.nextInt();
		int[] arr = new int[n];
		for(int i = 0; i < n; i++){
			arr[i] = seer.nextInt();
		}
		int tot = 0;
		for(int i = 0; i < n; i++){
			int c = seer.nextInt();
			if(arr[i] > c) tot += arr[i]-c;
		}
		System.out.println(tot);
	}
 
}
import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		int n = seer.nextInt();
		int[] arr = new int[n];
		for(int i = 0; i < n; i++){
			arr[i] = seer.nextInt();
		}
		int tot = 0;
		for(int i = 0; i < n; i++){
			int c = seer.nextInt();
			if(arr[i] > c) tot += arr[i]-c;
		}
		System.out.println(tot);
	}

}


Compiler output:
Main.java:20: error: class, interface, enum, or record expected
import java.util.*;
^
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,c,t;
  cin>>a>>c>>t;
  
  int s=0;
  
  for(int i=1;i*a<t+0.5;i++) s += B;
  
  cout<<s<<endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: 'B' was not declared in this scope
   10 |   for(int i=1;i*a<t+0.5;i++) s += B;
      |                                   ^
Language: C++

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

typedef unsigned long ul;
typedef long long ll;
typedef pair<ul, ul> P; //ペア　タイプでふ

int main()
{
    int A, B, T;
    cin >> A;
    cin >> B;
    cin >> T;
    cout << (int)(B * (((T + 0.5) - (T + 0.5) % A) / A));
    // int A, B, C;
    // cin >> A >> B >> C;
    // if (A < C && C < B)
    // {
    //     cout << "Yes";
    // }
    // else
    // {
    //     cout << "No";
    // }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:47: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |     cout << (int)(B * (((T + 0.5) - (T + 0.5) % A) / A));
      |                                     ~~~~~~~~~ ^ ~
      |                                        |        |
      |                                        double   int
Language: C++

#include<iostream>
int main(){
int A,B,T;
  cin>>A>>B>>T;
  double ans;
  ans=B*T/A;
  cout<<ans<<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>>A>>B>>T;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<ans<<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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<ans<<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(){
int A,B,T;
  cin>>A>>B>>T;
  cout<<B*T/A<<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>>A>>B>>T;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<B*T/A<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<B*T/A<<endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
inline int max (int a, int b) {return a > b ? a : b;}
int main() {
  int n,a,mx=0;
  scanf ("%d",&n);
  for (int x = 0; x < n; x++) {
    scanf ("%d",&a);
    if (x < n-2) {
      for (int y = 1; y * y <= a; y++) {
      if (a%y==0) {
        factors[y]++;
        if (a/y!=y) factors[a/y]++;
      }
    }
    }
    else {
     	for (int y = 1; y * y <= a; y++) {
      if (a%y==0) {
        if ((factors[y]++) >= n-1) mx = max(mx,y);
        if (a/y!=y && (factors[a/y]++) >= n-1) mx=max(mx,a/y);
      }
    }
    }
  }
  printf ("%d\n",mx);
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'factors' was not declared in this scope; did you mean 'acos'?
   12 |         factors[y]++;
      |         ^~~~~~~
      |         acos
a.cc:20:14: error: 'factors' was not declared in this scope; did you mean 'acos'?
   20 |         if ((factors[y]++) >= n-1) mx = max(mx,y);
      |              ^~~~~~~
      |              acos
a.cc:21:24: error: 'factors' was not declared in this scope; did you mean 'acos'?
   21 |         if (a/y!=y && (factors[a/y]++) >= n-1) mx=max(mx,a/y);
      |                        ^~~~~~~
      |                        acos
Language: C++

#include<iostream>
using namespace std;

void main(void){
  int A,B,T;
  int answer;
  
  cin >> A B T;
  
  answer = T / A;
  answer *= B;
  
  cout << answer;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'B'
    8 |   cin >> A B T;
      |           ^~
      |           ;
Language: C++

int a,b,t;
cin>>a>>b>>t;
cout<<(t/a) * b;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>a>>b>>t;
      | ^~~
a.cc:3:1: error: 'cout' does not name a type
    3 | cout<<(t/a) * b;
      | ^~~~
Language: Java

import java.util.Scanner;

public class BiscuitGenerator 
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		int t = scan.nextInt();
		
		int x = t/a;
		int y = x * b;
		
		System.out.println(y);
	}
}


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

#include <bits/stdc++.h>
#define all(x) begin(x), end(x)
#define dbg(x) cerr << #x << " = " << x << endl
#define _ << ' ' <<
using namespace std;
using ll = long long;
using vi = vector<int>;


int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int a, b, t;
    cin >> a >> b >> t;
    cout << b * t / a
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before '}' token
   16 |     cout << b * t / a
      |                      ^
      |                      ;
   17 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int main(){
int A,B,C;
cin >> A >> B >> C;
cout << (T/A)*B << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'T' was not declared in this scope
    6 | cout << (T/A)*B << endl;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,t
  cin >> a;
  cin >> b;
  cin >> t;
  
  int res = (t/a)*b;
  
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin >> a;
      |   ^~~
a.cc:7:10: error: 't' was not declared in this scope
    7 |   cin >> t;
      |          ^
Language: C++

/** Author: Nicklaus **/
 #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long int lli;
typedef long double ld;

int main(){
	int a, b, t;
	cin>>a>>b>>t;
	cou<<(t/a)*b<<endl;	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
   11 |         cou<<(t/a)*b<<endl;
      |         ^~~
      |         cos
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#define speed ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define ll long long
#define eps 1e-8
#define inf INT_MAX
#define mod 1000000009
using namespace std;

inline int FastI() {
	char c = ' '; int a = 0;
	while (!isdigit(c)) c = _getc_nolock(stdin);
	while (isdigit(c)) {
		a *= 10;
		a += c - '0';
		c = _getc_nolock(stdin);
	}
	return a;
}

inline void FastO(ll val) {
	bool c = 0;
	for (ll i = 1000000000000000; i >= 1; i /= 10) {
		if (val / i) {
			c = 1;
			_putc_nolock(val / i + '0', stdout);
			val %= i;
		}
		else if (c) _putc_nolock('0', stdout);
	}
	if (!c) _putc_nolock('0', stdout);
	_putc_nolock('\n', stdout);
}

int main() {
	speed;
	int a, b, n;
	cin >> a >> b >> n;
	cout << n / a * b << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int FastI()':
a.cc:18:33: error: '_getc_nolock' was not declared in this scope
   18 |         while (!isdigit(c)) c = _getc_nolock(stdin);
      |                                 ^~~~~~~~~~~~
a.cc:22:21: error: '_getc_nolock' was not declared in this scope
   22 |                 c = _getc_nolock(stdin);
      |                     ^~~~~~~~~~~~
a.cc: In function 'void FastO(long long int)':
a.cc:32:25: error: '_putc_nolock' was not declared in this scope
   32 |                         _putc_nolock(val / i + '0', stdout);
      |                         ^~~~~~~~~~~~
a.cc:35:29: error: '_putc_nolock' was not declared in this scope
   35 |                 else if (c) _putc_nolock('0', stdout);
      |                             ^~~~~~~~~~~~
a.cc:37:17: error: '_putc_nolock' was not declared in this scope
   37 |         if (!c) _putc_nolock('0', stdout);
      |                 ^~~~~~~~~~~~
a.cc:38:9: error: '_putc_nolock' was not declared in this scope
   38 |         _putc_nolock('\n', stdout);
      |         ^~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<math.h>
#include<vector>
#include<algorithm>

#define ll long long
#define vl vector<ll>
#define vvl vector< vector<ll> >
using namespace std;

int main(){
	cout << aa << endl;
	ll a, b, ans = 0; cin >> a >> b;
	if (max(a, b) > min(a, b)) ans += 2 * max(a, b) - 1;
	else ans = 2 * max(a, b);
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'aa' was not declared in this scope
   13 |         cout << aa << endl;
      |                 ^~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
        Scanner stdle = new Scanner(System.in);
        
        int A = stdle.nextInt();
        int B = stdle.nextInt();
        int T = stdle.nextInt();
        int AT = T/A;
        int ans = AT * B;

        system.out.println(ans);
    }
}

Compiler output:
Main.java:12: error: package system does not exist
        system.out.println(ans);
              ^
1 error
Language: C++

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

int A,B; float C;

int main(){
ios_base::sync_with_stdio(false);

cin >> A >> B >> C;

for (int i = A; i < C + 0.5; i*2)
{
    b += b;
}

cout << B;
cin >> A;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'b' was not declared in this scope
   13 |     b += b;
      |     ^
Language: Java

import java.util.*;
public class Main {
  static int gcd( int a , int b ){
    return b>0?gcd(b,a%b):a;
  }
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();

    int[] num;
    num = new int[N];
    for ( int i = 0 ; i < N ; i++ ){
      num[i] = sc.nextInt();
    }
    
    int[] GCDs;
    GCDs = new int[N];
    
    for (int i = 0 ; i < N ; i++){
      if (i==0){int GCD = num[1];}
      else {int GCD = num[0];}
      for ( int k = 0 ; k < N ; k++ ){
        if ( i==k ){continue;}
        GCD = gcd ( num[k] , GCD );
      }
      GCDs[i] =GCD;
    }

    int max = 0;
    for(int i = 0; i < GCDs.length ; i++) {
        if(max < GCDs[i]) {
            max = GCDs[i];
        }
    }
    System.out.println(max);
  }
}

Compiler output:
Main.java:24: error: cannot find symbol
        GCD = gcd ( num[k] , GCD );
        ^
  symbol:   variable GCD
  location: class Main
Main.java:24: error: cannot find symbol
        GCD = gcd ( num[k] , GCD );
                             ^
  symbol:   variable GCD
  location: class Main
Main.java:26: error: cannot find symbol
      GCDs[i] =GCD;
               ^
  symbol:   variable GCD
  location: class Main
3 errors
Language: C++

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

int main() {
  int A,B T;
  cin >> A >> B >> T;
  cout << B*(T%A) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before 'T'
    5 |   int A,B T;
      |           ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> T;
      |               ^
a.cc:6:20: error: 'T' was not declared in this scope
    6 |   cin >> A >> B >> T;
      |                    ^
Language: Java

import java.util.Scanner;
public class ACB_125_A {
	 public static void main(String args[]){
		 Scanner std = new Scanner(System.in);
		 int a = std.nextInt();
		 int b = std.nextInt();
		 int t = std.nextInt();
		 int count = t / a;
		 System.out.println(count * b);
	 }
}


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

#include<stdio.h>
  2 
  3 int main(void)
  4 {
  5   int A,B,T;
  6   int i;
  7   int x=0;
  8 
  9   scanf("%d %d %d",&A,&B,&T);
 10   for(i=A;i<=T;i+=A){
 11     x+=B;
 12   }
 13   printf("%d",x);
 14 
 15   return 0;
 16 }


Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
Language: C++

#include<stdio.h>
  2 
  3 int main(void)
  4 {
  5   int A,B,T;
  6   int i;
  7   int x=0;
  8 
  9   scanf("%d %d %d",&A,&B,&T);
 10   for(i=A;i<=T;i+=A){
 11     x+=B;
 12   }
 13   printf("%d",x);
 14 
 15   return 0;
 16 }


Compiler output:
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 |   2
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b,k;
  cin>>a>>b>>k;
  int ans=0;
  for(int i=a;i<=t+0.5;i+=b)
  {
    ans+=i;
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 't' was not declared in this scope
    8 |   for(int i=a;i<=t+0.5;i+=b)
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b,k;
  cin>>a>>b>>k;
  int ans=0;
  for(int i=0;i<=t+0.5;i+=b)
  {
    ans+=i;
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 't' was not declared in this scope
    8 |   for(int i=0;i<=t+0.5;i+=b)
      |                  ^
Language: C++

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

int main()
{
  	int a, b, t;
  	cin >> a >> b >> t;
  
  	ans = (t/a) * b;
  	cout << ans << endl;
 	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans = (t/a) * b;
      |         ^~~
      |         abs
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class B_resale {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 < 0) {
				continue;
			}
			result = result + result1;
		}

		System.out.println(result);

	}

}


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

package abc125;

import java.util.ArrayList;
import java.util.Scanner;

public class B_resale {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 < 0) {
				continue;
			}
			result = result + result1;
		}

		System.out.println(result);

	}

}


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

#include<iostream>
#include<vector>

using namespace std;
int func1(int x, int y);

int main(){
    int n;
    int x = 1000000000;
    int max1 = 1;
    int max2 = 1;
    int m1 = 0;
    int m2 = 0;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++){
        cin >> a[i];
    }

    for (int i = 0; i < n; i++){
        // cout << "***" << i << "***" << endl;
        // cout << "-----1-----" <<endl;
        max1 = 1;
        max2 = 1;
        for (int k = 0; k < i; k++){
            if (k == 0){
                max1 = a[0];
                continue;
            }
            m1 = func1(max1, a[k]);
            if (max1 > m1){
                max1 = m1;
            }
        }
        // cout << max1 <<endl;
        // cout << "-----2-----" <<endl;
        for (int l = i+1; l < n; l++){
            if (l == i+1){
                max2 = a[i+1];
                continue;
            }
            m2 = func1(max2, a[l]);
            if (max2 > m2){
                max2 = m2;
            }
        }
        // cout << max2 <<endl;
        int y = func1(max1, max2);
        if x > y {
            x = y;
        }

    }

    cout << x << endl;

    return 0;
}

int func1(int x, int y){
    if (y>x){
        swap(x,y);
    }
    if (y == 0){
        return x;
    }
    return func1(x%y,y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:12: error: expected '(' before 'x'
   49 |         if x > y {
      |            ^
      |            (
Language: C++

#include<iostream>
#include<vector>

using namespace std;
int func1(int x, int y);

int main(){
    int n;
    int x = 1000000000;
    int max1 = 1;
    int max2 = 1;
    int m1 = 0;
    int m2 = 0;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++){
        cin >> a[i];
    }

    for (int i = 0; i < n; i++){
        // cout << "***" << i << "***" << endl;
        // cout << "-----1-----" <<endl;
        max1 = 1;
        max2 = 1;
        for (int k = 0; k < i; k++){
            if (k == 0){
                max1 = a[0];
                continue;
            }
            m1 = func1(max1, a[k]);
            if (max1 > m1){
                max1 = m1;
            }
        }
        // cout << max1 <<endl;
        // cout << "-----2-----" <<endl;
        for (int l = i+1; l < n; l++){
            if (l == i+1){
                max2 = a[i+1];
                continue;
            }
            m2 = func1(max2, a[l]);
            if (max2 > m2){
                max2 = m2;
            }
        }
        // cout << max2 <<endl;
        int y = func1(max1, max2);
        if x > y {
            x = y;
        }

    }

    count << x << endl;

    return 0;
}

int func1(int x, int y){
    if (y>x){
        swap(x,y);
    }
    if (y == 0){
        return x;
    }
    return func1(x%y,y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:12: error: expected '(' before 'x'
   49 |         if x > y {
      |            ^
      |            (
a.cc:55:5: error: 'count' was not declared in this scope
   55 |     count << x << endl;
      |     ^~~~~
Language: C

void main(void){
	int A, B, T, result;
	scanf("%d %d %d", &A, &B, &T);
	result = (int)(T / A) * B;
	prinf("%d", result);
}

Compiler output:
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         scanf("%d %d %d", &A, &B, &T);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main(void){
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%d %d %d", &A, &B, &T);
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: implicit declaration of function 'prinf' [-Wimplicit-function-declaration]
    5 |         prinf("%d", result);
      |         ^~~~~
Language: C++

#include<stdio.h>
#include<math.h>

int main(void){
int a;
int b;
int t;
int m;
cin >> a >> b >> t;
m = b * (t/a);
printf("%d",m);	
return 0;
}	

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

#include<stdio.h>
#include<math.h>

int main(void){
int a;
int b;
int t;
int m;
cin >> a >> b >> t;
m = b * (t/a);
printf("%d",m);	
}	

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

#include<stdio.h>
#include<math.h>

int main(void){
int a;
int b;
int t;
int m;
std::cin >> a >> b >> t;
m = b * (t/a);
return m;	
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'cin' is not a member of 'std'
    9 | std::cin >> a >> b >> t;
      |      ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<math.h>
  +++ |+#include <iostream>
    3 |
Language: C++

#include<stdio.h>
#include<math.h>

int main(void){
int a;
int b;
int t;
int m;
cin >> a >> b >> t;
m = b * (t/a);
return m;	
}	

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

#include<stdio.h>
#include<math.h>

int main(void){
int a;
int b;
int t;
int m;
cin >> a;
cin >> b;
cin >> t;
m = b * (t/a);
return m;	
}	

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

#include<stdio.h>
#include<math.h>
intain(void){
int a;
int b;
int t;
int m;
cin >> a;
cin >> b;
cin >> t;
m = b * (t/a);
return m;	
}	

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'intain' with no type [-fpermissive]
    3 | intain(void){
      | ^~~~~~
a.cc: In function 'int intain()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'sin'?
    8 | cin >> a;
      | ^~~
      | sin
Language: C++

#include<stdio.h>

int main(void){
int a;
int b;
int t;
int m;
cin >> a;
cin >> b;
cin >> t;
m = b * (t/a);
return m;	
}	

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

int main(void){
int a;
int b;
int t;
int m;
scanf("%d %d %d",&a,&b,&t);
m = b * (t/a);
return m;	
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'scanf' was not declared in this scope
    6 | scanf("%d %d %d",&a,&b,&t);
      | ^~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		// スペース区切りの整数の入力
		int B = sc.nextInt();
		int T = sc.nextInt();
		int s = T/A
		System.out.println( s*b);
	}
}

Compiler output:
Main.java:10: error: ';' expected
		int s = T/A
		           ^
1 error
Language: C++

#include<bits/stc++.h>
using namespace std;
int a,b,t;
int main() {
	cin >> a >> b >> t;
	cout << ((t+0.5)/a)*b << "\n";
}

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

int A , B , T ; cin >> A >> B >> T ;
int generated_times = T / A ;
int ans = generated_times * B ;
cout << ans << endl ;

Compiler output:
a.cc:1:17: error: 'cin' does not name a type
    1 | int A , B , T ; cin >> A >> B >> T ;
      |                 ^~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << ans << endl ;
      | ^~~~
Language: C

#include<stdio.h>
 
int main(void){
  int a,b,t;
  scanf("%d%d%d",&a,&b,&t);
c=t+0.5;
  a=c/a*b;
  printf("%d",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'c' undeclared (first use in this function)
    6 | c=t+0.5;
      | ^
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

public class Main{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[n];
        for (int i = 0; i < n; ++i){
            a[i] = in.nextInt();
        }
        Arrays.sort(a);
 
        int max = a[1];
//        System.out.println("max: " + max);
    
        for (int i = max; i >= 1 ; i--){
//            System.out.println("i: " + i);
            int c = 0;
            for (int j = 0; j < n; ++j){
                if (a[j]%i != 0){
                    c++;
                }
            }
//            System.out.println("count: " + count);
            if (c == 1 || c == 0){
                System.out.println(i);
                break;
            }
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
        Arrays.sort(a);
        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
int a,b,t;
cin>>a>>b>>t;
int c=t/a;  
printf(b*c);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 | printf(b*c);
      |        ~^~
      |         |
      |         int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
         
int main(){
	int N, i;
	cin >> N;
	vector<int> V(N), C(N);
  
  for (i=0; i<N; i++){
    cin >> V[i];
  }
  
  for (i=0; i<N; i++){
  	cin >> C[i];
  }
  
  int ans = 0;
  
  for (i=0; i<N; i++){
  	if(V[i] > C[i]){
      	ans += (V[i]-C[i]);
    }
  }
  
  cout << ans << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<int> V(N), C(N);
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:16: error: expected primary-expression before 'int'
    6 |         vector<int> V(N), C(N);
      |                ^~~
a.cc:9:12: error: 'V' was not declared in this scope
    9 |     cin >> V[i];
      |            ^
a.cc:13:16: error: 'C' was not declared in this scope
   13 |         cin >> C[i];
      |                ^
a.cc:19:12: error: 'V' was not declared in this scope
   19 |         if(V[i] > C[i]){
      |            ^
a.cc:19:19: error: 'C' was not declared in this scope
   19 |         if(V[i] > C[i]){
      |                   ^
a.cc:24:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |   cout << ans << 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:24:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
         
int main(){
	int N, i;
	cin >> N;
	vector<int> V(N), C(N);
	int V[N], C[N];
  
  for (i=0; i<N; i++){
    cin >> V[i];
  }
  
  for (i=0; i<N; i++){
  	cin >> C[i];
  }
  
  int ans = 0;
  
  for (i=0; i<N; i++){
  	if(V[i] > C[i]){
      	ans += (V[i]-C[i]);
    }
  }
  
  cout << ans << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<int> V(N), C(N);
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:16: error: expected primary-expression before 'int'
    6 |         vector<int> V(N), C(N);
      |                ^~~
a.cc:25:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |   cout << ans << 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:25:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){

 int N, i;
 cin >> N;
 int V[N], C[N];
 for(i=0; i<N; i++){
     cin >> V[i];
 }
 for(i=0; i<N; i++){
   cin >> C[i];
 }
 int ans = 0;
 for(i=0; i<N; i++){
   if(V[i]-C[i]>0){
     ans += (V[i]-C[i]);
   }
 }
 cout << ans << endl;
 return 0;
 }

 int N, i;
 cin >> N;
 int V[N], C[N];
 for(i=0; i<N; i++){
     cin >> V[i];
 }
 for(i=0; i<N; i++){
   cin >> C[i];
 }
 int ans = 0;
 for(i=0; i<N; i++){
   if(V[i]-C[i]>0){
     ans += (V[i]-C[i]);
   }
 }
 cout << ans << endl;
 return 0;
}

Compiler output:
a.cc:26:2: error: 'cin' does not name a type
   26 |  cin >> N;
      |  ^~~
a.cc:27:8: error: size of array 'V' is not an integral constant-expression
   27 |  int V[N], C[N];
      |        ^
a.cc:27:14: error: size of array 'C' is not an integral constant-expression
   27 |  int V[N], C[N];
      |              ^
a.cc:28:2: error: expected unqualified-id before 'for'
   28 |  for(i=0; i<N; i++){
      |  ^~~
a.cc:28:11: error: 'i' does not name a type
   28 |  for(i=0; i<N; i++){
      |           ^
a.cc:28:16: error: 'i' does not name a type
   28 |  for(i=0; i<N; i++){
      |                ^
a.cc:31:2: error: expected unqualified-id before 'for'
   31 |  for(i=0; i<N; i++){
      |  ^~~
a.cc:31:11: error: 'i' does not name a type
   31 |  for(i=0; i<N; i++){
      |           ^
a.cc:31:16: error: 'i' does not name a type
   31 |  for(i=0; i<N; i++){
      |                ^
a.cc:35:2: error: expected unqualified-id before 'for'
   35 |  for(i=0; i<N; i++){
      |  ^~~
a.cc:35:11: error: 'i' does not name a type
   35 |  for(i=0; i<N; i++){
      |           ^
a.cc:35:16: error: 'i' does not name a type
   35 |  for(i=0; i<N; i++){
      |                ^
a.cc:40:2: error: 'cout' does not name a type
   40 |  cout << ans << endl;
      |  ^~~~
a.cc:41:2: error: expected unqualified-id before 'return'
   41 |  return 0;
      |  ^~~~~~
a.cc:42:1: error: expected declaration before '}' token
   42 | }
      | ^
Language: C++

#include <bits/stdc++.h>
         
int main(){
	int N, i;
	cin >> N;
	int V[N], C[N];
  
  for (i=0; i<N; i++){
    cin >> V[i];
  }
  
  for (i=0; i<N; i++){
  	cin >> C[i];
  }
  
  int ans = 0;
  
  for (i=0; i<N; i++){
  	if(V[i] > C[i]){
      	ans += (V[i]-C[i]);
    }
  }
  
  cout << ans << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:24:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |   cout << ans << 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:24:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
         
int main(){
	int N, i;
	cin >> N;
	int V[N], C[N];
  
  for (i=0; i<N; i++){
    cin >> V[i];
  }
  
  for (i=0; i<N; i++){
  	cin >> C[i]
  }
  
  int ans = 0;
  
  for (i=0; i<N; i++){
  	if(V[i] > C[i]){
      	ans += (V[i]-C[i]);
    }
  }
  
  cout << ans << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '}' token
   14 |         cin >> C[i]
      |                    ^
      |                    ;
   15 |   }
      |   ~
Language: C

#include <stdio.h>

int main(){
  int a, b;
  double t;
  scanf("%d %d %lf", &a, &b, &t)
  printf("%d", (int)(t + 0.5) / a * b);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:33: error: expected ';' before 'printf'
    6 |   scanf("%d %d %lf", &a, &b, &t)
      |                                 ^
      |                                 ;
    7 |   printf("%d", (int)(t + 0.5) / a * b);
      |   ~~~~~~
Language: C

#include <stdio.h>

int main(){
  int a, b;
  double t;
  scanf("%d %d %f", &a, &b, &t)
  printf("%d", (int)(t + 0.5) / a * b);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected ';' before 'printf'
    6 |   scanf("%d %d %f", &a, &b, &t)
      |                                ^
      |                                ;
    7 |   printf("%d", (int)(t + 0.5) / a * b);
      |   ~~~~~~