Language: C++

import java.io.*;
import java.util.*;

class FastReader 
{ 
    BufferedReader br; 
    StringTokenizer st; 
    
    public FastReader() 
    { 
        br = new BufferedReader(new InputStreamReader(System.in)); 
    } 
    
    String next() 
    { 
        while (st == null || !st.hasMoreElements()) 
        { 
            try
            { 
                st = new StringTokenizer(br.readLine()); 
            } 
            catch (IOException  e) 
            { 
                e.printStackTrace(); 
            } 
        } 
        return st.nextToken(); 
    } 
    
    int nextInt() 
    { 
        return Integer.parseInt(next()); 
    } 
    
    long nextLong() 
    { 
        return Long.parseLong(next()); 
    } 
    
    double nextDouble() 
    { 
        return Double.parseDouble(next()); 
    } 
    
    String nextLine() 
    { 
          String str = ""; 
        try
        { 
            str = br.readLine(); 
        } 
        catch (IOException e) 
        { 
            e.printStackTrace(); 
        } 
        return str; 
    } 
} 

class Solution
{
    void solve()
    {
        FastReader sc = new FastReader();
        
        int N = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        System.out.println(Math.min(N*A,B));

    }
}
  
public class Main 
{ 
    public static void main(String[] args) 
    { 
        Solution ob = new Solution();

        ob.solve();
    } 
} 

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
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.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:5: error: 'BufferedReader' does not name a type
    6 |     BufferedReader br;
      |     ^~~~~~~~~~~~~~
a.cc:7:5: error: 'StringTokenizer' does not name a type
    7 |     StringTokenizer st;
      |     ^~~~~~~~~~~~~~~
a.cc:9:11: error: expected ':' before 'FastReader'
    9 |     public FastReader()
      |           ^~~~~~~~~~~
      |           :
a.cc:14:5: error: 'String' does not name a type
   14 |     String next()
      |     ^~~~~~
a.cc:45:5: error: 'String' does not name a type
   45 |     String nextLine()
      |     ^~~~~~
a.cc:58:2: error: expected ';' after class definition
   58 | }
      |  ^
      |  ;
a.cc: In constructor 'FastReader::FastReader()':
a.cc:11:9: error: 'br' was not declared in this scope
   11 |         br = new BufferedReader(new InputStreamReader(System.in));
      |         ^~
a.cc:11:18: error: expected type-specifier before 'BufferedReader'
   11 |         br = new BufferedReader(new InputStreamReader(System.in));
      |                  ^~~~~~~~~~~~~~
a.cc: In member function 'int FastReader::nextInt()':
a.cc:32:16: error: 'Integer' was not declared in this scope
   32 |         return Integer.parseInt(next());
      |                ^~~~~~~
a.cc:32:33: error: 'next' was not declared in this scope; did you mean 'nextInt'?
   32 |         return Integer.parseInt(next());
      |                                 ^~~~
      |                                 nextInt
a.cc: In member function 'long int FastReader::nextLong()':
a.cc:37:16: error: 'Long' was not declared in this scope; did you mean 'long'?
   37 |         return Long.parseLong(next());
      |                ^~~~
      |                long
a.cc:37:31: error: 'next' was not declared in this scope; did you mean 'nextInt'?
   37 |         return Long.parseLong(next());
      |                               ^~~~
      |                               nextInt
a.cc: In member function 'double FastReader::nextDouble()':
a.cc:42:16: error: 'Double' was not declared in this scope; did you mean 'double'?
   42 |         return Double.parseDouble(next());
      |                ^~~~~~
      |                double
a.cc:42:35: error: 'next' was not declared in this scope; did you mean 'nextInt'?
   42 |         return Double.parseDouble(next());
      |                                   ^~~~
      |                                   nextInt
a.cc: At global scope:
a.cc:73:2: error: expected ';' after class definition
   73 | }
      |  ^
      |  ;
a.cc: In member function 'void Solution::solve()':
a.cc:64:25: error: conversion from 'FastReader*' to non-scalar type 'FastReader' requested
   64 |         FastReader sc = new FastReader();
      |                         ^~~~~~~~~~~~~~~~
a.cc:70:9: error: 'System' was not declared in this scope
   70 |         System.out.println(Math.min(N*A,B));
      |         ^~~~~~
a.cc:70:28: error: 'Math' was not declared in this scope
   70 |         System.out.println(Math.min(N*A,B));
      |                            ^~~~
a.cc: At global scope:
a.cc:75:1: error: expected unqualified-id before 'public'
   75 | public class Main
      | ^~~~~~