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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<int((t+0.5)/a)*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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<int((t+0.5)/a)*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 <vector>
#include <map>
#include <string>
#include <iostream>
#include <climits>
#include <algorithm>
#include <limits>
#include <numeric>
#include <type_traits>
using namespace std;

int main(void){
    int n;
    cin >> n;
    vector<long int> a(n);
    for(int i=0; i<n; i++){
        cin >> a[i];
    }
    
    vector<long int> g(n);
    int ans = a[n-1];
    for(int i=1; i<n; i++){
        ans = __gcd(ans, a[n-i]);
        g[n-i] = ans;
    }
    g[0] = a[0];
    
    for(int i=1; i<n-1; i++){
        long int tmp = __gcd(g[0], g[i+1]);
        if(tmp > ans){
            ans = tmp;
        }
        g[0] = __gcd(g[0], a[i]);
    }
    
    if(n == 2){
        ans = a[0] > a[1] ? a[0] : a[1];
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: no matching function for call to '__gcd(int&, __gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type&)'
   24 |         ans = __gcd(ans, a[n-i]);
      |               ~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:7:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:24:20: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long int')
   24 |         ans = __gcd(ans, a[n-i]);
      |               ~~~~~^~~~~~~~~~~~~
Language: C++

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

int main() {
  int n,ooe,x,cnt;
  cin >> n;
  ooe = 0;
  x = 0;
  cnt = -1;
  vector<int> vec(n);
  for(int i = 0 ; i < n ; i++) {
    cin >> vec.at(i);
  }
  sort(vec.begin(), vec.end());
 
  for(int i = 0 ; i < n ; i++) {
    if(vec.at(i) <= 0){
      ooe++;
      cnt++;
      x += vec.at(i) *(-1);
    }
    else {
      x += vec.at(i);
    }
  }
  
  if(ooe%2 == 0){
    cout << x << endl;
  }
  else {
    cout << x - vec.at(count) *2 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:23: error: no matching function for call to 'std::vector<int>::at(<unresolved overloaded function type>)'
   31 |     cout << x - vec.at(count) *2 << endl;
      |                 ~~~~~~^~~~~~~
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,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]'
 1180 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1180:20: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<int>::size_type' {aka 'long unsigned int'}
 1180 |       at(size_type __n)
      |          ~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1199:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::at(size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned int]'
 1199 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1199:20: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<int>::size_type' {aka 'long unsigned int'}
 1199 |       at(size_type __n) const
      |          ~~~~~~~~~~^~~
Language: C++

#include "pch.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <functional>
#include <string>
#include <cstdlib>
#include <numeric>
#include <cstdbool>
#include <map> 
#include<set>
#include<queue>

typedef long long ll;


#define rep(i,n) for(ll i=0;i<n;i++)
using namespace std;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

const long long INF = 1000000000000000;
typedef pair<int, int> P;
ll ma = 1000000000 + 7;
ll h, w, n, m,k,l; string s;
char maze[60][60];
int dis[101][101];
int dx[4] = { 1, 0, -1, 0 };
int dy[4] = { 0, 1, 0, -1 };

int main() {
	ll a, b, c;
	cin >> a >> b >> c;
	cout << (c / a) * b << endl;
}

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

a,b,t = gets.chomp.split(" ").map{|i|i = i.to_i}

puts ((t+0.5)/a).to_i*b

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,t = gets.chomp.split(" ").map{|i|i = i.to_i}
      | ^
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | puts ((t+0.5)/a).to_i*b
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;++=i){cin>>c[i];}
  for (int i=0;i<n;++i){cin>>v[i];}
  for (int i=0;i<n;++i){
    if (v[i]>c[i]){
      s+=v[i]-c[i];
        }
    }
    cout<<s<<endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected primary-expression before '=' token
   10 |   for (int i=0;i<n;++=i){cin>>c[i];}
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;i++){cin>>c[i];}
  for (int i=0;i<n;i++){cin>>v[i];}
  for (int i=0;i<n;i++){
    if (v[i]>c[i]){
      s+=v[i]-c[i];
      }
    
    }
    cout<<s;

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;i++){cin>>c[i];}
  for (int i=0;i<n;i++){cin>>v[i];}
  for (int i=0;i<n;i++){
    if (v[k]>c[k]){
      s+=v[k]-c[k];
      }
    
    }
    cout<<s;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'k' was not declared in this scope
   13 |     if (v[k]>c[k]){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;i++){cin>>c[i];}
  for (int i=0;i<n;i++){cin>>v[j];}
  for (int i=0;i<n;i++){
    if (v[k]>c[k]){
      s+=v[k]-c[k];
      }
    
    }
    cout<<s;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'j' was not declared in this scope
   11 |   for (int i=0;i<n;i++){cin>>v[j];}
      |                                ^
a.cc:13:11: error: 'k' was not declared in this scope
   13 |     if (v[k]>c[k]){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;i++){cin>>c[i];}
  for (int i=0;i<n;i++){cin>>v[j];}
  for (int i=0;i<n;i++){
    if (v[k]>c[k]){
      s+=v[k]-c[k];}
    cout<<s;
    }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'j' was not declared in this scope
   11 |   for (int i=0;i<n;i++){cin>>v[j];}
      |                                ^
a.cc:13:11: error: 'k' was not declared in this scope
   13 |     if (v[k]>c[k]){
      |           ^
Language: C++

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

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

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

int main(){
	double a,b,c;
  	cin>>a>>b>>c;
  	a=(c+0.5)%a;
  	cout<<(int)a*b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    7 |         a=(c+0.5)%a;
      |           ~~~~~~~^~
      |             |     |
      |             |     double
      |             double
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>c(n);
  vector<int>v(n);
  int s=0;
  for (int i=0;i<n;i++){cin>>c[i];}
  for (int j=0;j<n;j++){cin>>c[j];}
  for (int k=0;k<n;k++){
    if (v[k]>c[k]){
      s+=v[k]-c[k];}
    cout<<s;
    }
}
      
  



Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int>c(n);
      |   ^~~~~~
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:7:10: error: expected primary-expression before 'int'
    7 |   vector<int>c(n);
      |          ^~~
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int>v(n);
      |          ^~~
a.cc:10:30: error: 'c' was not declared in this scope
   10 |   for (int i=0;i<n;i++){cin>>c[i];}
      |                              ^
a.cc:11:30: error: 'c' was not declared in this scope
   11 |   for (int j=0;j<n;j++){cin>>c[j];}
      |                              ^
a.cc:13:9: error: 'v' was not declared in this scope
   13 |     if (v[k]>c[k]){
      |         ^
a.cc:13:14: error: 'c' was not declared in this scope
   13 |     if (v[k]>c[k]){
      |              ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: expected ';' before '}' token
   16 |       ans += V[i]- C[i]
      |                        ^
      |                        ;
   17 |     }
      |     ~
Language: C

#include<stdio.h>
#include<string.h>
int zet(long long int a){
  if(a > 0)return a;
  return -a;
}
int main(void){
  int n;
  scanf("%d",&n);
  long long int a,ans = 0,cnt = 0,min = 10000000000;
  for(int i = 0;i < n;i++){
    scanf("%lld",&a);
    if(a < 0){
      cnt++;
    }
    a = zet(a);
    if(min > a)min = a;
    ans += a;
  }
  if(flag)min = 0;
  if(cnt % 2 > 0)ans -= 2 * min;
  printf("%lld\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:6: error: 'flag' undeclared (first use in this function)
   20 |   if(flag)min = 0;
      |      ^~~~
main.c:20:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if(a < b)swap(a,b);
  long long int r=a%b;
  while(r!=0){
    a=b;
    b=r;
    r=a%b;
  }
  return b;
}
int main(){
  int n;
  cin >>n;
  long long int a[n],x=0;
  for(int i=0;i<n;i++)cin >>a[i];
  if(a[i]<100000){
    bool ok=true;
    long long int an=1;
    while(ok){
      for(long long int i=0;i<n;i++){
        if(a[i]%an!=0)ok=false;
      }
      if(!ok)break;
      an++;
    }
    cout << an <<endl;
  
  }
    else{
  for(int i=0;i<n;i++){
    long long int ans;
    if (i==0)ans=a[1];
    else ans=a[0];
    for(int j=0;j<n;j++){
      if(i!=j)ans=gcd(ans,a[j]);
      if(x>ans)break;
    }
    x=max(x,ans);
  }
  cout << x<<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'i' was not declared in this scope
   18 |   if(a[i]<100000){
      |        ^
Language: C++

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

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

	for(int i=0;i<N;i++){
		for(int j=0;j<N;j++){
			if(j!=i){
				g.at(i)=std::gcd(g.at(i),N(j));
			}
		}
	}

	cout<<*max_element(g.begin(), g.end())<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:59: error: 'N' cannot be used as a function
   19 |                                 g.at(i)=std::gcd(g.at(i),N(j));
      |                                                          ~^~~
Language: C++

#include<iostream>
int main(){
  cout<<1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    3 |   cout<<1<<endl;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:3:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    3 |   cout<<1<<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 <vector>
#include <numeric>
#include <limits>
using namespace std;

int main()
{
	int N = 0;
	std::vector<long> A;

	//数
	cin >> N;
	long min = LONG_MAX;
	int minusNum = 0;
	for (int i = 0; i < N; i++) {
		long tmp;
		cin >> tmp;
		A.push_back(tmp);
		if (min > abs(tmp)) {
			min = abs(tmp);
		}
		if (tmp < 0) {
			minusNum++;
		}
	}

	//変換する
	bool ischanged = false;
	if (minusNum % 2 == 0) {
		for (int i = 0; i < N; i++) {
			A[i] = A[i] < 0 ? A[i] * -1 : A[i];
		}
	} else {
		for (int i = 0; i < N; i++) {
			if (abs(A[i]) == min && !ischanged) {
				ischanged = true;
				A[i] = A[i] < 0 ? A[i] : A[i]*-1;
			} else {
				A[i] = abs(A[i]);
			}
		}
	}

	long sum = accumulate(A.begin(), A.end(), 0L);

	cout << sum << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'LONG_MAX' was not declared in this scope
   14 |         long min = LONG_MAX;
      |                    ^~~~~~~~
a.cc:5:1: note: 'LONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <limits>
  +++ |+#include <climits>
    5 | using namespace std;
Language: C++

#include "pch.h"
#include <iostream>
using namespace std;

int main()
{
	int A, B, T;

	cin >> A >> B >> T;

	cout << T / A * B;


}

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

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

int main(void){
    int i;
    int n
    scanf("%d",&n);
    if(n<1||n>20){
        exit(0);
    }
    printf("\n");

    int v[n];
    for(i=0;i<n;i++){
        scanf("%d",&v[i]);
        if(v[i]<1||v[i]>50){
            exit(0);
        }
    }
    printf("\n");

    int c[n];
    for(i=0;i<n;i++){
        scanf("%d",&c[i]);
        if(c[i]<1||c[i]>50){
            exit(0);
        }
    }
    printf("\n");

    int x=0;
    int y=0;
    x=v[0]+v[n-1];
    y=c[0]+c[n-1];
    int ans=x-y;
    if(ans>=0){
        printf("%d\n",ans);
    }else{
        printf("0\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |     scanf("%d",&n);
      |     ^~~~~
main.c:7:17: error: 'n' undeclared (first use in this function)
    7 |     scanf("%d",&n);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;



int main(){
    int a
    double t;
    int b;
    int count = 0;

    cin >> a >> b >> t;

    if(a > (t + 0.5)){
        cout << 0 << endl;
    } else {
        for(int i = 1.0; i < t + 0.5; i = i * a){
            count = count + b;
        }
        cout << count << endl;
    }



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'double'
    9 |     double t;
      |     ^~~~~~
a.cc:13:12: error: 'a' was not declared in this scope
   13 |     cin >> a >> b >> t;
      |            ^
a.cc:13:22: error: 't' was not declared in this scope
   13 |     cin >> a >> b >> t;
      |                      ^
Language: C++

int main()
{
	int n;
	long long int max = 0;
	cin >> n;
	int* a = new int[n];

	for (int j = 0; j < n; j++)
	{
		cin >> a[j];
	}
	for (int i = 1; i < n - 1; i++)
	{
		if (-a[i - 1] - a[i + 1] > a[i - 1] + a[i + 1])
		{
			a[i - 1] = -a[i - 1];
			a[i + 1] = -a[i + 1];
		}
	}
	for (int k = 0; k < n; k++)
	{
		max += a[k];
	}
	cout << max;
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << max;
      |         ^~~~
Language: C

#include<stdio.h>

int main()
{
	int A, B, T, n;
	scanf_s("%d", &A);
	scanf_s("%d", &B);
	scanf_s("%d", &T);
	n = T / A * B;
	printf("%d\n", n);
	return 0;
}

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

#include "stdafx.h"

int main()
{
	int A, B, T, n;
	scanf_s("%d", &A);
	scanf_s("%d", &B);
	scanf_s("%d", &T);
	n = T / A * B;
	printf("%d\n", n);
	return 0;
}

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

#include<stdio.h>
int main(void){
  double a,b,t;
  scanf("%lf %lf %lf",&a,&b,&t);
  double x = fmod(t+0.5,a);
  double n = ((t+0.5-x)/a)*b;
  int d = n;
  printf("%d",d);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'fmod' was not declared in this scope
    5 |   double x = fmod(t+0.5,a);
      |              ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    5 |   double n = ((t+0.5-(t+0.5)%a)/a)*b;
      |                      ~~~~~~~^~
      |                        |     |
      |                        |     double
      |                        double
Language: C++

#include <iostream>

int main()
{
  int a, b, t, count = 0; cin >> a >> b >> t; 
  
  for (int u = a; u <= t; u += a)
    	count += b;
  
  cout << count;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int a, b, t, count = 0; 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 << count;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

// g++ -std=c++11 a.cpp
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<unordered_map>
#include<utility>
#include<cmath>
#include<random>
#include<cstring>
#include<queue>
#include<stack>
#include<bitset>
#include<cstdio>
#include<sstream>
#include<iomanip>
#include<assert.h>
#include<typeinfo>
#define loop(i,a,b) for(long long i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
#define FOR(i,a) for(auto i:a)
#define pb push_back
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)
#define show1d(v) {rep(_,v.size())cout<<" "<<v[_];cout<<endl;}
#define show2d(v) {rep(__,v.size())show1d(v[__]);}
using namespace std;
//kaewasuretyuui
typedef long long ll;
#define int ll
typedef int Def;
typedef pair<Def,Def> pii;
typedef vector<Def> vi;
typedef vector<vi> vvi;
typedef vector<pii> vp;
typedef vector<vp> vvp;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<Def,pii> pip;
typedef vector<pip>vip;
#define mt make_tuple
typedef tuple<int,int,int> tp;
typedef vector<tp> vt;
template<typename A,typename B>bool cmin(A &a,const B &b){return a>b?(a=b,true):false;}
template<typename A,typename B>bool cmax(A &a,const B &b){return a<b?(a=b,true):false;}
const double PI=acos(-1);
const double EPS=1e-9;
Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9+10;
#define yes cout<<"YES"<<"\n"
#define no cout<<"NO"<<"\n"

signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	ixmel=miku
}











Compiler output:
a.cc: In function 'int main()':
a.cc:59:9: error: 'ixmel' was not declared in this scope
   59 |         ixmel=miku
      |         ^~~~~
a.cc:59:15: error: 'miku' was not declared in this scope
   59 |         ixmel=miku
      |               ^~~~
Language: C++

import queue

(N,M,R) = (int(i) for i in input().split(" "))


print(int(R/N)*M)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import queue
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<stdio.h>
int main(void){
  double a,b,t;
  scanf("%lf %lf %lf",&a,&b,&t);
  double n = ((t+0.5-(t+0.5)%a)/a)*b;
  int d = n;
  print("%d",d);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    5 |   double n = ((t+0.5-(t+0.5)%a)/a)*b;
      |                      ~~~~~~~^~
      |                        |     |
      |                        |     double
      |                        double
a.cc:7:3: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 |   print("%d",d);
      |   ^~~~~
      |   printf
Language: C++

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


int main() {
  int a,b,t,x;
  cin >> a >> b >> t;

  x = t / a;

　cout << x * b << endl;
}


Compiler output:
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　cout << x * b << endl;
      | ^
a.cc: In function 'int main()':
a.cc:12:1: error: '\U00003000cout' was not declared in this scope
   12 | 　cout << x * b << endl;
      | ^~~~~~
Language: C++

#include<stdio.h>
int main(void){
  double a,b,t;
  scanf("%lf %lf %lf",&a,&b,&t);
  int n = ((t+0.5-(t+0.5)%a)/a)*b
  print("%d",n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    5 |   int n = ((t+0.5-(t+0.5)%a)/a)*b
      |                   ~~~~~~~^~
      |                     |     |
      |                     |     double
      |                     double
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define ms(s, n) memset(s, n, sizeof(s))
#define rp(i,l,m) for(int i=l; i<m; ++i)
#define Rp(i,l,m) for(int i=l; i<=m; i++)
#define rpD(i,l,m) for(int i=m; i>l; i--)
#define RpD(i,m,l) for(int i=m; i>=l; i--)
#define all(a) (a).begin(), (a).end()
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define sz(a) int((a).size())
#define is insert
#define mp make_pair
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
const int MOD = (int) 1e9 + 7;
const ld PI = acos((ld) -1);
inline ll gcd(ll a, ll b) {ll r; while (b) {r=a%b;a=b;b=r;} return a;}
inline ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}
inline ll fpow(ll n, ll k, int p=MOD){ll r=1; for(;k;k>>=1){if(k&1)r=r*n%p;n=n*n%p;}return r;}
#define N 200005

int a, b, t;

inline Init(){
    cin >> a >> b >> t;

}
inline void solve(){
    cout << t/a*b;
}

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    Init();
    solve();
  return 0;
}





Compiler output:
a.cc:29:8: error: ISO C++ forbids declaration of 'Init' with no type [-fpermissive]
   29 | inline Init(){
      |        ^~~~
a.cc: In function 'int Init()':
a.cc:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
Language: C++

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

int main(){
  
  int N;
  cin >> N ;
  
  vector<int> A(N)
    for(int i=0;i<N;i++){
      cin >> A.at(i);
    }
  
  int M=A.at(0); //Mを小さくしていっていくつ割り切るか調べる
  
  while(true){
    
    int count=0;//MがAをいくつ割り切るか数える
    
    for(int i=0;i<N;i++){
      
      if(A.at(i) % M == 0){
        count ++;
      }
    }
    
    if(count >= N-1){
      break;
    }
    M -= 1;
  }
  
  cout << M << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for(int i=0;i<N;i++){
      |     ^~~
a.cc:10:17: error: 'i' was not declared in this scope
   10 |     for(int i=0;i<N;i++){
      |                 ^
Language: C

#include <stdio.h>
int main(){
	int a,b,t;
	div_t c;
	scanf("%d %d %d",&a,&b,&t);
	c=div(t,a);
	printf("%d\n",b*c.quot);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name 'div_t'
    4 |         div_t c;
      |         ^~~~~
main.c:6:11: error: implicit declaration of function 'div' [-Wimplicit-function-declaration]
    6 |         c=div(t,a);
      |           ^~~
main.c:7:26: error: request for member 'quot' in something not a structure or union
    7 |         printf("%d\n",b*c.quot);
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,t,c,ans=0;
    scanf("%d %d %d",,&a,&b,&t);
    printf("%d",(t/a)*b);
    return 0;
}


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

#include<stdio.h>
int main ()
{
  int time=0;
  int biscuit=0;
  int t_limit=0;
  int i=0;
  int b_cnt=0;
  scanf("%d%d%d",&time,&biscuit,&t_limit);
  for(i;i*time<timelimit+0.5;i++)
  {
    b_cnt+=biscuit;
  }
  printf("%d",b_cnt);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: 'timelimit' undeclared (first use in this function); did you mean 't_limit'?
   10 |   for(i;i*time<timelimit+0.5;i++)
      |                ^~~~~~~~~
      |                t_limit
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

using System;

namespace ABC125
{
	class ProblemA
	{
		public static void solve()
		{
			// 文字列の区切りの読み込み
			string[] args = Console.ReadLine().Split(' ');
			// 配列外参照の書き方
			if (args.Length < 3)
			{
				Console.WriteLine("wrong input.");
				return;
			}
			// 文字列から数値への変換
			int A = int.Parse(args[0]);
			int B = int.Parse(args[1]);
			int T = int.Parse(args[2]);
			// 計算
			int ans = B * (T / A);// T/Aは切り下げになるので、これでよい
			// 結果出力
			Console.WriteLine(ans);
		}
	}
    static void Main(string[] args)
        {
			ProblemA.solve();
        }
    }

}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:23: error: expected ':' before 'static'
    7 |                 public static void solve()
      |                       ^~~~~~~
      |                       :
a.cc:26:10: error: expected ';' after class definition
   26 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC125::ProblemA::solve()':
a.cc:10:25: error: 'string' was not declared in this scope
   10 |                         string[] args = Console.ReadLine().Split(' ');
      |                         ^~~~~~
a.cc:10:32: error: expected primary-expression before ']' token
   10 |                         string[] args = Console.ReadLine().Split(' ');
      |                                ^
a.cc:12:29: error: 'args' was not declared in this scope
   12 |                         if (args.Length < 3)
      |                             ^~~~
a.cc:14:33: error: 'Console' was not declared in this scope
   14 |                                 Console.WriteLine("wrong input.");
      |                                 ^~~~~~~
a.cc:18:33: error: expected primary-expression before 'int'
   18 |                         int A = int.Parse(args[0]);
      |                                 ^~~
a.cc:19:33: error: expected primary-expression before 'int'
   19 |                         int B = int.Parse(args[1]);
      |                                 ^~~
a.cc:20:33: error: expected primary-expression before 'int'
   20 |                         int T = int.Parse(args[2]);
      |                                 ^~~
a.cc:24:25: error: 'Console' was not declared in this scope
   24 |                         Console.WriteLine(ans);
      |                         ^~~~~~~
a.cc: At global scope:
a.cc:27:17: error: variable or field 'Main' declared void
   27 |     static void Main(string[] args)
      |                 ^~~~
a.cc:27:22: error: 'string' was not declared in this scope
   27 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:27:29: error: expected primary-expression before ']' token
   27 |     static void Main(string[] args)
      |                             ^
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

int main() {
  int A,B,sum=0;
  double T;
  cin>>A>>B>>T;
  if(T<=A){
  	for(;A<(T+0.5);A+=A){
	 sum+=B;
    }
  }else sum=0;
    
  
  }
  cout<<sum<<endl;
  return 0;
}


Compiler output:
a.cc:16:3: error: 'cout' does not name a type
   16 |   cout<<sum<<endl;
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'return'
   17 |   return 0;
      |   ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main() {
  int A,B,sum=0;
  double T;
  cin>>A>>B>>T;
  if(T<=A){
  	for(;A<(T+0.5);A+=A){
	 sum+=B;
    }else sum=0;
    
  
  }
  cout<<sum<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected '}' before 'else'
   11 |     }else sum=0;
      |      ^~~~
a.cc:8:11: note: to match this '{'
    8 |   if(T<=A){
      |           ^
a.cc: At global scope:
a.cc:15:3: error: 'cout' does not name a type
   15 |   cout<<sum<<endl;
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main (){
int a,b,t,i;
cin>>a>>b>>t;
for(i=0;i<10;i++){
if(t<8){
a=a*a;
b=b+b;
t=a+0.5;
}
else
{
break;
}
}
cout<<a<<b<<t<<endl;
}#include<iostream>
using namespace std;
int main (){
int a,b,t,i;
cin>>a>>b>>t;
for(i=0;i<10;i++){
if(t<8){
a=a*a;
b=b+b;
t=a+0.5;
}
else
{
break;
}
}
cout<<a<<b<<t<<endl;
}

Compiler output:
a.cc:18:2: error: stray '#' in program
   18 | }#include<iostream>
      |  ^
a.cc:18:3: error: 'include' does not name a type
   18 | }#include<iostream>
      |   ^~~~~~~
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main (){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main (){
      |     ^~~~
Language: Java

import java.util.*;

public class biscuit{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n1 = Integer.parseInt(sc.next());
        int n2 = Integer.parseInt(sc.next());
        int n3 = Integer.parseInt(sc.next());

	int[] array= new int[n3];
	
	for(int i=0;i<n3;i++){
	    array[i] = 0;
	}

	int m = n3/n1;
	for(int i=1; i<=m; i++){
	    int mm = n1*i;
	    array[mm] = n2;
	}
        
	int count=0;
	for(int j=0; j<n3; j++)
	    count += array[j];

	System.out.println(count);
    }
}


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

a,b , t = map(int, input().split())  #複数数値入力

count = 0

for i in range(2,t-1):
    if a > t+0.5:
        break

    count += b
    a = a * i

print(count)

Compiler output:
a.cc:1:38: error: stray '#' in program
    1 | a,b , t = map(int, input().split())  #複数数値入力
      |                                      ^
a.cc:1:1: error: 'a' does not name a type
    1 | a,b , t = map(int, input().split())  #複数数値入力
      | ^
Language: C++

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

int main() {
  int A, B, T;
  cin >> A >> B >> T;
  
  int bisuits = T / A;
  biscuits *= B;
  
  cout << biscuits << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'biscuits' was not declared in this scope; did you mean 'bisuits'?
    9 |   biscuits *= B;
      |   ^~~~~~~~
      |   bisuits
Language: C++

#include<iostream>
using namespace std;
int main (){
int a,b,t;
cin>>a>>b>>t;
for(i=0;i<10;i++){
if(t<8){
a=a*a;
b=b+b;
t=a+0.5;
}
else{
    break;
}
}
cout<<a<<b<<t<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'i' was not declared in this scope
    6 | for(i=0;i<10;i++){
      |     ^
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		double time = c + 0.5;
		double d = time / a;
		int create = (int)time * b;

		System.out.println(create);
	}

}

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

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

//エラーが発生したときは勝手にpanicしろって関数にはmustって名前を付ける慣例
func mustParseInt(text string) int {
	num, err := strconv.Atoi(text)
	if err != nil {
		panic(err)
	}
	return num
}

func mustParseFloat(text string) float64 {
	num, err := strconv.ParseFloat(text, 64)
	if err != nil {
		panic(err)
	}
	return num
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)

	var line string
	scanner.Scan()
	line = scanner.Text()

	f := strings.Split(line, " ")
	a := mustParseInt(f[0]) * 2
	b := mustParseInt(f[1])
	t := mustParseInt(f[2]) * 2

	biscuit := 0
	for time := 1; time <= t+1; time = time + 1 {
		if time%a == 0 {
			biscuit = biscuit + b
		}

	}
	fmt.Println(biscuit)
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:20:1: error: 'func' does not name a type
   20 | func mustParseFloat(text string) float64 {
      | ^~~~
a.cc:28:1: error: 'func' does not name a type
   28 | func main() {
      | ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  int N,z,a,b,r;
  vector<int> A;
  cin >> N;
  for(int i=0;i<N;i++){
  	cin >> z;
    A.push_back(b);
  }
  sort(A.begin(), A.end(),greater<int>() );
  r = A[0] % A[1];
  while(r!=0){
    int i=1;
    A[i] = A[i+1];
    A[i+1] = r;
    r = A[i] % A[i+1];
  }
  cout << A[i];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'i' was not declared in this scope
   21 |   cout << A[i];
      |             ^
Language: Java

import java.util.*;

public class Main {
  
  private int A, B, T;
  
  public Main(int a, int b, int c) {
    this.A = a;
    this.B = b;
    this.T = c;
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main(scan.nextInt(), scan.nextInt(), scan.nextInt());
    obj.getBuiscit();
    
    return true;
  }
}


Compiler output:
Main.java:24: error: incompatible types: unexpected return value
    return true;
           ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    double sec = sc.nextInt();
    int num = sc.nextInt();
    double maxSec = sc.nextInt();
    sc.close();
    maxSec += 0.5;
    double mult = maxSec / sec;
    System.out.println((int)mult * num);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		double time = c + 0.5;
		int create = (int)time * b;

		System.out.println(create);
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main {
  
  private int A, B, T;
  
  public Main(int a, int b, int c) {
    this.A = a;
    this.B = b;
    this.T = c;
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main(scan.nextInt(), scan.nextInt(), scan.nextInt());
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:15: error: missing return statement
  }
  ^
1 error
Language: C++

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

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

import java.util.*;

public class Main {
  
  private int A, B, T;
  
  public Main(int a, int b, int c) {
    this.A = a
    this.B = b
    this.T = c
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main(scan.nextInt(), scan.nextInt(), scan.nextInt());
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:8: error: ';' expected
    this.A = a
              ^
Main.java:9: error: ';' expected
    this.B = b
              ^
Main.java:10: error: ';' expected
    this.T = c
              ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B,T,i;
  cin>>A>>B>>T;
  
  if(2*A>T){
    cout<<B<<endl;
  }
  else if(2*A<=T){
    for(i=0;i<=T;i=i+A){
      cout<<B=B+0<<endl;
    }
    else(A>20){
      cout<<0<<endl;
    }
    return 0;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |       cout<<B=B+0<<endl;
      |               ~~~^~~~~~
a.cc:14:5: error: expected '}' before 'else'
   14 |     else(A>20){
      |     ^~~~
a.cc:10:18: note: to match this '{'
   10 |   else if(2*A<=T){
      |                  ^
a.cc:14:15: error: expected ';' before '{' token
   14 |     else(A>20){
      |               ^
      |               ;
Language: C++

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

int main() {
  int N; 
  vector<int>V(N);
  for(int i=0; i<N; i++){
    cin >> V.at(i);
  }
  vector<int>C(N);
  for(int i=0; i<N; i++){
    cin >> C.at(i);
  }
  int an = 0;
  for(int i=0; i<N; i++){
  if(V.at(i) > C.at(i)){
    an += (V.at(i) - C.at(i));
    else{ an += 0
        }
  }
  }
  
  cout << an <<endl;
}
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected '}' before 'else'
   18 |     else{ an += 0
      |     ^~~~
a.cc:16:24: note: to match this '{'
   16 |   if(V.at(i) > C.at(i)){
      |                        ^
a.cc:18:18: error: expected ';' before '}' token
   18 |     else{ an += 0
      |                  ^
      |                  ;
   19 |         }
      |         ~         
a.cc: At global scope:
a.cc:23:3: error: 'cout' does not name a type
   23 |   cout << an <<endl;
      |   ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B,T,i;
  cin>>A>>B>>T;
  
  if(2*A>T){
    cout<<B<<enddl;
  }
  else if(2*A<=T){
    for(i=0;i<=T;i=i+A){
      cout<<B=B+0<<endl;
    }
    else(A>20){
      cout<<0<<endl;
    }
    return 0;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'enddl' was not declared in this scope
    8 |     cout<<B<<enddl;
      |              ^~~~~
a.cc:12:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |       cout<<B=B+0<<endl;
      |               ~~~^~~~~~
a.cc:14:5: error: expected '}' before 'else'
   14 |     else(A>20){
      |     ^~~~
a.cc:10:18: note: to match this '{'
   10 |   else if(2*A<=T){
      |                  ^
a.cc:14:15: error: expected ';' before '{' token
   14 |     else(A>20){
      |               ^
      |               ;
Language: Java

import java.util.*;

public class Main {
  
  private int A, B, T;
  
  public Main(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    
    Main obj = new Main(scan.nextInt(), scan.nextInt(), scan.nextInt());
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:21: error: incompatible types: int cannot be converted to String
    Main obj = new Main(scan.nextInt(), scan.nextInt(), scan.nextInt());
                                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.*;

public class Main {
  
  private int A, B, T;
  
  public TaskA(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    TaskA obj = new TaskA(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


Compiler output:
Main.java:7: error: invalid method declaration; return type required
  public TaskA(String a, String b, String c) {
         ^
1 error
Language: C++

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

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


}

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

import java.util.*;

public class ABC125_C{

    public static void main(String args[]){

        // スキャナーの宣言
        Scanner sc = new Scanner(System.in);
        // 整数の入力
		int n = sc.nextInt();
        int[] a = new int[n];
        int min = Integer.MAX_VALUE;
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            min = Math.min(a[i], min);
        }
        int ans = 0;
        /*for(int i = 1; i < min + 1; i++){
            for(int j = 0;j < n; j++){
                if(a[j] % i != 0) b = false;
            }
            if(b) ans = Math.max(i, ans);
            b = true;
        }*/
        for(int i = 0; i < n; i++){
            for(int j = 1; j < min + 1; j++){
                for(int k = 0; k < n; k++){
                    if(k != i && a[k] % j != 0){
                        ans = Math.max(j, ans);
                        break;
                    }
                }
            }
        }

        // 出力
        System.out.println(ans);

    }

}

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

package main;

import java.util.*;

public class TaskA {
  
  private int A, B, T;
  
  public TaskA(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    TaskA obj = new TaskA(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


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

import java.util.*;

public class TaskA {
  
  private int A, B, T;
  
  public TaskA(String a, String b, String c) {
    this.A = Integer.parseInt(a);
    this.B = Integer.parseInt(b);
    this.T = Integer.parseInt(c);
  }
  
  private int getBuiscit () {
    System.out.println(T/A*B);
  }
    
  public static void main(String[] args) {
    
    TaskA obj = new TaskA(args[0], args[1], args[2]);
    obj.getBuiscit();
    
  }
}


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

import java.util.Scanner;

public class Biscuit {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int numberA=sc.nextInt();
		int numberB=sc.nextInt();
		int T=sc.nextInt();

		int sum=(T/numberA)*numberB;
		System.out.println(sum);
		sc.close();
	}

}

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