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

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:1: error: class TorT is public, should be declared in a file named TorT.java
public class  TorT {
       ^
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
3 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N , a , b;
  cin >> N , a , b;
  if(a*N > = b) int c = a*N;
   else int c =b;
  cout << c << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '=' token
    7 |   if(a*N > = b) int c = a*N;
      |            ^
a.cc:9:11: error: 'c' was not declared in this scope
    9 |   cout << c << endl;
      |           ^
Language: Java

import java.io.*;

/**
 * Created by Ayushi on 07/07/2019.
 */

public class A {
    public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String[] temp = r.readLine().split(" ");
        int n = Integer.parseInt(temp[0]);
        int a = Integer.parseInt(temp[1]);
        int b = Integer.parseInt(temp[2]);
        r.close();

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


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

#include <iostream>
using namespace std;

int N,A,B,C;
cin >> N >> A >> B;
C = N * A;
if(C < B)
  cout >> C;
else
  cout >> B;

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> N >> A >> B;
      | ^~~
a.cc:6:1: error: 'C' does not name a type
    6 | C = N * A;
      | ^
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(C < B)
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else
      | ^~~~
Language: Java

import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        int hito = yomi.nextInt();
        int densyatin = yomi.nextInt();
        int taxiuntin = yomi.nextInt();
        if (hito * densyatin > taxiuntin) System.out.println(taxiuntin);
        else System.out.println(hito * densyatin);


Compiler output:
Main.java:10: error: reached end of file while parsing
        else System.out.println(hito * densyatin);
                                                  ^
1 error
Language: C++

#include <iostream>
using namespace std;
main int(){
	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:3:1: error: 'main' does not name a type
    3 | main int(){
      | ^~~~
Language: Java

public class  T or T {
 	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: '{' expected
public class  T or T {
               ^
1 error
Language: C++

#include <iostream>

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

	cin >> N;
	cin >> A;
	cin >> B;

	int ans = (N * A > B) ? B : N * A;

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> N;
      |         ^~~
      |         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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         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:13:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         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: Java

class Main {
  public static void main(String[] args) {
    if (args == null || args.length != 3) return null;
    
    int N = args[0];
    int A = args[1];
    int B = args[2];
    
    int result = N * A > B ? N : N * A;
    
    System.out.println(result);
    
  }
}

Compiler output:
Main.java:3: error: incompatible types: unexpected return value
    if (args == null || args.length != 3) return null;
                                                 ^
Main.java:5: error: incompatible types: String cannot be converted to int
    int N = args[0];
                ^
Main.java:6: error: incompatible types: String cannot be converted to int
    int A = args[1];
                ^
Main.java:7: error: incompatible types: String cannot be converted to int
    int B = args[2];
                ^
4 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected ';' before 'if'
    6 |   c=n*a
      |        ^
      |        ;
    7 |     if(c<b){
      |     ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'N'
   11 |         cout N*A;
      |             ^~
      |             ;
Language: C++

#include <iostream>

int main(void){
    int min = 1000000;
    int N, A, B;

    cin >> N >> A >> B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     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:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout << min << 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:14:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout << min << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: lvalue required as left operand of assignment
   15 |         else if (N * A = B) {
      |                  ~~^~~
Language: C++

#include <iostream>

using namespace std;

int main(){
	int N,A,B;
  	cin >> N >> A >> B;
  	if(N*A > B){
    	cout << B;
    }else{
    	cout NA;
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'NA'
   11 |         cout NA;
      |             ^~~
      |             ;
Language: C++

#include <iostream>
#include<algorithm>
#include<vector>
#include<deque>
#include <numeric>
#include<cmath>
#include<string>
using namespace std;
#define ll long long

typedef pair<ll,ll>;
int main(void){
    int n,a,b;
    cin >> n>>a>>b;
    int x;
    x = a*n;
    if(x<b){
        cout << x<<endl;
    }else{
        cout << b<<endl;
    }
}

Compiler output:
a.cc:11:9: error: declaration does not declare anything [-fpermissive]
   11 | typedef pair<ll,ll>;
      |         ^~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

int main() {

    int N;
    int A;
    int B;
    int Na;

    cin >> N >> A >> B;

    Na = N*A;
    cout << min({Na, B}) << endl;

  return 0;
}


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

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

int main() {
  #ifdef LOCAL
  freopen("input.txt", "r", stdin);
  #endif
  int n, a, b;
  cin >> n >> a >> b;
  int ta = n * a, tb = n / 4 * b;
  if (n % r) tb += b;
  cout << max(ta, tb);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'r' was not declared in this scope
   11 |   if (n % r) tb += b;
      |           ^
Language: C++

#include <stdio.h>


void 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);
  }

}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void)
      | ^~~~
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:7:20: error: expected ')' before 'n'
    7 |         printf("%d"n*a);
      |               ~    ^
      |                    )
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected initializer before 'a'
    6 |   long long int n, m a;
      |                      ^
a.cc:7:11: error: 'm' was not declared in this scope
    7 |   cin>>n>>m>>a;
      |           ^
a.cc:7:14: error: 'a' was not declared in this scope
    7 |   cin>>n>>m>>a;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second


int main(){
	/*#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif*/
    int n , a , b;
    cin>>n>>a>>b;
    ll cost = n*min(a,b);
   // if(min(a,b)==a){
        if(cost<b){
            cout<<cost:
        }
        else {
            cout<<b;
        }
   // }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expected ';' before ':' token
   19 |             cout<<cost:
      |                       ^
      |                       ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
	int main() {
		int A, B, C;
			cin >> A >> B >> C;
		if (A ＊ B >=C) {
			cout << C;
		} 
		else if (A * B < C) {
			cout << A*B;
		}
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before '\U0000ff0a'
    6 |                 if (A ＊ B >=C) {
      |                    ~ ^~~
      |                      )
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:7:20: error: expected ')' before 'n'
    7 |         printf("%d"n*a);
      |               ~    ^
      |                    )
main.c:9:23: error: expected ';' before '}' token
    9 |         printf("%d",b)
      |                       ^
      |                       ;
   10 |     }
      |     ~
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
int main(){
    inc N,A,B; cin >>N>>A>>B;
    cout << min(N*A,B)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'inc' was not declared in this scope; did you mean 'int'?
    6 |     inc N,A,B; cin >>N>>A>>B;
      |     ^~~
      |     int
a.cc:6:22: error: 'N' was not declared in this scope
    6 |     inc N,A,B; cin >>N>>A>>B;
      |                      ^
a.cc:6:25: error: 'A' was not declared in this scope
    6 |     inc N,A,B; cin >>N>>A>>B;
      |                         ^
a.cc:6:28: error: 'B' was not declared in this scope
    6 |     inc N,A,B; cin >>N>>A>>B;
      |                            ^
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:22: error: expected ';' before 'return'
    7 |   else printf("%d",b)
      |                      ^
      |                      ;
    8 |   return 0;
      |   ~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;

public class Prog
{
    public void run()
    {
        var input = Console.ReadLine().Split();
        int N = int.Parse(input[0]);
        int A = int.Parse(input[1]);
        int B = int.Parse(input[2]);
        int a = A * N;
        if(a > B)
        {
            Console.WriteLine(B);
        }
        else
        {
            Console.WriteLine(a);
        }
    }
    public static void Main()
    {
        var prog = new Prog();
        prog.run();
    }
    /*
    最小公倍数
    public static long Lcm(long a, long b)
    {
        return a * b / Gcd(a, b);
    }

    // ユークリッドの互除法 
    public static long Gcd(long a, long b)
    {
        if (a < b)
            // 引数を入替えて自分を呼び出す
            return Gcd(b, a);
        while (b != 0)
        {
            var remainder = a % b;
            a = b;
            b = remainder;
        }
        return a;
    }
    */
    //a<=c, b<=d;
}

//Array.ConvertAll(int.Parse)
//str.IndexOf("Stage",System.StringComparison.CurrentCulture)


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Prog
      | ^~~~~~
Language: C++

#include <stdio.h>


void 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);
  }

}

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

package main

import (
	"fmt"
)

func main() {
	var n, a, b int
	fmt.Scan(&n, &a, &b)
	if a*n >= b {
		fmt.Println(b)
	} else {
		fmt.Println(a * n)
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C

#include <stdio.h>
int main(int argc, char const *argv[]) {
  int N,A,B;
  int sum1, sum2;
  scanf("%d %d %d\n",&N, &A, &B );

  sum1 =  N*A;
  sum2 = B

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


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected ';' before 'if'
    8 |   sum2 = B
      |           ^
      |           ;
    9 | 
   10 |   if(sum1 >= sum2){
      |   ~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	int t1 = sc.nextInt();
      	int t2 = sc.nextInt();
      
      	if (n*t1 >= t2) {
          return t2;
        } else {
          return n*t1;
        }
		
		sc.close();
	}

}

Compiler output:
Main.java:12: error: incompatible types: unexpected return value
          return t2;
                 ^
Main.java:14: error: incompatible types: unexpected return value
          return n*t1;
                  ^
2 errors
Language: C++

#include<bits/stdc++.h>
int n,a,b;
int main()
{
    scanf("%d%d%d",&n,&a,&b);
	printf("%d",min(n*a,b));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |         printf("%d",min(n*a,b));
      |                     ^~~
      |                     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++

package main

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

var stdin = initStdin()
 
func initStdin() *bufio.Scanner {
	bufsize := 1 * 1024 * 1024
	var stdin = bufio.NewScanner(os.Stdin)
	stdin.Buffer(make([]byte, bufsize), bufsize)
	stdin.Split(bufio.ScanWords)
	return stdin
}

func scanInt() int {
	stdin.Scan()
	i, _ := strconv.Atoi(stdin.Text())
	return i
}

func scanStr() string {
	stdin.Scan()
	return stdin.Text()
}

type ia []int

func (ia ia)Len() int {
	return len(ia)
}
func (ia ia)Swap(i, j int) {
	ia[i], ia[j] = ia[j], ia[i]
}
func (ia ia)Less(i, j int) bool {
	return ia[i] < ia[j]
}

func per(n int, k int) int {
	v := 1
	if 0 < k && k <= n {
			for i := 0; i < k; i++ {
					v *= (n - i)
			}
	} else if k > n {
			v = 0
	}
	return v
}

func fac(n int) int {
	return per(n, n - 1)
}

func com(n int, k int) int {
	return per(n, k) / fac(k)
}

func hom(n int, k int) int {
	return com(n + k - 1, k)
}

func main() {
	n := scanInt()
	a := scanInt()
	b := scanInt()
	ans := 0
	if n*a < b {
		ans = n*a
	} else {
		ans = b
	}
	fmt.Println(ans)
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:22:1: error: 'func' does not name a type
   22 | func scanInt() int {
      | ^~~~
a.cc:28:1: error: 'func' does not name a type
   28 | func scanStr() string {
      | ^~~~
a.cc:33:1: error: 'type' does not name a type; did you mean 'typeof'?
   33 | type ia []int
      | ^~~~
      | typeof
a.cc:38:6: error: expected constructor, destructor, or type conversion before '(' token
   38 | func (ia ia)Swap(i, j int) {
      |      ^
a.cc:41:6: error: expected constructor, destructor, or type conversion before '(' token
   41 | func (ia ia)Less(i, j int) bool {
      |      ^
a.cc:45:1: error: 'func' does not name a type
   45 | func per(n int, k int) int {
      | ^~~~
a.cc:57:1: error: 'func' does not name a type
   57 | func fac(n int) int {
      | ^~~~
a.cc:61:1: error: 'func' does not name a type
   61 | func com(n int, k int) int {
      | ^~~~
a.cc:65:1: error: 'func' does not name a type
   65 | func hom(n int, k int) int {
      | ^~~~
a.cc:69:1: error: 'func' does not name a type
   69 | func main() {
      | ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	int x,y,z;
	scanf("%d %d %d",&x,&y,&z);
	if(x*y < xz){
		printf("%d\n",x * y);
	}
	else{
		printf("%d\n", z);
	}
	return(0);
	
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'xz' undeclared (first use in this function); did you mean 'z'?
    7 |         if(x*y < xz){
      |                  ^~
      |                  z
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

# coding: utf-8

n, a, b = map(int, input().split())

print(a * n if a * n <= b else b)



Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:3:1: error: 'n' does not name a type
    3 | n, a, b = map(int, input().split())
      | ^
Language: C++

#include <iostream>
int main(void){
  int a,b,n;cin>>n>>a>>b;
  int c=b<n*a?b:n*a;
  cout<<c<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int a,b,n;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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<c<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<c<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  	int N, A, B;
  	cin >> N >> A >> B;
      if(NA > B){
      	cout << B;
      }else{
      	cout << NA;
      }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'NA' was not declared in this scope; did you mean 'A'?
    6 |       if(NA > B){
      |          ^~
      |          A
Language: C++

#include<bits/stdc++.h>
using namespace std;
//define
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
#define elif else if
//vectordefine
#define vint vector<int>
#define vc vector<char>
#define vtr vector<string>
#define pb(n) push_back(n)
//queuedefine
#define qint queue<int>
#define qc queue<char>
#define qstr queue<str>
//mapdefine
#define mint map<int>
#define mc map<char>
//pairdefine
#define pint pair<int,int>
#define pis pair<int,str>
#define pic pair<int,char>
#define pci pair<char,int>
#define mod 100000007
//main
signed main(){
  int N,M,O,P,count=0,count2=mod,count3=0,stack=0;
  str S,T;
  double l,s;
  cin>>N>>M>>O;
  if(M*N<O)cout<<<M*N<<endl;
  else cout<<O<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: expected primary-expression before '<' token
   33 |   if(M*N<O)cout<<<M*N<<endl;
      |                  ^
a.cc:33:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   33 |   if(M*N<O)cout<<<M*N<<endl;
      |                   ~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected primary-expression before ',' token
    6 |         cout<<min(a*b,,c);
      |                       ^
Language: C++

#include <string>
#include<algorithm>
#include<vector>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b >> c;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<vector>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << a * b << endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |                 cout << a * b << endl;
      |                                  ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include<vector>
  +++ |+#include <ostream>
    4 | using namespace std;
a.cc:12:14: error: 'cout' was not declared in this scope
   12 |         else cout << c << endl;
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:27: error: 'endl' was not declared in this scope
   12 |         else cout << c << endl;
      |                           ^~~~
a.cc:12:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |     pritnf("%d\n",a*n);
      |     ^~~~~~
      |     printf
Language: C++

    #include<bits/stdc++.h>
    using namespace std;
    #define ll long long
    #define ld double
    #define vv vector<ll>
    #define pp pair<ll,ll>
    #define ff first
    #define ss second
    #define vp vector<pp>
    #define pb push_back
    #define mp make_pair
    #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);
    #define maxn 105
    const ll mod=1e9+7;
    #define N 2750135
    bool prime[N];
    ll p[N];
    ll n,m;
    void isprime()
    {
        memset(prime,true,N);
        memset(p,-1,sizeof(p));
        for(ll i=2;i<N;i++)
        {
            if(p[i]==-1)
            {
            	p[i]=i;
                for(ll j=i*i;j<N;j+=i)
                {
                    if(p[j]==-1)
                    {
                    	p[j]=i;
					}
                }
            }
        }
    }
    ll power(ll a,ll n)
    {
        ll ans=1;
        a=a%mod;
        while(n>0)
        {
            if(n&1)
            {
                ans=(ans*a)%mod;
            }
            n=n>>1;
            a=(a*a)%mod;
        }
        return ans;
    }
    ll gcd(ll a,ll b)
    {
        if(b==0)
        return a;
        
        return gcd(b,a%b);
    }
    

    int main()
    {
    	fast;
        ll n,a,b;
         cin>>n>>a>>b;
      if(n*a<b)
      {
        cout<<n*a<<endl;
      }
      else
      {
        cout<<b;
        
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:76:10: error: expected '}' at end of input
   76 |         }
      |          ^
a.cc:63:5: note: to match this '{'
   63 |     {
      |     ^
Language: C

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


  	
	return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before 'return'
    9 |         printf("%d", b)
      |                        ^
      |                        ;
......
   14 |         return 0;
      |         ~~~~~~
Language: C++

using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;


namespace AtCoder_Beginner_Contest_132
{
    class Program
    {
        static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); }
        static public List<long> Slist() { return ReadLine().Split().Select(long.Parse).ToList(); }
        static void Main(string[] args)
        {
            var NAB=Sarray();
            WriteLine(Math.Min(NAB[0] * NAB[1], NAB[2]));
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'static'
    4 | using static System.Console;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Text;
      |       ^~~~~~
a.cc:12:16: error: expected unqualified-id before 'public'
   12 |         static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); }
      |                ^~~~~~
a.cc:13:16: error: expected unqualified-id before 'public'
   13 |         static public List<long> Slist() { return ReadLine().Split().Select(long.Parse).ToList(); }
      |                ^~~~~~
a.cc:14:26: error: 'string' has not been declared
   14 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:14:35: error: expected ',' or '...' before 'args'
   14 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:19:6: error: expected ';' after class definition
   19 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder_Beginner_Contest_132::Program::Main(int*)':
a.cc:16:13: error: 'var' was not declared in this scope
   16 |             var NAB=Sarray();
      |             ^~~
a.cc:17:23: error: 'Math' was not declared in this scope
   17 |             WriteLine(Math.Min(NAB[0] * NAB[1], NAB[2]));
      |                       ^~~~
a.cc:17:32: error: 'NAB' was not declared in this scope
   17 |             WriteLine(Math.Min(NAB[0] * NAB[1], NAB[2]));
      |                                ^~~
a.cc:17:13: error: 'WriteLine' was not declared in this scope
   17 |             WriteLine(Math.Min(NAB[0] * NAB[1], NAB[2]));
      |             ^~~~~~~~~
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",n*a);
  }else{
    printf("%d\n",b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected expression before '%' token
    5 |   scanf("%d %d %d",&n,%a,&b);
      |                       ^
Language: C++

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

#define ll long long int
#define ld long double
#define pb push_back
#define mp make_pair

#define forn(i,s,n) for(i=s;i<n;i++)
#define all(c)  c.begin(),c.end()
#define boost ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(0);srand(time(NULL));
#define tc(t) ll t;cin >> t; while(t--)

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;

#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>



#define pii pair<long long,long long>
#define vii vector<pii>
#define vvi vector<vector <long long> >

#define ff first
#define ss second

#define pqmax priority_queue<int>
#define pqmin priority_queue<int,vector<int> , greater<int> >

#define deb1(x) cout<<#x<<" : "<<x<<endl;
#define deb2(x,y) cout<<#x<<" : "<<x<<"\t"<<#y<<" : "<<y<<endl;
#define deb3(x,y,z) cout<<#x<<" : "<<x<<"\t"<<#y<<" : "<<y<<"\t"<<#z<<" : "<<z<<endl;
#define deba(a,n) for(ll i=0;i<n;++i) {  cout<<a[i]<<" "; };cout<<"\n"

#define MOD 1000000007
#define INF LONG_LONG_MAX
#define MINF LONG_LONG_MIN




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


}





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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef set<ll> si;
typedef map<ll, ll> mii;
#define hell 1000000007
#define MAX 1000000000
#define max_int 1000000
#define F first
#define re 15000000
#define S second
#define pb push_back
#define all(a)  (a).begin(),(a).end()
#define rep(i,a,b) for(ll i = a;i<b;i++)
#define pi 3.1415926536
#define r0 return 0;
 
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
 
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
 
    int n,a,b;
  	cin>>n>>a>>b;
  	cout<<min(n*a,b);
    
}


Compiler output:
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |  
      | ^
a.cc:26:1: error: extended character   is not valid in an identifier
   26 |  
      | ^
a.cc:29:1: error: extended character   is not valid in an identifier
   29 |  
      | ^
a.cc:30:1: error: extended character   is not valid in an identifier
   30 |     int n,a,b;
      | ^
a.cc:20:1: error: '\U000000a0' does not name a type
   20 |  
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define lli long long int
#define ulli unsigned long long int
#define ld long double
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define loop(i,a,b) for(lli i=a;i<b;i++)
#define initialize(array,size,value) for(lli i=0;i<size;i++) array[i]=value
#define couta(array,size) for(lli i=0;i<size;i++) cout<<array[i]<<" "
#define vl vector<lli>
#define vp vector< pair <lli,lli> >
#define sl set<lli>
#define msp multiset < pair < long long , long long > > S;
#define pll pair<lli, lli>
#define mll map<lli, lli>            //for( map<lli, lli>::iterator i=temp.begin();i!=temp.end();i++)cout<<i->fi<<" "<<i->se<<endl;
#define mvl map<lli, vl>
#define umll unordered_map<lli, lli>
#define vt vector<pair<lli, pll >  >
#define vf vector<pair<pll,pll > >
#define qu queue<lli>
#define pq priority_queue<lli>
#define dq deque <lli>
#define ptr vector<lli>::iterator
#define bs(array,x) binary_search(array.begin(),array.end(),x) // also valid for set and multiset
#define lb(array,x) lower_bound(array.begin(),array.end(),x)
#define ub(array,x) upper_bound(array.begin(),array.end(),x)
#define nobw(array,i,j) upper_bound(array.begin(), array.end(), j)-lower_bound(array.begin(), array.end(), i) //number of numbers between i & j
#define vc clear()
#define endl '\n'
#define sp system("pause");
#define INF 9223372036854775807
#define MINF -9223372036854775808
typedef tree<lli,null_type,less<lli>,rb_tree_tag,
tree_order_statistics_node_update> indexed_set;
//string binary = bitset<32>(n).to_string();  
int main() {
	ios::sync_with_stdio(0);
    cin.tie(0);
    lli n,a,b;
    cin>>n>>a>>b;
    cout<<min(b,n*a)
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:21: error: expected ';' before 'return'
   46 |     cout<<min(b,n*a)
      |                     ^
      |                     ;
   47 |         return 0;
      |         ~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <algorithm>

#define REP(i,n) for(ll i = 0;i < n;++i)
#define PB(s) push_back(s)
#define ST(n) sort(n.begin(),n.end())

using namespace std;
typedef long long ll;

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



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

#include <bits/stdc++.h> //JuniorMonster a.k.a Sho10
#define ll long long
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#define all(a) (a).begin(), (a).end()
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define sz size
#define f first
#define s second
#define pb push_back
#define er erase
#define in insert
#define mp make_pair
#define pi pair
#define rc(s) return cout<<s,0
#define mod 1000000007
#define PI 3.14159265359
#define CODE_START  ios_base::sync_with_stdio();cin.tie();cout.tie();
using namespace std;
ll n,a,b;
int32_t main(){
CODE_START;
cin>>n;
cin>>a;
cin>>b;
cout<<min(n*a,b)
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:26:17: error: expected ';' before '}' token
   26 | cout<<min(n*a,b)
      |                 ^
      |                 ;
   27 | }
      | ~
Language: C++

#include<bits/stdc++.h>
#define int long long
#define P pair<int,int>
#define PP pair<P,int>
#define F first
#define S second
#define f(i,n) for(int i=0;i<(n);i++)
#define INF LLONG_MAX/3
#define eps LDBL_EPSILON
#define mod (int)(1000000007)
#define pie 3.141592653589793238462643383279
#define Bpri priority_queue
#define Spri priority_queue<P,vector<P>,greater<P>>
using namespace std;
signed main(){
	int a,b,c;
	cin>>a>>b>>c;
	cout<<min(a*b,c)<<ebdl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: 'ebdl' was not declared in this scope
   18 |         cout<<min(a*b,c)<<ebdl;
      |                           ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<utility>

#define lli long long
#define all(i) i.begin(),i.end()
#define rall(i) i.rbegin(),i.rend()
#define rep0(i,j) for(int i=0;i<j;i++)
#define rep1(i,j) for(int i=1;i<=j;i++)
#define rep0d(i,j) for(int i=j-1;i>=0;i--)
#define MAX 1000000007
int a[2001][2001];
using namespace std;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: expected ';' before '}' token
   21 | cout << min(n*a,b)
      |                   ^
      |                   ;
   22 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+201C>%d %d %d<U+201D>,&n,&a,&b);
      |       ^~~~~~~~
main.c:5:8: error: expected expression before '%' token
    5 | scanf(“%d %d %d”,&n,&a,&b);
      |        ^
main.c:5:16: error: stray '\342' in program
    5 | scanf(<U+201C>%d %d %d<U+201D>,&n,&a,&b);
      |                       ^~~~~~~~
main.c:10:8: error: stray '\342' in program
   10 | printf(<U+201C>%d<U+201D>,ans);
      |        ^~~~~~~~
main.c:10:9: error: expected expression before '%' token
   10 | printf(“%d”,ans);
      |         ^
main.c:10:11: error: stray '\342' in program
   10 | printf(<U+201C>%d<U+201D>,ans);
      |                  ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define show(x) cout<<x<<'\n'
#define showh(x) cout<<x<<' '
#define go(i,a,n) for(ll i=a;i<n;i++)
#define gor(i,a,n) for(ll i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define mod 1000000007
bool prime[100001];
bool ispoweroftwo(ll x)
{
    return x && !(x & (x-1));
}
ll xorcal(ll n)
{
    if(n%4==0)
        return n;
    if(n%4==1)
        return 1;
    if(n%4==2)
        return n+1;
    if(n%4==3)
        return 0;
}
void sieve(ll n)
{
    memset(prime,true,sizeof(prime));
    prime[0]=false;
    prime[1]=false;
    for(ll i=2;i*i<=n;i++)
    {
        if(prime[i]==true)
        {
            for(ll j=i*i;j<=n;j+=i)
            {
                prime[j]=false;
            }
        }
    }
    show(prime[89]);
}
bool isprime(ll n)
{
    if (n<=1) return false;
    if (n<=3) return true;

    if(n%2==0 or n%3==0) return false;

    for(ll i=5;i*i<=n;i+=6)
    {
        if(n%i==0 or n%(i+2)==0) return false;
    }
    return true;
}

ll modinverse(ll a,ll m)
{
    ll m0 = m;
    ll y = 0, x = 1;

    if (m == 1)
      return 0;

    while (a > 1)
    {
        ll q = a / m;
        ll t = m;

        m = a % m; a = t;
        t = y;

        y = x - q * y;
        x = t;
    }

    if (x < 0)
       x += m0;

    return x;
}

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

ll power(ll A, ll B)
{
    if (A == 0)
        return 0;
    if (B == 0)
        return 1;

    ll y;
    if (B % 2 == 0) {
        y = power(A, B / 2);
        y = (y * y) % mod;
    }

    else {
        y = A % mod;
        y = (y * power(A, B - 1) % mod) % mod;
    }

    return (ll)((y + mod) % mod);
}
int main()
{
    ios_base::sync_with_stdio(false);
    ll a,b,n;
    cin>>a>>b>>n;
    show(min(a*b),n);
    return 0;
}


Compiler output:
a.cc:118:20: error: macro "show" passed 2 arguments, but takes just 1
  118 |     show(min(a*b),n);
      |                    ^
a.cc:4:9: note: macro "show" defined here
    4 | #define show(x) cout<<x<<'\n'
      |         ^~~~
a.cc: In function 'int main()':
a.cc:118:5: error: 'show' was not declared in this scope
  118 |     show(min(a*b),n);
      |     ^~~~
a.cc: In function 'long long int xorcal(long long int)':
a.cc:26:1: warning: control reaches end of non-void function [-Wreturn-type]
   26 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int n, a, b;
cin >> n >> a >> b;
cout << min(n+a, b);

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> n >> a >> b;
      | ^~~
a.cc:5:1: error: 'cout' does not name a type
    5 | cout << min(n+a, b);
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define endl ("\n")
using namespace std;

#define deb(x) cout << (#x) << " -> " << (x) << endl;
#define mod (1000000007)

int main()
{
    ios_base::sync_with_stdio(false);
    cout.tie(0);
    cout << fixed;
    cout.precision(10);
    // Those who cannot acknowledge themselves, will invariably fail

    int n;
    cin >> n >> a >> b;
    cout << n*a + b;
    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll n, a, b, ans;
      |   ^~
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++


/*Hey, What's up?*/

#include<bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
string s;
int main()
{
    fastio;
    long long a=0,b=0,c,d,e,f=0,l,g,m,n,k,i,j,t,p,q;
    cin>>n>>a>>b;
    if(a>b)swap(a,b);
    cout<<n*a<<'\n'
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected ';' before 'return'
   15 |     cout<<n*a<<'\n'
      |                    ^
      |                    ;
   16 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long   signed int LL;
typedef long long unsigned int LU;
#define incID(i, l, r) for(LL i = (l)    ; i <  (r); ++i)
#define incII(i, l, r) for(LL i = (l)    ; i <= (r); ++i)
#define decID(i, l, r) for(LL i = (r) - 1; i >= (l); --i)
#define decII(i, l, r) for(LL i = (r)    ; i >= (l); --i)
#define inc(i, n)  incID(i, 0, n)
#define inc1(i, n) incII(i, 1, n)
#define dec(i, n)  decID(i, 0, n)
#define dec1(i, n) decII(i, 1, n)
#define inID(v, l, r) ((l) <= (v) && (v) <  (r))
#define inII(v, l, r) ((l) <= (v) && (v) <= (r))
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define FI first
#define SE second
#define  ALL(v)  v.begin(),  v.end()
#define RALL(v) v.rbegin(), v.rend()
template<typename T> bool setmin  (T & a, T b) { if(b <  a) { a = b; return true; } else { return false; } }
template<typename T> bool setmax  (T & a, T b) { if(b >  a) { a = b; return true; } else { return false; } }
template<typename T> bool setmineq(T & a, T b) { if(b <= a) { a = b; return true; } else { return false; } }
template<typename T> bool setmaxeq(T & a, T b) { if(b >= a) { a = b; return true; } else { return false; } }
LL mo(LL a, LL b) { assert(b > 0); a %= b; if(a < 0) { a += b; } return a; }
LL fl(LL a, LL b) { assert(b > 0); return (a > 0 ? a / b : (a - b + 1) / b); }
LL ce(LL a, LL b) { assert(b > 0); return (a < 0 ? a / b : (a + b - 1) / b); }
template<typename T> T gcd(T a, T b) { return (b == 0 ? a : gcd(b, a % b)); }
template<typename T> T lcm(T a, T b) { return a / gcd(a, b) * b; }
#define bit(b, i) (((b) >> (i)) & 1)
#define BC __builtin_popcountll
#define SC static_cast
#define SI(v) SC<int>(v.size())
#define SL(v) SC<LL >(v.size())
#define RF(e, v) for(auto & e: v)
#define ef else if
#define UR assert(false)

// ---- ----

int a, b;

int main() {
	cin >> a >> b;
	
	cout << min(a * n, b) << endl;
	
	return 0;
}


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

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

int main(){
  int N,D;
  cin >> N >> D;
  
  vector<vector<int>> matrix(N, vector<int>(D));
  for (int i=0; i<N; i++){
    for (int j=0; j<D; j++){
      cin >> matrix.at(i).at(j)
    }
  }
  
  int ans = 0;
  
  int distance_squared = 0;
  for (int i=0; i<N-1; i++){
    for (int j=i+1;j<N; j++){
      for(int k=0;k<D;k++){
        distance_squared +=  pow((matrix.at(i).at(k) - matrix.at(j).at(k)),2);
      }
      for(int l=1; l<130; l++){
        if(distance_squared  == l*l){
          ans++;
        }
        break;
      }
      distance_squared  = 0;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ';' before '}' token
   11 |       cin >> matrix.at(i).at(j)
      |                                ^
      |                                ;
   12 |     }
      |     ~