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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
    long long c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
using namespace std;
bool prime(int n){
  if(n==1){
    return false;
  }else if(n==2){
    return true;
  }else{
    for(int i=2;i<=sqrt(n);i++){
      if(n%i==0){
        return false;
      }
    }
    return true;
  }
}

long long gcd(long long a, long long b){
  if(a<b){
    swap(a,b);
  }
  if(a%b==0){
    return b;
  }else{
    return gcd(b,a%b);
  }
}
 
long long lcm(long long x, long long y){
  return (x/gcd(x,y))*y;
}
 
class UnionFind {
    public:
    //各頂点の親の番号を格納する。その頂点自身が親だった場合は-(その集合のサイズ)を入れる。
    vector<int> Parent;
    
    //クラスを作るときは、Parentの値を全て-1にする。
    //以下のようにすると全てバラバラの頂点として解釈できる。
    UnionFind(int N) {
        Parent = vector<int>(N, -1);
    }
    
    //Aがどのグループに属しているか調べる
    int root(int A) {
        if (Parent[A] < 0) return A;
        return Parent[A] = root(Parent[A]);
    }
    
    //自分のいるグループの頂点数を調べる
    int size(int A) {
        return -Parent[root(A)];//先祖をrootで取っておきたい。
    }
    
    //AとBをくっ付ける
    bool connect(int A, int B) {
        //AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
        A = root(A);
        B = root(B);
        if (A == B) {
            //すでにくっついてるからくっ付けない
            return false;
        }
        
        //大きい方(A)に小さいほう(B)をくっ付けたい
        //大小が逆だったらAとBをひっくり返す。
        if (size(A) < size(B)) swap(A, B);
        
        //Aのサイズを更新する
        Parent[A] += Parent[B];
        //Bの親をAに変更する
        Parent[B] = A;
        
        return true;
    }
};

vector<int> G[100000];

long long dfs(int prev,int now,long long k,vector<int> &used){
  int temp = G[now].size();
  long long res;
  if(prev==-1){
    res = mod(k);
    used[now]=true;
    REP(i,temp){
      res = mod(res*dfs(now,G[now][i],k,used));
    }
  }else{
    int adj = G[prev].size();
    long long no_use=0;
    REP(i,adj){
      if(G[prev][i]!=now && used[G[prev][i]]){
        no_use++;
      }
    }
    if(k-no_use-1>0){
      res = mod(k-no_use-1);
    }else{
      res = 0;
    }
    used[now] = true;
    
    REP(i,temp){
      if(G[now][i]==prev)continue;
      res = mod(res*dfs(now,G[now][i],k,used));
    }
  }
  return res;
}
    
  
int main(){
  int n;
  long long k;
  cin>>n>>k;
  
  //vector<int> G[n];
  int a,b;
  REP(i,n-1){
    cin>>a>>b;
    a--;b--;
    G[a].push_back(b);
    G[b].push_back(a);
  }
  
  bool used[n]={};
  
  long long ans;
  ans = dfs(-1,0,k,used);
  cout<<ans<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:141:20: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'bool [n]'
  141 |   ans = dfs(-1,0,k,used);
      |                    ^~~~
a.cc:91:57: note: in passing argument 4 of 'long long int dfs(int, int, long long int, std::vector<int>&)'
   91 | long long dfs(int prev,int now,long long k,vector<int> &used){
      |                                            ~~~~~~~~~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
	int main() {
		int i, j, Row, Colum;
		int **a;
		int tmp1,tmp2, result;
		tmp1 =1;
		a = new int*[10];
		cin >> Row;
		cin >> Colum;
		for (i = 0; i < Row; i++)
		{
			for (j = 0; j < Colum; j++)
			{
				cin >> a[i][j];
			}
		}
		switch (Colum)
		{
		case 1:
			for (i = Row; i > (Row-2); i--)
			{
				tmp1 = tmp1*i;
			}	
			result = tmp1 /2;
			break;
		case 2:
result = 0;
			for (i = 0; i < Row; i++)
			{
				tmp = sqrt(pow(a[i][0] - a[i + 1][0], 2) + pow(a[i][1] - a[i + 1][1], 2));
				if (tmp == int(tmp)) {
					result += 1;
				}
			}
			for (i = Row; i >= 2; i--)
			{
				tmp = sqrt(pow(a[i][0] - a[i - 2][0], 2) + pow(a[i][1] - a[i - 2][1], 2));
				if (tmp == int(tmp)) {
					result += 1;
				}
			}
			break;
		default:
			break;
		}
		cout << result << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:33: error: 'tmp' was not declared in this scope; did you mean 'tmp2'?
   32 |                                 tmp = sqrt(pow(a[i][0] - a[i + 1][0], 2) + pow(a[i][1] - a[i + 1][1], 2));
      |                                 ^~~
      |                                 tmp2
a.cc:39:33: error: 'tmp' was not declared in this scope; did you mean 'tmp2'?
   39 |                                 tmp = sqrt(pow(a[i][0] - a[i - 2][0], 2) + pow(a[i][1] - a[i - 2][1], 2));
      |                                 ^~~
      |                                 tmp2
Language: C

#include<stdio.h>
int main() {
	int N, A, B;
	scanf_s("%d %d %d", &N, &A, &B);
	if (1 > N || N > 20 || A < 1 || A > 50 || B < 1 || B > 50) {
		return 0;
	}
	if (N*A < B) {
		printf("%d", A*N);
	}

	printf("%d", B);
}

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

#include <bits/stdc++.h>
using namespace std;
const int MOD=1000*1000*1000+7;
int main()
{
	long long l, r;
	cin>>l>>r;
	if(l%2019<)
	for(long long i=l; i<=l+2023; i++){
		if(i>r)break;
		long long x=i%2019;
		if(x==0&&i+1<=r){cout<<0<<endl;return 0;}
	}
	long long  b=((l%2019)*((l+1)%2019))%2019;
	cout<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ')' token
    8 |         if(l%2019<)
      |                   ^
Language: Java

import java.util.Scanner;

public class Atcoder {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        int n = teclado.nextInt();
        int a = teclado.nextInt();
        int b = teclado.nextInt();
        int nb = (b*1);
        int na = (n*a);
        if(na <= nb){
            System.out.println(na);
        }else{
            System.out.println(nb);
        }
            
            
    }
    
}

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

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

int main()
{
    int n,d=0,i,k,sum=0,m;
    scanf("%d %d",&n,&d);
    if(n<2 || d<1 ||n>10 ||d>10)
        return;
    int x[n][d];
    for(i=0;i<n;i++)
    {
        for(j=0;j<d;j++)
            scanf("%d",&x[i][j]);
    }

    for(i=0;i<n;i++)
    {
        for(k=0;k<n;k++)
            {
                for(m=0;m<d;m++)
                {
                    if(i!=k)
                        d+=(x[i][m]-x[k][m])*(x[i][m]-x[k][m]);
                }
                if(i!=k)
                {
                    d=sqrt(d);
                    if(d%d==0)
                    sum++;
                    d=0;
                }
            }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   10 |         return;
      |         ^~~~~~
main.c:5:5: note: declared here
    5 | int main()
      |     ^~~~
main.c:14:13: error: 'j' undeclared (first use in this function)
   14 |         for(j=0;j<d;j++)
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

class Main {
  public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int a = in.nextInt();
    int b = in.nextInt();
    int m = n*a;

    if (m > n) {
      System.out(m);
    } else {
      System.out(n);
    }
  }
}

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:10: error: cannot find symbol
      System.out(m);
            ^
  symbol:   method out(int)
  location: class System
Main.java:12: error: cannot find symbol
      System.out(n);
            ^
  symbol:   method out(int)
  location: class System
4 errors
Language: C

#include<stdio.h>
void main(){
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  
  if(a*b < c){
    printf("%d¥n",a*b);
  }else{
    printf("%d¥n",c);
  }

Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected declaration or statement at end of input
   11 |   }
      |   ^
Language: C

#include<stdio.h>
void main{
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  
  if(a*b < c){
    printf("%d¥n",a*b);
  }else{
    printf("%d¥n",c);
  }

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | void main{
      |          ^
Language: C

#include<stdio.h>
void main*{
  int a,b,c;
  
  scanf("%d %d %d",&a,&b,&c);
  
  if(a*b < c){
    printf("%d¥n",a*b);
  }else{
    printf("%d¥n",c);
  }
}

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    2 | void main*{
      |          ^
Language: C++

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

int main() {
  
  int N, A, B;
  cin >> N >> A >> B;
  
  N = N * A;
  
  if ( N < B ) {
    cout << " N " << endl;
  }
  else {
    cout " B " << endl;
  }
  
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ';' before string constant
   15 |     cout " B " << endl;
      |         ^~~~~~
      |         ;
Language: C++

#include<stdio.h>

int main{
	int N, A, B;

printf("N,A,B ");
scanf("%d %d %d", &N,&A,&B);

if (N*A <= B) {
	printf("%d", N*A);
		return 0;
}
else {
	printf("%d", B);
}

}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int N, A, B;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:6:7: error: expected constructor, destructor, or type conversion before '(' token
    6 | printf("N,A,B ");
      |       ^
a.cc:7:6: error: expected constructor, destructor, or type conversion before '(' token
    7 | scanf("%d %d %d", &N,&A,&B);
      |      ^
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (N*A <= B) {
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    7 |     cout<<min({N*A,B})<<endl;
      |           ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<stdio.h>
int main() {
 int N, A, B;
scanf_s ("%d %d %d",&N,&A,&B);
if (1 > N || N > 20 || A < 1 || A > 50 || B < 1 || B > 50) {
		return 0;
	}
  if (N*A < B) {
		printf ("%d",(A*N));
	}
	
	printf ("%d",B);
}

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

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

int main() {
  
  int N;
  cin >> N;
  
  vector<int> people(N);
  vector<int> train(N);
  vector<int> taxi(N);
  
  for ( int i = 0; i < N; i++ ) {
    cin >> people.at(i);
  }
  
  for ( int i = 0; i < N; i++ ) {
    cin >> train.at(i);
  }
  
  for ( int i = 0; i < N; i++ ) {
    cin >> taxi.at(i);
  }
  
  if ( people.at(i) * train.at(i) < taxi.at(i) ) {
    cout << people.at(i) * tarin.at(i) << endl;
  }
  else if {
    cout << taxi.at(i) << endl;
  }
  else {
    cout << taxi.at(i) << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: 'i' was not declared in this scope
   25 |   if ( people.at(i) * train.at(i) < taxi.at(i) ) {
      |                  ^
a.cc:26:28: error: 'tarin' was not declared in this scope; did you mean 'train'?
   26 |     cout << people.at(i) * tarin.at(i) << endl;
      |                            ^~~~~
      |                            train
a.cc:28:11: error: expected '(' before '{' token
   28 |   else if {
      |           ^
      |           (
a.cc:31:3: error: 'else' without a previous 'if'
   31 |   else {
      |   ^~~~
a.cc:32:21: error: 'i' was not declared in this scope
   32 |     cout << taxi.at(i) << endl;
      |                     ^
Language: C

#include <stdio.h>
int main(void)
{
int N,A,B;
printf("N="); scanf_s("%d" , &N);
printf("A="); scanf_s("%d" , &A);
printf("B="); scanf_s("%d" , &B);
if(1<=N && N<=20 && 1<=A && A<=50 && 1<=B && B<=50)
{
	if((A*N)>B)
	{
	 printf("%d\n",B);
	}
	else if((A*N)<B)
	{
	 printf("%d\n",A*N);
	}
	else
	{
	 printf("%d\n",B);
	}
}
else
{
	printf("制約を守っていません。\n");
}
return 0;
}

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

#include<stdio.h>
int main(void)
{
  int N,A,B,C;
  scanf("%d",&N);
  scanf("%d",&A);
  scanf("%d",&B);
  C=N*A;
  if(C>B){
  printf("%d",C);
  return 0;
  else{
  printf("%d",B);
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else{
      |   ^~~~
a.cc:9:10: note: to match this '{'
    9 |   if(C>B){
      |          ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

int main() {
  
  int N;
  cin >> N;
  
  vector<int> people(N);
  vector<int> train(N);
  vector<int> taxi(N);
  
  for ( int i = 0; i < N; i++ ) {
    cin >> people.at(i);
  }
  
  for ( int i = 0; i < N; i++ ) {
    cin >> train.at(i);
  }
  
  for ( int i = 0; i < N; i++ ) {
    cin >> taxi.at(i);
  }
  
  if ( people.at(i) * train.at(i) < taxi.at(i) ) {
    cout << "people.at(i) * tarin.at(i)" << endl;
  }
  else {
    cout << "taxi.at(i)" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: 'i' was not declared in this scope
   25 |   if ( people.at(i) * train.at(i) < taxi.at(i) ) {
      |                  ^
Language: C

#include<stdio.h>
int main() {
 int N, A, B;
scanf("%d %d %d",&N,&A,&B);
if (1 > N && N > 20 && a < 1 && a > 50 && b < 1 && b > 50) {
		return 0;
	}
  if (N*A < B) {
		printf("%d",A*N);
	}
	
	printf("%d",B);
}

Compiler output:
main.c: In function 'main':
main.c:5:24: error: 'a' undeclared (first use in this function)
    5 | if (1 > N && N > 20 && a < 1 && a > 50 && b < 1 && b > 50) {
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:43: error: 'b' undeclared (first use in this function)
    5 | if (1 > N && N > 20 && a < 1 && a > 50 && b < 1 && b > 50) {
      |                                           ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    int train = N*A;
    int taxi = B; 

    if(train - taxi >0){
      Sytem.out.println(taxi);
    } else {
      System.out.println(train);
    }
    
  }
}

Compiler output:
Main.java:14: error: package Sytem does not exist
      Sytem.out.println(taxi);
           ^
1 error
Language: Java

public class Main{
  public static void main(String[] args){
    
    int N = new java.util.Scanner(System.in).nextInt();
    int A = new java.util.Scanner(System.in).nextInt();
    int B = new java.util.Scanner(System.in).nextInt();
   
    int x = N * A;
    int y = B;
    
    if (x < y){                       
    	System.out.println(x);
    }else if (x > y){
    	System.out.println(y); 
    }else if (x = y){
    	System.out.println(y); 
    }
  }
}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to boolean
    }else if (x = y){
                ^
1 error
Language: Java

public class Main{
  public static void main(String[] args){
    
    int N = new java.util.Scanner(System.in).nextInt();
    int A = new java.util.Scanner(System.in).nextInt();
    int B = new java.util.Scanner(System.in).nextInt();
   
    int x = N * A;
    int y = B;
    
    if (x < y){                       
    	System.out.println(x);
    }else if (x > y){
    	System.out.println(y); 
    }else if (x = y){
    	System.out.println(y); 
  }
}

Compiler output:
Main.java:18: error: reached end of file while parsing
}
 ^
1 error
Language: C

#include<stdio.h>
int main(void){
int k,A[10];
for(k=0;k<2;k++);
scanf("%d",&A[k]);
int i,j,min;

for(i=A[0];i<A[1];i++){
for(j=A[0]+1;j<A[1]+1;j++)
min=(i-1*j-1)%2019<(i*j)%2019?(i-1*j-1)%2019:(i*j)%2019
}
printf("%d",min);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:56: error: expected ';' before '}' token
   10 | min=(i-1*j-1)%2019<(i*j)%2019?(i-1*j-1)%2019:(i*j)%2019
      |                                                        ^
      |                                                        ;
   11 | }
      | ~
Language: Java

public int Main(int N, int A, int B){
  int train = N*A;
  int taxi = B; 
  
  if(train - taxi >0){
    return taxi;
  } else {
    return train;
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public int Main(int N, int A, int B){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<stdio.h>
int main(void){
int k,A[2];
for(k=0;k<2;k++);
scanf("%d",&A[k]);
int i,j,min;

for(i=A[0];i<A[1];i++){
for(j=A[0]+1;j<A[1]+1;j++)
min=(i-1*j-1)%2019<(i*j)%2019?(i-1*j-1)%2019:(i*j)%2019
}
printf("%d",min);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:56: error: expected ';' before '}' token
   10 | min=(i-1*j-1)%2019<(i*j)%2019?(i-1*j-1)%2019:(i*j)%2019
      |                                                        ^
      |                                                        ;
   11 | }
      | ~
Language: Java

public int (int N, int A, int B){
  int train = N*A;
  int taxi = B; 
  
  if(train - taxi >0){
    return taxi;
  } else {
    return train;
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
public int (int N, int A, int B){
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  int taxi = B; 
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
  if(train - taxi >0){
  ^
Main.java:7: error: class, interface, enum, or record expected
  } else {
  ^
Main.java:9: error: class, interface, enum, or record expected
  }
  ^
5 errors
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int N;
int A;
int B;
int x;

void main(){
	cin >> N >> A >> B;
	if (A * N > B) {
		x = B;
	}
	else {
		x = N * A;
	}
	cout << x;
}

Compiler output:
a.cc:11:1: error: '::main' must return 'int'
   11 | void main(){
      | ^~~~
Language: C++

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

int main() {
    int n,a,b;
    cin >> n >> a >> b;
    int mixA = a * n;
    if (mixA<=b){
      cout << mixA <<endl;
    else {
      cout << b << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else {
      |     ^~~~
a.cc:9:17: note: to match this '{'
    9 |     if (mixA<=b){
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n, a, b;

    cin >> n >> a >> b;

    int t = n*a;
    int bb = n*b;

    if (t > bb)
    {
        cout << bb;
    }
    else if (t < bb)
    {
        cout << t;
    }
    else (t==bb)
    {
        cout << t;
    }






    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: expected ';' before '{' token
   22 |     else (t==bb)
      |                 ^
      |                 ;
   23 |     {
      |     ~
Language: C++

#include <iostream>

using namespace std;

int main(){

int a, b, n;

  cin>>n>>a>>b;

  cout<<((n*a)<b)?(n*a):b<<endl;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout<<((n*a)<b)?(n*a):b<<endl;
      |                         ~^~~~~~
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		int N=teclado.nextInt();
		int A=teclado.nextDouble();
		int B=teclado.nextDouble();
		if(A*N>B) {
			System.out.println(B);
		}else {
			System.out.println(A*N);
		}
        teclado.close();
	}

}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int A=teclado.nextDouble();
		                        ^
Main.java:8: error: incompatible types: possible lossy conversion from double to int
		int B=teclado.nextDouble();
		                        ^
2 errors
Language: C++

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


int main() {
	int N, A, B,ans;
	cin >> N >> A >> B;
	ans=min(N * A, B);

	cout << ans << endl;
｝

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: '\U0000ff5d' was not declared in this scope
   11 | ｝
      | ^~
a.cc:11:3: error: expected '}' at end of input
   11 | ｝
      |   ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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


int main() {
	int N, A, B,ans;
	cin >> N >> A >> B;
	ans=min(N * A, B);

	cout << ans << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected '}' at end of input
   10 |         cout << ans << endl;
      |                             ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long int ll;

int main()
{

	ios_base:: sync_with_stdio(false); cin.tie(0);
	int n; cin>>n>>a>>b;
	cout<<min(b,n*a)<<endl;



	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'a' was not declared in this scope
   10 |         int n; cin>>n>>a>>b;
      |                        ^
a.cc:10:27: error: 'b' was not declared in this scope
   10 |         int n; cin>>n>>a>>b;
      |                           ^
Language: Java

import java.util.Scanner;
class  Main {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train < B) {
        	System.out.println (train);  
        }if else () {
         	System.out.println (B);
        } else {
         	System.out.println"なし";
        }
 	}
}


Compiler output:
Main.java:11: error: '(' expected
        }if else () {
           ^
Main.java:11: error: illegal start of expression
        }if else () {
            ^
Main.java:11: error: -> expected
        }if else () {
                   ^
Main.java:11: error: not a statement
        }if else () {
                 ^
Main.java:13: error: ';' expected
        } else {
         ^
Main.java:14: error: not a statement
         	System.out.println"??";
         	          ^
Main.java:14: error: ';' expected
         	System.out.println"??";
         	                  ^
7 errors
Language: C++

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

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

#include <stdio.h>
int main(){
  int a;
  int b;
  int n;
  scanf("%d %d %d",&n,&a,&b);
  if(a*n>=b){
    printf("%d",a*n)
  }else{
    printf("%d",b)
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before '}' token
    8 |     printf("%d",a*n)
      |                     ^
      |                     ;
    9 |   }else{
      |   ~                  
main.c:10:19: error: expected ';' before '}' token
   10 |     printf("%d",b)
      |                   ^
      |                   ;
   11 |   }
      |   ~
Language: C++

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

int main() {
    cin,tie(0);
    ios::sync_with_stdio(false);
    int n, a, b;
    cin >> n >> a >> b;
    if (n*a < b) cout << n*a << endl;
    else cout << b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    7 |     cin,tie(0);
      |             ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 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/c++/14/tuple:2791:19: note:   initializing argument 1 of 'constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {int}]'
 2791 |     tie(_Elements&... __args) noexcept
      |         ~~~~~~~~~~^~~~~~~~~~
Language: Java


import java.util.Scanner;

public class Main {

	Scanner s = new Scanner(System.in);
	int n = s.nextInt();
	int a = s.nextInt();
	int b = s.nextInt();

	int costTrain = n * a;
	int costTaxi = n * b;

	if(costTrain<=costTaxi){
		System.out.println(costTrain);
	}else
	{
		System.out.println(costTaxi);
	}
}
}


Compiler output:
Main.java:14: error: illegal start of type
	if(costTrain<=costTaxi){
	^
Main.java:14: error: <identifier> expected
	if(costTrain<=costTaxi){
	            ^
Main.java:14: error: <identifier> expected
	if(costTrain<=costTaxi){
	                      ^
Main.java:16: error: illegal start of type
	}else
	 ^
Main.java:21: error: class, interface, enum, or record expected
}
^
5 errors
Language: C

#include<studio.h>
int main(){
  int a;
  int b;
  int n;
  scanf("%d %d %d",&n,&a,&b);
  if(a*n>=b){
    printf("%d",a*n)
  }else{
    printf("%d",b)
  }
  return 0;
}

Compiler output:
main.c:1:9: fatal error: studio.h: No such file or directory
    1 | #include<studio.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Scratch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int a = scan.nextInt();
        int b = scan.nextInt();

        System.out.println(n * Math.min(a,b));
    }
}

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

import jp.tdu.util.*;
class  TorT {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train <= B) {
        	System.out.println (train);  
        } else 
         	System.out.println (B);
 	}
}

Compiler output:
Main.java:1: error: package jp.tdu.util does not exist
import jp.tdu.util.*;
^
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class TorT
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class TorT
3 errors
Language: Java

import java.util.Scanner;

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

        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();

        if(A*B>C){          
            System.out.println(C);  
        }else{
            System.out.println(A*B);
        }        
    }
}

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

import jp.tdu.util.RandomNumber;
class  TorT {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train <= B) {
        	System.out.println (train);  
        } else 
         	System.out.println (B);
 	}
}

Compiler output:
Main.java:1: error: package jp.tdu.util does not exist
import jp.tdu.util.RandomNumber;
                  ^
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class TorT
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class TorT
3 errors
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int N, A, B;
	cin >> N >> A >> B ;
	if (N*B < A) {
		cout << b * N << endl;
	}
		cout << a << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'b' was not declared in this scope
    8 |                 cout << b * N << endl;
      |                         ^
a.cc:10:25: error: 'a' was not declared in this scope
   10 |                 cout << a << endl;
      |                         ^
Language: Java

class  TorT {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train <= B) {
        	System.out.println (train);  
        } else 
         	System.out.println (B);
 	}
}

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

#include"stdafx.h"
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int n, a, b;
	cin >> n >> a >> b;
	cout << min(n*a, b);
    return 0;
}

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

import java.util.*;
 
public class  TorT {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train <= B) {
        	System.out.println (train);  
        } else 
         	System.out.println (B);
 	}
}

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

int main()
{
int n,tr,ta,t;
  cin>>n>>tr>>ta
while(t--)
{
if((n*tr)>ta)
	{
	  cout<<ta;
}
  cout<<(n*tr)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>n>>tr>>ta
      |   ^~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

#include <stdio.h>

int main()
{
	int = 0;
	int a = 0;
	int b = 0;
	scanf("%d", &n);
	scanf("%d", &a);
	scanf("%d", &b);
	if((a*c)>b){
    	printf("%d",(a*c));
    }else{
    	printf("%d",b);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '=' token
    5 |         int = 0;
      |             ^
a.cc:8:22: error: 'n' was not declared in this scope
    8 |         scanf("%d", &n);
      |                      ^
a.cc:11:15: error: 'c' was not declared in this scope
   11 |         if((a*c)>b){
      |               ^
Language: Java

import java.util.*;

public class main{
	public static void main(String[] args){
    	Scanner s=new Scanner(System.in);
      	int n=s.nextInt();
      	int a=s.nextInt();
      	 int b=s.nextInt();
      int min=Integer.min(a,b);
      System.out.println(min*n);
    }
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
  int N,A,B;
  cin>>N>>A>>B;
   if(N*A>=B)
     cout<<N*A;
	if(N*A<B)
      cout<<B;
return 0;
}

Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int N,A,B;
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>N>>A>>B;
      |   ^~~
a.cc:6:4: error: expected unqualified-id before 'if'
    6 |    if(N*A>=B)
      |    ^~
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if(N*A<B)
      |         ^~
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
  int n,a,b;
  scanf("%d %d %d",&n,&a,&b);
  if(a<=b)
    printf("%d",&n*a);
  else
    printf("%d",&n*b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: invalid operands to binary * (have 'int *' and 'int')
    7 |     printf("%d",&n*a);
      |                 ~~^
      |                 |
      |                 int *
main.c:9:19: error: invalid operands to binary * (have 'int *' and 'int')
    9 |     printf("%d",&n*b);
      |                 ~~^
      |                 |
      |                 int *
Language: C++

#include <bits/stdc++.h>

#define rep(i,a,b) for(ll i=(a);i<=(b);i++)
#define END(x) do{cout<<(x)<<endl;exit(0);}while(0)
#define debug(x)  do{cerr<<#x<<": "<<x<<"\n";}while(0)
#define debugv(x) do{cerr<<#x<<": ";for(auto&e: (x))cerr<<e<<" ";cerr<<"\n";}while(0)
#define exp2(x)  (1LL<<(x))

using namespace std;
using ll=long long;


int main() {
  ios_base::sync_with_stdio(false); cin.tie(nullptr);

int n, a,b;  
  cin >> n >> a >> b;
  END(max(n*a, b));
  //sort(s.begin(), s.end());
  //if (s[0]==s[1] and s[2]==s[3] a}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected '}' at end of input
   18 |   END(max(n*a, b));
      |                    ^
a.cc:13:12: note: to match this '{'
   13 | int main() {
      |            ^
Language: C

#include <iostream>
using namespace std;
int main()
{
	int N, A, B;
	cin >> N >>A >>B ;
	if (N*B < A) {
		cout << B * N << endl;
	}
	
		cout << A << endl;

	
	}


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

import java.util.*;

public class A{
	public static void main(String[] args){
    	Scanner s=new Scanner(System.in);
      	int n=s.nextInt();
      	int a=s.nextInt();
      	 int b=s.nextInt();
      int min=Integer.min(a,b);
      System.out.println(min*n);
    }
}

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

#include<cstdio>
#include<iostream>

using namespace std;

int main() {
	int N, A, B;
	scanf_s("%d",&N);//N
	scanf_s("%d",&A);//A
	scanf_s("%d",&B);//B
	if (N * A < B) {
		printf("%d\n", N * A);
	}
	else {
		printf("%d\n", B);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%d",&N);//N
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.*;

public class  TorT {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
      	int N = sc.nextInt();
     	int train = A*N ;
      	if (train <= B) {
        	System.out.println (train);  
        } else {
         	System.out.println (B);
        }
 	}
}

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

#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
	int N, A, B;
	cin >> N >>A >>B ;
	if (N*B < A) {
		cout << B * N << endl;
	}
	
		cout << A << endl;

	
	}


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

#include<iostream.h>
int main()
{
int n,tr,ta,t;
  cin>>n>>tr>>ta
while(t--)
{
if((n*tr)>ta)
	{
	  cout<<ta;
}
  cout<<(n*tr)
}

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

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

int main() {
  #ifdef LOCAL
  freopen("input.txt", "r", stdin);
  #endif
  int n, a, b;
  cin >> n >> a >> b;
  cout << min(a * n, tb);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'tb' was not declared in this scope; did you mean 'b'?
   10 |   cout << min(a * n, tb);
      |                      ^~
      |                      b
Language: C++


#include<stdio.h>
int main()
{
    int n,a,b;

    scanf("%d" "%d" "%d", &n,&a,&b);
  
	
    if(b>a*n) 
	printf(a*n);
    else 
	printf(b);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |         printf(a*n);
      |                ~^~
      |                 |
      |                 int
In file included from a.cc:2:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:13:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |         printf(b);
      |                ^
      |                |
      |                int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class A {
    static final int MAX = 100100;
    InputStream in = System.in;
    PrintStream out = System.out;
    // static int dp[][] = new int[MAX][MAX];

    public void _main(String[] args) {
        Scanner sc = new Scanner(in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        out.println(Math.min(n*a,b));

    }

    public static void main(String[] args) {
        new A()._main(args);
    }
}


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

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

int main(void){
	int n, a, b

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
    5 |         int n, a, b
      |         ^~~
main.c:5:9: error: expected declaration or statement at end of input
Language: Java

import java.io.*;

class A{
	public static void main(String[] args){
    	Scanner s=new Scanner(System.in);
      	int n=s.nextInt();
      	int a=s.nextInt();
      	 int b=s.nextInt();
      int min=Integer.min(a,b);
      System.out.println(min*n);
    }
}

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

#include<stdio.h>
int main()
{
    int n,a,b;

    scanf("%d" "%d" "%d, &n,&a,&b);
  
	
    if(b>a*n) 
	printf(a*n);
    else 
	printf(b);

    return 0;
}


Compiler output:
a.cc:6:21: warning: missing terminating " character
    6 |     scanf("%d" "%d" "%d, &n,&a,&b);
      |                     ^
a.cc:6:21: error: missing terminating " character
    6 |     scanf("%d" "%d" "%d, &n,&a,&b);
      |                     ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:20: error: expected ')' before 'if'
    6 |     scanf("%d" "%d" "%d, &n,&a,&b);
      |          ~         ^
      |                    )
......
    9 |     if(b>a*n)
      |     ~~              
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else
      |     ^~~~
a.cc:12:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |         printf(b);
      |                ^
      |                |
      |                int
In file included 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

/* メモ   STLについて
 * min(a, b)
 * max(a, b)
 * swap(a, b)
 *
 * sort(vec.begin(), vec.end())
 * reverse(vec.begin(), vec.end())
 *
 * vectorについて
 * vector<型> 配列名(要素数);
 * 例 vector<int> array(N);
 *    vector<char> str(4);  とか
 *
 * 2次元配列について
 * vector<vector<int>> vec(要素数1, vector<int>(要素数2, 初期値))
 * 例 vector<vector<int>> vec(3, vector<int>(4))
 * これで3 * 4の2次元配列ができる
 * 
*/

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

int main() {
  int N, A, B;
  int ans;
  cin >> N >> A >> B;
  ans = N * A;
  if (ans >= B) {
    cout << B << endl;
  } else if (ans < B) {
    cout << ans << endl;
  }
}


Compiler output:
main.c:21:9: fatal error: bits/stdc++.h: No such file or directory
   21 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:27: error: 'c' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.*;

class A{
	public static void main(String[] args){
    	Scanner s=new Scanner(System.in);
      	int n=s.nextInt();
      	int a=s.nextInt();
      	 int b=s.nextInt();
      int min=Integer.min(a,b);
      System.out.println(min*n);
    }
}

Compiler output:
Main.java:1: error: package java does not exist
import java.*;
^
Main.java:5: error: cannot find symbol
    	Scanner s=new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class A
Main.java:5: error: cannot find symbol
    	Scanner s=new Scanner(System.in);
    	              ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C

#include<stdio.h>

int main(){
	int n,a,b;
  	int ga=0;

	scanf("%d" "%d" "d",&n,&a,&b);

	ga=n*a;
	if(ga<b){
	printf("%d\n",ga);
    }else{
	printf("%d\n",b)
    }
	return 0;
}

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

#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
	int N, a, b;
	cin >> N >>a >>b ;
	if (N*b < a) {
		cout << b * N << endl;
	}
	
		cout << a << endl;

	
	}


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

import java.*;

public class A{
	public static void main(String[] args){
    	Scanner s=new Scanner(System.in);
      	int n=s.nextInt();
      	int a=s.nextInt();
      	 int b=s.nextInt();
      int min=Integer.min(a,b);
      System.out.println(min*n);
    }
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A{
       ^
Main.java:1: error: package java does not exist
import java.*;
^
Main.java:5: error: cannot find symbol
    	Scanner s=new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class A
Main.java:5: error: cannot find symbol
    	Scanner s=new Scanner(System.in);
    	              ^
  symbol:   class Scanner
  location: class A
4 errors
Language: Java

import java.util.*;

public class Sample{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(n * a < b) System.out.println(n * a);
		else System.out.println(b);
		sc.close();
	}
}

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

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int humanNum = nextInt();
        int train = nextInt();
        int tax = nextInt();
        
        int trainSum = humanNum * train;
        
        int rst = 0;
        if(trainSum>=tax){
            rst = tax;
        }else{
            rst = trainSum
        }
        
        System.out.println(rst);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) throws Exception {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: ';' expected
            rst = trainSum
                          ^
2 errors
Language: C

/* メモ   STLについて
 * min(a, b)
 * max(a, b)
 * swap(a, b)
 *
 * sort(vec.begin(), vec.end())
 * reverse(vec.begin(), vec.end())
 *
 * vectorについて
 * vector<型> 配列名(要素数);
 * 例 vector<int> array(N);
 *    vector<char> str(4);  とか
 *
 * 2次元配列について
 * vector<vector<int>> vec(要素数1, vector<int>(要素数2, 初期値))
 * 例 vector<vector<int>> vec(3, vector<int>(4))
 * これで3 * 4の2次元配列ができる
 * 
*/

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

int main() {
  int N, A, B;
  int ans;
  cin >> N >> A >> B;
  ans = N * A;
  if (ans >= B) {
    cout << B << endl;
  } else if (ans < B) {
    cout << ans << endl;
  }
}


Compiler output:
main.c:21:9: fatal error: iostream: No such file or directory
   21 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n ;
	int a ;
	int b ;
	cin >> n >> a >> b;
	int cost1 ;
	int cost2 ;
	cost1 = a * n;
	cost2 = b;
	if (cost2 > cost1){
		cout << cost1 << endl;
	}
	if else (cost1 > cost2){
		cout << cost2 << endl;
	}
	else {
		cout << cost2 << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected '(' before 'else'
   15 |         if else (cost1 > cost2){
      |            ^~~~
      |            (
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else {
      |         ^~~~