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

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

int main() {

int L,R;
cin >> L >> R;

int count = 2020;

if(2018 < (R-L))cout << 0 << endl;
else{
  for(int long long i = L;i<=R;i++){
    for(int long long j = L;j<=R;j++){
      if(i<j){
      if((i*j)%2019 == 0) {
        count =0;
        break;}
      else count = min(count,((i*j)%2019)); 
    }}
  }
  cout << count << endl;
}

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: no matching function for call to 'min(int&, long long int)'
   20 |       else count = min(count,((i*j)%2019));
      |                    ~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:   template argument deduction/substitution failed:
a.cc:20:23: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   20 |       else count = min(count,((i*j)%2019));
      |                    ~~~^~~~~~~~~~~~~~~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:20:23: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   20 |       else count = min(count,((i*j)%2019));
      |                    ~~~^~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main{
    int n,a,b;
    cin>>>>a>>b;
    int x=b<n*a?b:n*a;
    cout<<b<<endl;
    return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int n,a,b;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin>>>>a>>b;
      |     ^~~
a.cc:6:11: error: 'b' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |           ^
a.cc:6:13: error: 'n' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |             ^
a.cc:6:15: error: 'a' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |               ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |                 ^
a.cc:6:19: error: 'n' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |                   ^
a.cc:6:21: error: 'a' was not declared in this scope
    6 |     int x=b<n*a?b:n*a;
      |                     ^
a.cc:7:5: error: 'cout' does not name a type
    7 |     cout<<b<<endl;
      |     ^~~~
a.cc:8:5: error: expected unqualified-id before 'return'
    8 |     return 0;
      |     ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

int main(){
	int n, a, b;
	scanf_s("%d%d%d", &n, &a, &b);
	printf("%d", min(n*a,b));
};


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

#include <iostream>
#include <string.h>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <corecrt_search.h>
#include <vector>
using namespace std;

int main(){
	int n, a, b;
	scanf_s("%d%d%d", &n, &a, &b);
	printf("%d", min(n*a,b));
};


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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |    Printf("%d",N*A);
      |    ^~~~~~
      |    printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:4: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |    Printf("%d",N*A);
      |    ^~~~~~
      |    printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:4: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |    Printf("%d",N*A);
      |    ^~~~~~
      |    printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:4: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |    Printf("%d",N*A);
      |    ^~~~~~
      |    printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:27: error: expected ';' before 'if'
    4 |   scanf("%d%d%d",&N,&A,&B)
      |                           ^
      |                           ;
    5 |   if(N*A>B)
      |   ~~
Language: C++

#include<iostream>
#include<string.h>
#define ll long long
using namespace std;

int main()
{
    ll n, a, b;
    cin>>n>>a>>b;
    if(n*a < b)
        cout<<n*a;
    else
        cout<<b;
    return0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'return0' was not declared in this scope
   14 |     return0;
      |     ^~~~~~~
Language: C++

#include<bits/stdc++>
using namespace std;
 
int main(){
  int n , a , b;
  cin >> n >> a >> b;
  
  if(n*a<b){
	cout<< n*a<<endl;
  }else{
	cout << b<<endl;
  }
}

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

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

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

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

#include<bits/stdc++.h>
 
using namespace std;
vector<int> v;
 
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  
  int n,a,b,;
  
  cin>>n>>a>>b;
  
  int t = n*a;
  
  if (t < b) {
    cout<<t<<endl;
    return 0;
  }
  
  else {
   cout<<b<<endl;
    return 0;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected unqualified-id before ';' token
   10 |   int n,a,b,;
      |             ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
vector<int> v;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected unqualified-id before ';' token
   10 |   int n,a,b,;
      |             ^
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	Long a = sc.nextLong();
      	Long b = sc.nextLong();
      	int min = 2018;
      	sc.close();
      	if(b - a > 2019){
        	System.out.print(0);
        }
      	else{
      	for(Long i = a; i < b; i ++){
          	for(Long j = i + 1; j <= b; j ++){
            	if(min > ((Long)(i * j) % 2019)){
                	min = (Long)(i * j) % 2019;
                }
              	if(min == 0){
                	break;
                }
            }
        }
          System.out.print(min);
        }
      	
      	
    }
 
}

Compiler output:
Main.java:17: error: incompatible types: possible lossy conversion from long to int
                	min = (Long)(i * j) % 2019;
                	                    ^
1 error
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	Long a = sc.nextLong();
      	Long b = sc.nextLong();
      	int min = 2018;
      	sc.close();
      	if(b - a > 2019){
        	System.out.print(0);
        }
      	else{
      	for(Long i = a; i < b; i ++){
          	for(Long j = i + 1; j <= b; j ++){
            	if(min > (Long)((i * j) % 2019)){
                	min = (Long)(i * j) % 2019;
                }
              	if(min == 0){
                	break;
                }
            }
        }
          System.out.print(min);
        }
      	
      	
    }
 
}

Compiler output:
Main.java:17: error: incompatible types: possible lossy conversion from long to int
                	min = (Long)(i * j) % 2019;
                	                    ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected ')' before string constant
    5 |   if(N*A>B)(printf"%d",B;)
      |            ~      ^~~~
      |                   )
main.c:5:27: error: expected ';' before 'else'
    5 |   if(N*A>B)(printf"%d",B;)
      |                           ^
      |                           ;
    6 |     else(printf"%d",N*A;)
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected '}' at end of input
    6 |   cout<<ans<<endl;
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java


import java.util.*;

public class Main {

  long INF = Long.MAX_VALUE;
  long[][] dp;

  public static void main(String[] args) {
    new Main().solve();
  }

  void solve() {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = sc.nextInt();
    int B = sc.nextInt();
    System.out.println(N*A < B ? N*A: B;
  }
}


Compiler output:
Main.java:18: error: ')' or ',' expected
    System.out.println(N*A < B ? N*A: B;
                                       ^
1 error
Language: C

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

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

#include<iostream>

using namespace std;

int main()
{
int n,a,b;
  
  cin>>n>>a>>b;
  
  
  x=a*n;
  
  cout<<min(x,b)<<endl;
  


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'x' was not declared in this scope
   12 |   x=a*n;
      |   ^
Language: C++

#include<iostream>

int main(){
  int N, A, B, ans;
  
  cin >> N >> A >> B;
  A*N <= B ? (ans = A*N) : (ans = B);
  
  cout << ans <<  endl;
  
  return 0;
}

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

#include <bits/stdc++.h>
 
int main() {
  int a, b;
  std::cin >> a >> b;
  std::cout << min(a, b) << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   std::cout << min(a, b) << '\n';
      |                ^~~
      |                std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <iostream>

int main() {
  int a, b;
  std::cin >> a >> b;
  std::cout << min(a, b) << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   std::cout << min(a, b) << '\n';
      |                ^~~
      |                std::min
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:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'minimum' was not declared in this scope; did you mean 'fminimum'?
    6 |   minimum = min(N*A,B);
      |   ^~~~~~~
      |   fminimum
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |     printf(n*a);
      |            ~^~
      |             |
      |             int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     printf(b);
      |            ^
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |     printf(n*a);
      |            ~^~
      |             |
      |             int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     printf(b);
      |            ^
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: Java

public class Main {
	

  public static void main(String[] args) {
      
      
     int N, A, B, kei;

     kei = N * A;

     if(kei > B) {
         System.out.print(B);
     } else {
        System.out.print(kei);
     }


    
    
  }


}

Compiler output:
Main.java:9: error: variable N might not have been initialized
     kei = N * A;
           ^
Main.java:9: error: variable A might not have been initialized
     kei = N * A;
               ^
Main.java:11: error: variable B might not have been initialized
     if(kei > B) {
              ^
3 errors
Language: Java

public class Main {
	
  	private static int keisan(int n, int a, int b) {
      
      int j;
      j = a * b;
      
      if (j > b) {
       	return System.out.print(j); 
      } else {
        return System.out.print(b); 
      }
      
    }
  
	public static void main(String[] args) {
		
      int kei = keisan();
      
      
	}
 
 
}

Compiler output:
Main.java:9: error: incompatible types: void cannot be converted to int
       	return System.out.print(j); 
       	                       ^
Main.java:11: error: incompatible types: void cannot be converted to int
        return System.out.print(b); 
                               ^
Main.java:18: error: method keisan in class Main cannot be applied to given types;
      int kei = keisan();
                ^
  required: int,int,int
  found:    no arguments
  reason: actual and formal argument lists differ in length
3 errors
Language: Java

public class Main {
	
  	int keisan(int n, int a, int b) {
      
      int j;
      j = a * b;
      
      if (j > b) {
       	System.out.println(j); 
      } else {
        System.out.println(b); 
      }
      
    }
  
	public static void main(String[] args) {
		
      keisan();
      
	}
 
 
}

Compiler output:
Main.java:18: error: method keisan in class Main cannot be applied to given types;
      keisan();
      ^
  required: int,int,int
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error
Language: Java

public class Main {
	
  	int keisan(int n, int a, int b) {
      
      int j;
      n * a = j;
      
      if (j > b) {
       	System.out.println(j); 
      } else {
        System.out.println(b); 
      }
      
    }
  
	public static void main(String[] args) {
		
      keisan();
      
	}
 
 
}

Compiler output:
Main.java:6: error: unexpected type
      n * a = j;
        ^
  required: variable
  found:    value
Main.java:18: error: method keisan in class Main cannot be applied to given types;
      keisan();
      ^
  required: int,int,int
  found:    no arguments
  reason: actual and formal argument lists differ in length
2 errors
Language: Java

public class Main {
	
  	int keisan(int n, int a, int b) {
      
      private int j = 0;
      n * a = j;
      
      if (j > b) {
       	System.out.println(j); 
      } else {
        System.out.println(b); 
      }
      
    }
  
	public static void main(String[] args) {
		
      keisan();
      
	}
 
 
}

Compiler output:
Main.java:5: error: illegal start of expression
      private int j = 0;
      ^
Main.java:6: error: <identifier> expected
      n * a = j;
       ^
Main.java:6: error: <identifier> expected
      n * a = j;
           ^
Main.java:8: error: illegal start of type
      if (j > b) {
      ^
Main.java:8: error: <identifier> expected
      if (j > b) {
           ^
Main.java:8: error: <identifier> expected
      if (j > b) {
               ^
Main.java:10: error: illegal start of type
      } else {
        ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

public class Main {
	
  	int keisan(int n, int a, int b) {
      	
      n * a = j;
      
      if (j > b) {
       	System.out.println(j); 
      } else {
        System.out.println(b); 
      }
      
    }
  
	public static void main(String[] args) {
		
      keisan();
      
	}


}

Compiler output:
Main.java:5: error: unexpected type
      n * a = j;
        ^
  required: variable
  found:    value
Main.java:5: error: cannot find symbol
      n * a = j;
              ^
  symbol:   variable j
  location: class Main
Main.java:7: error: cannot find symbol
      if (j > b) {
          ^
  symbol:   variable j
  location: class Main
Main.java:8: error: cannot find symbol
       	System.out.println(j); 
       	                   ^
  symbol:   variable j
  location: class Main
Main.java:17: error: method keisan in class Main cannot be applied to given types;
      keisan();
      ^
  required: int,int,int
  found:    no arguments
  reason: actual and formal argument lists differ in length
5 errors
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();

	if((N*A)<B){

	System.out.println(N*A);	

   }
	else{

	System.out.println(B);
 
   } 

  }
 }

Compiler output:
Main.java:7: error: ';' expected
	Scanner sc new Scanner(system.in);
	          ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 |   ans=min(a*n,b);
      |   ^~~
      |   abs
Language: C

#include<stdio.h>
int main(){

  int A,B,N; 
  int sum1,sum2,min;
  1 =< N =<20;
  1 =< A =<50;
  1 =< B =<50;
  sum1 = A*N;
  sum2 = B*N;

  scanf("%s,%s,%s\n", N,A,B);
  if (sum1 >= sum2) {
    min = sum2;
    printf("%s\n", min);
  }
  else
   min = sum1;
   printf("%s\n", min);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected expression before '<' token
    6 |   1 =< N =<20;
      |      ^
main.c:7:6: error: expected expression before '<' token
    7 |   1 =< A =<50;
      |      ^
main.c:8:6: error: expected expression before '<' token
    8 |   1 =< B =<50;
      |      ^
Language: C

#include<stdio.h>
int main(){

  int A,B,N; 
  int sum1,sum2,min;
  1 =< N =<20;
  1 =< A =<50;
  1 =< B =<50;
  sum1 = A*N;
  sum2 = B*N;

  if (sum1 >= sum2) {
    min = sum2;
    printf("%s\n", min);
  }
  else
   min = sum1;
   printf("%s\n", min);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected expression before '<' token
    6 |   1 =< N =<20;
      |      ^
main.c:7:6: error: expected expression before '<' token
    7 |   1 =< A =<50;
      |      ^
main.c:8:6: error: expected expression before '<' token
    8 |   1 =< B =<50;
      |      ^
Language: C

#include<stadio.h>
int main(){

  int A,B,N; 
  int sum1,sum2,min;
  1 =< N =<20;
  1 =< A =<50;
  1 =< B =<50;
  sum1 = A*N;
  sum2 = B*N;

  if (sum1 >= sum2) {
    min = sum2;
    printf("%s\n", min);
  }
  else
   min = sum1;
   printf("%s\n", min);

   return 0;
}

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

package beginner;
import java.util.Scanner;
public class TorT {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A = sc.nextInt();
		int B = sc.nextInt();
		System.out.print(Math.min(N*A,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++

import java.util.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	int N = in.nextInt(), A = in.nextInt(), B = in.nextInt();
	System.out.println(Math.min(A * N, B));
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.stream.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace srd;

int main(){

    int N, A, B;

    cin >> N >> A >> B;

    cout << min(N*A, B) << endl;

    return 0;


}

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> N >> A >> B;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << min(N*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:10:13: error: 'min' was not declared in this scope; did you mean 'std::min'?
   10 |     cout << min(N*A, B) << endl;
      |             ^~~
      |             std::min
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:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:10:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << min(N*A, B) << endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;


int T(int n, int a, int b);

int T(int n, int a, int b) {
	int i, f;
	int t = a * n;

	for (i = 0; i <= n; i++) {

		f = a * (n - i) + b * i;


		if (t > f) {

			t = f;

		}

		break;

	}

	return ;

	

}

int main() {

	int N, A, B, TT;

	cin >> N >> A >> B;

	TT = T(N, A, B);

	cout << TT << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int T(int, int, int)':
a.cc:26:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   26 |         return ;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;


int T(int n, int a, int b);

int T(int n, int a, int b) {
	int i, f;

	for (i = 0; i <= n; i++) {

		f = a * (n - i) + b * i;

		int t = a * n;

		if (t > f) {

			t = f;

		}

		break;

	}

	return ;

	

}

int main() {

	int N, A, B, TT;

	cin >> N >> A >> B;

	TT = T(N, A, B);

	cout << TT << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int T(int, int, int)':
a.cc:26:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   26 |         return ;
      |         ^~~~~~
Language: C++

int main(void)
{

   int n, a, b, to, ta, t;

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

   to = n * a;

   ta = b;

   if(to < ta){
      t = to;
   }

   else
      t = ta;


   printf("%d", t);

   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'scanf' was not declared in this scope
    6 |    scanf("%d%d%d", &n, &a, &b);
      |    ^~~~~
a.cc:20:4: error: 'printf' was not declared in this scope
   20 |    printf("%d", t);
      |    ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1<<31-1
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
#define NUM 100005
void swap(int* a,int* b){int tmp=*a;*a=*b;*b=tmp;}
int GCD(int a,int b){int c=1,tmp=MAX(a,b);b=MIN(a,b);a=tmp;while(c!=0){c=a%b;a=b;b=c;}return a;}
int LCM(int a,int b){return a*b/GCD(a,b);}
int POW(int a,int n){int i;LL x=a;if(n==0)return 1;else if(n==1)return a;else FOR(i,0,n-1){x=x*a;if(x>MOD)x%=MOD;}return (int)x;}
//int cmp(const void* a,const void* b){return *(int*)a-*(int*)b;}

int main() {
  int i,ans=0;
  scanf("%d,%d,%d",&N,&A,&B);
  
  printf("%d\n",MIN(N*A,B));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:21: error: 'N' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",&N,&A,&B);
      |                     ^
main.c:21:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:24: error: 'A' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",&N,&A,&B);
      |                        ^
main.c:21:27: error: 'B' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",&N,&A,&B);
      |                           ^
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1<<31-1
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
#define NUM 100005
void swap(int* a,int* b){int tmp=*a;*a=*b;*b=tmp;}
int GCD(int a,int b){int c=1,tmp=MAX(a,b);b=MIN(a,b);a=tmp;while(c!=0){c=a%b;a=b;b=c;}return a;}
int LCM(int a,int b){return a*b/GCD(a,b);}
int POW(int a,int n){int i;LL x=a;if(n==0)return 1;else if(n==1)return a;else FOR(i,0,n-1){x=x*a;if(x>MOD)x%=MOD;}return (int)x;}
//int cmp(const void* a,const void* b){return *(int*)a-*(int*)b;}

int main() {
  int i,ans=0;
  scanf("&d,&d,&d",N,A,B);
  
  printf("%d\n",MIN(N*A,B));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:20: error: 'N' undeclared (first use in this function)
   21 |   scanf("&d,&d,&d",N,A,B);
      |                    ^
main.c:21:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:22: error: 'A' undeclared (first use in this function)
   21 |   scanf("&d,&d,&d",N,A,B);
      |                      ^
main.c:21:24: error: 'B' undeclared (first use in this function)
   21 |   scanf("&d,&d,&d",N,A,B);
      |                        ^
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1<<31-1
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
#define NUM 100005
void swap(int* a,int* b){int tmp=*a;*a=*b;*b=tmp;}
int GCD(int a,int b){int c=1,tmp=MAX(a,b);b=MIN(a,b);a=tmp;while(c!=0){c=a%b;a=b;b=c;}return a;}
int LCM(int a,int b){return a*b/GCD(a,b);}
int POW(int a,int n){int i;LL x=a;if(n==0)return 1;else if(n==1)return a;else FOR(i,0,n-1){x=x*a;if(x>MOD)x%=MOD;}return (int)x;}
//int cmp(const void* a,const void* b){return *(int*)a-*(int*)b;}

int main() {
  int i,ans=0;
  scanf("%d,%d,%d",N,A,B);
  
  printf("%d\n",MIN(N*A,B));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:20: error: 'N' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",N,A,B);
      |                    ^
main.c:21:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:22: error: 'A' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",N,A,B);
      |                      ^
main.c:21:24: error: 'B' undeclared (first use in this function)
   21 |   scanf("%d,%d,%d",N,A,B);
      |                        ^
Language: C

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

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

#include <algorithm>
using namespace std;
int main(void)
{
	long N,A,B;
	cin >> N>>A>>B;
	//vector<long> data(A);
	//vector<long>yobi(A);

	if ((N * A) <= B)
	{
		cout << (N * A) << endl;
	}
	else
	{
		cout << B << endl;
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N>>A>>B;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << (N * A) << endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:36: error: 'endl' was not declared in this scope
   12 |                 cout << (N * A) << endl;
      |                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <algorithm>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << B << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:30: error: 'endl' was not declared in this scope
   16 |                 cout << B << endl;
      |                              ^~~~
a.cc:16:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

#include<iostream>
using namespace std;
#define rep(i,n) for(int i=0;i<n;++i)

int main() {
	int n, d;
	cin >> n >> d;
	vector<vector<int>> x(n, vector<int>(d));
	rep(i, n) {
		rep(j, d)cin >> x[i][j];
	}
	int ans = 0;
	rep(i, n)rep(j, i) {
		int sq = 0;
		rep(k, d) {
			int s = x[i][k] - x[j][k];
			sq += s * s;
		}
		int s = sqrt(sq);
		if (s * s == sq)ans++;
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<vector<int>> x(n, vector<int>(d));
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:23: error: expected primary-expression before 'int'
    8 |         vector<vector<int>> x(n, vector<int>(d));
      |                       ^~~
a.cc:10:33: error: 'x' was not declared in this scope
   10 |                 rep(j, d)cin >> x[i][j];
      |                                 ^
a.cc:16:33: error: 'x' was not declared in this scope
   16 |                         int s = x[i][k] - x[j][k];
      |                                 ^
a.cc:19:25: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   19 |                 int s = sqrt(sq);
      |                         ^~~~
      |                         sq
Language: C++

#include<iostream.h>
using namespace std;
int main()
{ int n,b,a,r;
 cin>>n>>a>>b;
 r=n*a;
 if(r<b)
 cout<<r;
 else
   cout<<b;
 return 0;}


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(){
  cin >> n >> a >> b;
  if (n*a > b) cout << b;
  else cout << n*a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |   cin >> n >> a >> b;
      |          ^
      |          yn
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   cin >> n >> a >> b;
      |               ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   cin >> n >> a >> b;
      |                    ^
Language: C++

#includE<bits/stdc++.h>

using namespace std;
int main()
{
  int n, a, b;
  cin>>n>>a>>b;
  cout<<min(n*a,b);
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includE; did you mean #include?
    1 | #includE<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includE<bits/stdc++.h>
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<min(n*a,b);
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:9: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |   cout<<min(n*a,b);
      |         ^~~
      |         main
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    cin >> N >> A >> B;

    cout << min(N*A,B);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'N' was not declared in this scope
    6 |     cin >> N >> A >> B;
      |            ^
a.cc:6:17: error: 'A' was not declared in this scope
    6 |     cin >> N >> A >> B;
      |                 ^
a.cc:6:22: error: 'B' was not declared in this scope
    6 |     cin >> N >> A >> B;
      |                      ^
Language: C

#include<stdio.h>

int main(){
  int N,A,B;
  
  scanf("%d %d %d",&N,&A,&B);
  
  if(N*A<=B){
  	printf("%d",N*A);
  }else{
  	printf("%d",B);
  }
  retunr(0);
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'retunr' [-Wimplicit-function-declaration]
   13 |   retunr(0);
      |   ^~~~~~
Language: C++

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

int main()
{
  ios::sync_with_Ssdio(false);
  cin.tie(0);
  ll n , a , b;
  cin >> n >> a >> b;
  cout << min(n * a , b ) << "\n";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'sync_with_Ssdio' is not a member of 'std::ios' {aka 'std::basic_ios<char>'}
    7 |   ios::sync_with_Ssdio(false);
      |        ^~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int n,a,b;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>n>>a>>b;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout<<max(n*a,b)<<endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

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

import java.util.*;
public 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();
		// 文字列の入力
		// 出力
      if(N*A<B){
		System.out.println(N*A);
    }else if(N*A>B){
        System.out.println(B);
      }
}

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

import java.util.*;
public 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();
		
      if(N*A<B){
		System.out.print(N*A);
    }else if(N*A>B){
        System.out.print(B);
      }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ':' before ';' token
    7 |                         default;
      |                                ^
      |                                :
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: 'exit' undeclared (first use in this function)
    7 |                         exit;
      |                         ^~~~
main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(void){
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
    7 |                         exit;
      |                         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected expression before 'int'
    4 |         while(int c){
      |               ^~~
main.c:7:25: error: 'exit' undeclared (first use in this function)
    7 |                         exit;
      |                         ^~~~
main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(void){
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
    7 |                         exit;
      |                         ^~~~
Language: C++

use std::io::*;
use std::str::FromStr;

fn main() {
    let n: usize = read();
    let a: usize = read();
    let b: usize = read();

    println!("{}", std::cmp::min(n*a, b));
}

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.unwrap() as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().unwrap()
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main() {
      | ^~
a.cc:12:1: error: 'fn' does not name a type
   12 | fn read<T: FromStr>() -> T {
      | ^~
Language: C++

int a,b,c;
cin>>a>>b>>c;
if(b>c){return a*c;}
else{return a*b;}


Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>a>>b>>c;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if(b>c){return a*c;}
      | ^~
a.cc:4:1: error: expected unqualified-id before 'else'
    4 | else{return a*b;}
      | ^~~~
Language: Java

import java.util.*;
public class Main{
  static public void main(String ... args[]){
    final Scanner sc = new Scanner(System.in);
    final int N = sc.nextInt();
    final int A = sc.nextInt();
    final 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: legacy array notation not allowed on variable-arity parameter
  static public void main(String ... args[]){
                                         ^
1 error
Language: C++

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

#define rep(i, n) for(int i=0;i<n;i++)

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n, a, b:

    cin n >> a >> b;

    cout << min(n * a, b) << "\n";

    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: found ':' in nested-name-specifier, expected '::'
   10 |     int n, a, b:
      |                ^
      |                ::
a.cc:10:15: error: 'b' has not been declared
   10 |     int n, a, b:
      |               ^
a.cc:12:9: error: qualified-id in declaration before 'n'
   12 |     cin n >> a >> b;
      |         ^
a.cc:14:24: error: 'b' was not declared in this scope
   14 |     cout << min(n * a, b) << "\n";
      |                        ^