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

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<random>
#include<ctime>
#include<cstdlib>
#include<unordered_map>
#define int long long
#define P pair<int,int>//cost to
using namespace std;

int a[1000];
vector<P>b[1000];
int c[1000][1000];
vector<int>d[1000];
int e;
int f[1000];//入ってくる辺の数をcount
signed main() {
	int n, m; cin >> n >> m;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	for (int i = 0; i < m; i++) {
		int x, y, z; cin >> x >> y >> z; x--; y--;
		b[x].push_back({ z,y });
	}
	memset(c, 0x3f, sizeof(c));
	for (int i = 0; i < n; i++) {
		c[i][i] = 0;
		priority_queue<P, vector<P>, greater<P>>Q;
		Q.push({ 0,i });
		while (Q.size()) {
			P t = Q.top(); Q.pop();
			if (c[i][t.second] < t.first)continue;
			for (P k : b[t.second]) {
				if (c[i][k.second] > c[i][t.second] + k.first) {
					c[i][k.second] = c[i][t.second] + k.first;
					Q.push({ c[i][k.second], k.second });
				}
			}
		}
	}
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < n; j++) {
			if (i != j&&c[i][j] < 1061109567) {
				f[j]++;
			}
		}
	}
	for (int i = 0; i < n; i++) {
		c[i][i] = 1061109567;
	}
	int sum = n - 1;//残っている数
	d[0].push_back(0);
	while (sum) {
		for (int i = 0; i < n; i++) {
			if (c[d[e][0]][i] < 1061109567) {
				if (f[i] == 0) {
					if (d[e + 1].size() == 0 || (d[e + 1].size() == 1 && d[e + 1][0] != i)) {
						d[e + 1].push_back(i);
						sum--;
					}
				}
			}
			if (d[e].size() == 2) {
				if (c[d[e][1]][i] < 1061109567) {
					if (f[i] == 0) {
						if (d[e + 1].size() == 0 || (d[e + 1].size() == 1 && d[e + 1][0] != i)) {
							d[e + 1].push_back(i);
							sum--;
						}
					}
				}
			}
		}
		for (int i = 0; i < n; i++) {
			if (c[d[e + 1][0]][i] < 1061109567) {
				f[i]--;
			}
		}
		if (d[e + 1].size() == 2) {
			for (int i = 0; i < n; i++) {
				if (c[d[e + 1][1]][i] < 1061109567) {
					f[i]--;
				}
			}
		}
		e++;
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'memset' was not declared in this scope
   36 |         memset(c, 0x3f, sizeof(c));
      |         ^~~~~~
a.cc:16:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   15 | #include<cstdlib>
  +++ |+#include <cstring>
   16 | #include<unordered_map>
Language: Java


public class Atcorder {

	public int Answer(int N,int A,int B){
		
		int x = 0;
		int one = N * A;
		if(one >= B){
		x = B;
		}else{
			x = one;
		}
		
		return x;
	
	}
}


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

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<random>
#include<ctime>
#include<cstdlib>
#include<unordered_map>
#define int long long
#define P pair<int,int>//cost to
using namespace std;

int a[1000];
vector<P>b[1000];
int c[1000][1000];
vector<int>d[1000];
int e;
int f[1000];//入ってくる辺の数をcount
signed main() {
	int n, m; cin >> n >> m;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	for (int i = 0; i < m; i++) {
		int x, y, z; cin >> x >> y >> z; x--; y--;
		b[x].push_back({ z,y });
	}
	memset(c, 0x3f, sizeof(c));
	for (int i = 0; i < n; i++) {
		c[i][i] = 0;
		priority_queue<P, vector<P>, greater<P>>Q;
		Q.push({ 0,i });
		while (Q.size()) {
			P t = Q.top(); Q.pop();
			if (c[i][t.second] < t.first)continue;
			for (P k : b[t.second]) {
				if (c[i][k.second] > c[i][t.second] + k.first) {
					c[i][k.second] = c[i][t.second] + k.first;
					Q.push({ c[i][k.second], k.second });
				}
			}
		}
	}
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < n; j++) {
			if (i != j&&c[i][j] < 1061109567) {
				f[j]++;
			}
		}
	}
	for (int i = 0; i < n; i++) {
		c[i][i] = 1061109567;
	}
	int sum = n - 1;//残っている数
	d[0].push_back(0);
	while (sum) {
		for (int i = 0; i < n; i++) {
			if (c[d[e][0]][i] < 1061109567) {
				if (f[i] == 0) {
					if (d[e+1].size()==0||(d[e+1].size()==1&&d[e+1][0]!=i)) {
						d[e + 1].push_back(i);
						sum--;
					}
				}
			}
			if (d[e].size() == 2) {
				if (c[d[e][1]][i] < 1061109567) {
					if (f[i] == 0) {
						if (d[e + 1].size() == 0 || (d[e + 1].size() == 1 && d[e + 1][0] != i)) {
							d[e + 1].push_back(i);
							sum--;
						}
					}
				}
			}
		}
		for (int i = 0; i < n; i++) {
			if (c[d[e + 1][0]][i] < 1061109567) {
				f[i]--;
			}
		}
		if (d[e + 1].size() == 2) {
			for (int i = 0; i < n; i++) {
				if (c[d[e + 1][1]][i] < 1061109567) {
					f[i]--;
				}
			}
		}
		e++;
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'memset' was not declared in this scope
   36 |         memset(c, 0x3f, sizeof(c));
      |         ^~~~~~
a.cc:16:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   15 | #include<cstdlib>
  +++ |+#include <cstring>
   16 | #include<unordered_map>
Language: C++

#include<bits/stdc++.h>
int main(){
  long long int 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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   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:5:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 |   cout<<min(N*A,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:5:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<min(N*A,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: Java

import java.util.Scanner;
public class Main{
	public static void main(String [] args) { 
　　　　Scanner sc = new Scanner(System.in);
 	      int n = sc.next();
	      int  a  = sc.next();
	       int b = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
4 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String [] args) { 
　　　　Scanner sc = new Scanner(System.in);
 	      int n = sc.next();
	       int  a  = sc.next();
	       int b = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
4 errors
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String [] args) { 
　　　　Scanner sc = new Scanner(System.in);
 	      int n = sc.next();
	       int  a  = sc.next();
	       int b = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
4 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String[] args) { 
　　　　Scanner sc = new Scanner(System.in);
 	      int n = sc.next();
	       int  a  = sc.next();
	       int b = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
4 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String[] args) { 
　　　　Scanner sc = new Scanner(System.in);
 		int n  = sc.next();
	       int  a  = sc.next();
	      int b  = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
4 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String[] args) { 
　　　　Scanner sc = new Scanner(System.in);
 		int n = = sc.next();
	       int  a = = sc.next();
	      int b = = sc.next();
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
 ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
  ^
Main.java:4: error: illegal character: '\u3000'
????Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: illegal start of expression
 		int n = = sc.next();
 		        ^
Main.java:6: error: illegal start of expression
	       int  a = = sc.next();
	                ^
Main.java:7: error: illegal start of expression
	      int b = = sc.next();
	              ^
7 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String[] args) { 
 		String n = args[0]; 
		String a = args[1];  
		String b = args[2];
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:2: error: class test is public, should be declared in a file named test.java
public class test{
       ^
Main.java:7: error: bad operand types for binary operator '*'
		if (n * a > b) { 
		      ^
  first type:  String
  second type: String
Main.java:10: error: bad operand types for binary operator '*'
			System.out.println(n * a);
			                     ^
  first type:  String
  second type: String
3 errors
Language: Java

import java.util.Scanner;
public class test{
	public static void main(String[] args) { 
 		int n = args[0]; 
		int a = args[1];  
		int b = args[2];
		if (n * a > b) { 
			System.out.println(b);		
             } else {
			System.out.println(n * a);
		}
	}
}


Compiler output:
Main.java:2: error: class test is public, should be declared in a file named test.java
public class test{
       ^
Main.java:4: error: incompatible types: String cannot be converted to int
 		int n = args[0]; 
 		            ^
Main.java:5: error: incompatible types: String cannot be converted to int
		int a = args[1];  
		            ^
Main.java:6: error: incompatible types: String cannot be converted to int
		int b = args[2];
		            ^
4 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {

　　　　// 時間
 		int n = args[0]; 

　　　　// ブラン２
		int a = args[1];  
                
                // ブラン１
		int b = args[2]; 
 
　　　　// 判断
		if (n * a > b) { 
			System.out.println(b);		
             } else {

			System.out.println(n * a);
		}

	}
}


Compiler output:
Main.java:5: error: illegal character: '\u3000'
????// ??
^
Main.java:5: error: illegal character: '\u3000'
????// ??
 ^
Main.java:5: error: illegal character: '\u3000'
????// ??
  ^
Main.java:5: error: illegal character: '\u3000'
????// ??
   ^
Main.java:8: error: illegal character: '\u3000'
????// ????
^
Main.java:8: error: illegal character: '\u3000'
????// ????
 ^
Main.java:8: error: illegal character: '\u3000'
????// ????
  ^
Main.java:8: error: illegal character: '\u3000'
????// ????
   ^
Main.java:14: error: illegal character: '\u3000'
????// ??
^
Main.java:14: error: illegal character: '\u3000'
????// ??
 ^
Main.java:14: error: illegal character: '\u3000'
????// ??
  ^
Main.java:14: error: illegal character: '\u3000'
????// ??
   ^
12 errors
Language: Java


import java.util.Scanner;

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

		int n = sc.nextInt();

		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		int b = sc.nextInt();
			
		int plan1 = n * a;
		int plan2 = b;
		int plan;
		
		if(plan1<plan2){
			plan = plan1;
		}else{
			plan = plan2;
		}		
		System.out.println(plan);
				

	}
}

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

public  class test{

   public static void main(String args[]){
       String stl = aggs[0];
       Integer mony = 0;
       Integer A = 50;
       Integer B = 100;

        if("T".eques(stl)){
                mony = 50 * aggs[1];
        }
       else{
              mony = B;
        }
     System.out.println(String.valuefo(mony))       
   }
}

Compiler output:
Main.java:15: error: ';' expected
     System.out.println(String.valuefo(mony))       
                                             ^
1 error
Language: Java

package practice;

import java.util.Scanner;

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

		int n = sc.nextInt();

		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		int b = sc.nextInt();

		int plan1 = n * a;
		int plan2 = b;
		int plan;
		
		if(plan1<plan2){
			plan = plan1;
		}else{
			plan = plan2;
		}
		System.out.println(plan);
				

	}
}

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

package practice;

import java.util.Scanner;

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

		int n = sc.nextInt();

		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		int b = sc.nextInt();

		int plan1 = n * a;
		int plan2 = b;
		int plan;
		
		if(plan1<plan2){
			plan = plan1;
		}else{
			plan = plan2;
		}
		System.out.println(plan);
				

	}
}

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

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

int main() {
	int n, a, b;
  	scanf("%d %d %d", &n, &a, &b);
  	int res = min(b, a * n);
  	printf("%d\n", res);
  	return 0; 
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |         int res = min(b, a * 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 n, a, b;
int main() {
	std::cin>>n>>a>>b;
	std::cout<<min(n*a, b);
}


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

#including <iostream>

using namespace std;

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

    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including <iostream>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: 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 | #including <iostream>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << n * a;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << b;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N>>A>>B;
      |   ^~~
a.cc:8:11: error: 'cout' was not declared in this scope
    8 |   if(X<=B)cout<<X;
      |           ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<B;
      |        ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <queue>
#include <vector>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define PA pair<int,int>
#define PB push_back
#define PQ priority_queue<int>
#define PGQ priority_queue<int,vector<int>,greater<int> >
#define VE vector<int>
#define MOD 10000
#define INF 1000000007
using namespace std;
//
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin>>N;
  cout<<min(B,A*N)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'B' was not declared in this scope
   22 |   cout<<min(B,A*N)<<endl;
      |             ^
a.cc:22:15: error: 'A' was not declared in this scope
   22 |   cout<<min(B,A*N)<<endl;
      |               ^
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
scnaf("%d%d%d",a,b,c);
int d=a*b;

if(d>c)
printf("%d",d);
else
printf("%d",c);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 | scnaf("%d%d%d",a,b,c);
      | ^~~~~
      | scanf
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

    int a,b,n;

    cin >> n>>a>>b;

    cout << min(n*a,b)<<endl;

    return 0;
}
~
~
~

Compiler output:
a.cc:16:1: error: expected class-name before '~' token
   16 | ~
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n,a,b;
  cin >> n >> a >> b;
  cout << (a*n < b) ? a*n : b << endl;
}

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

#include<iostream>
using namespace std;

int main(){
  int n , a , b;
  cin >> n >> a >> b;
  int res = n * a;
  cout << (res <= b) ? res : b << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    8 |   cout << (res <= b) ? res : b << "\n";
      |                              ~ ^~ ~~~~
      |                              |    |
      |                              int  const char [2]
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n , a , b;
  cin >> n >> a >> b;
  int res = n * a;
  cout << (res <= b) ? res : b << \n;
}

Compiler output:
a.cc:8:35: error: stray '\' in program
    8 |   cout << (res <= b) ? res : b << \n;
      |                                   ^
Language: C++

#include <iostream>

using namespace std;
int main() {
    int N,A,B;
    cin >> N >> A >> B;
    cout << (N*A < B)? N*A:B << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    7 |     cout << (N*A < B)? N*A:B << "\n";
      |                            ~ ^~ ~~~~
      |                            |    |
      |                            int  const char [2]
Language: C

#include stdio.h
int main(vid){
int N,A,B;
scanf("%2d %3d %4d", N,A,B);
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:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
main.c: In function 'main':
main.c:2:5: error: type of 'vid' defaults to 'int' [-Wimplicit-int]
    2 | int main(vid){
      |     ^~~~
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%2d %3d %4d", N,A,B);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include stdio.h
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%2d %3d %4d", N,A,B);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d", N *A);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | printf("%d", B);
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 | printf("%d", B);
      | ^~~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include stdio.h
int main{
int N,A,B;
scanf("%2d %3d %4d", N,A,B);
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:1:1: error: unknown type name 'include'
    1 | include stdio.h
      | ^~~~~~~
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | include stdio.h
      |              ^
Language: C++

#include <iostream>
#include <fstream>
#include <string> 
#include <cmath>  
#include <cstdlib>
#include <ctime>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <set>
#include <functional>
 
#define FOR(i, m, n) for(int i = (m);i < (n);i++)
#define REP(i,n) for(int i = 0; i < int(n); i++)
 
using namespace std;
using ll = long long;
 
int main() {
	int N, A, B;
	cin >> N >> A >> B;
	cout << min(N*A, B) << endl;
	
	return 0;
}

Compiler output:
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |  
      | ^
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |  
      | ^
a.cc:19:1: error: extended character   is not valid in an identifier
   19 |  
      | ^
a.cc:13:1: error: '\U000000a0' does not name a type
   13 |  
      | ^
a.cc:19:1: error: '\U000000a0' does not name a type
   19 |  
      | ^
Language: C++

#include <iostream>
#include <fstream>
#include <string> 
#include <cmath>  
#include <cstdlib>
#include <ctime>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <set>
#include <functional>
 
#define FOR(i, m, n) for(int i = (m);i < (n);i++)
#define REP(i,n) for(int i = 0; i < int(n); i++)
 
using namespace std;
using ll = long long;
 
int main() {
	int N, A, B;
	cin >> N >> A >> B;
	cout << min(N*A, B) << endl;;
	
	return 0;
}

Compiler output:
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |  
      | ^
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |  
      | ^
a.cc:19:1: error: extended character   is not valid in an identifier
   19 |  
      | ^
a.cc:13:1: error: '\U000000a0' does not name a type
   13 |  
      | ^
a.cc:19:1: error: '\U000000a0' does not name a type
   19 |  
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: found ':' in nested-name-specifier, expected '::'
    9 |         t1=a*b:
      |               ^
      |               ::
a.cc:9:14: error: 'b' is not a class, namespace, or enumeration
    9 |         t1=a*b:
      |              ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: found ':' in nested-name-specifier, expected '::'
    9 |         t1=a*b:
      |               ^
      |               ::
a.cc:9:14: error: 'b' is not a class, namespace, or enumeration
    9 |         t1=a*b:
      |              ^
Language: C++

# include < cstdio >
int N;
int main ()
{
scanf ("%d " ,&N );
int t =N , c =0;
while (t >0) c += t %10 , t /=10;
if ( N % c ==0) puts ("Yes");
else puts ("No");
}

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

#include<cstdio>
main(){int N,A,B;scanf("%d%d%d",&N,&A,&B);puts(N*A>B?B:N*A);}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int N,A,B;scanf("%d%d%d",&N,&A,&B);puts(N*A>B?B:N*A);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:53: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    2 | main(){int N,A,B;scanf("%d%d%d",&N,&A,&B);puts(N*A>B?B:N*A);}
      |                                                ~~~~~^~~~~~
      |                                                     |
      |                                                     int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include<cstdio>
main(){int N,A,B;scanf("%d%d%d",%N,&A,&B);puts(N*A>B?B:N*A);}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int N,A,B;scanf("%d%d%d",%N,&A,&B);puts(N*A>B?B:N*A);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:33: error: expected primary-expression before '%' token
    2 | main(){int N,A,B;scanf("%d%d%d",%N,&A,&B);puts(N*A>B?B:N*A);}
      |                                 ^
a.cc:2:53: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    2 | main(){int N,A,B;scanf("%d%d%d",%N,&A,&B);puts(N*A>B?B:N*A);}
      |                                                ~~~~~^~~~~~
      |                                                     |
      |                                                     int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  double float a,b,c,x;
  cin>>a>>b>>c;
  x=a*b;
  if(c<=x)
    cout<<c;
  else
    cout<<x;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: two or more data types in declaration of 'a'
    5 |   double float a,b,c,x;
      |   ^~~~~~
a.cc:5:3: error: two or more data types in declaration of 'b'
a.cc:5:3: error: two or more data types in declaration of 'c'
a.cc:5:3: error: two or more data types in declaration of 'x'
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |              ^
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x=a*b;
      |   ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define all(c) c.begin(),c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x,y) x=min(x,y)
#define chmax(x,y) x=max(x,y)
using namespace std;
template<class S,class T> ostream& operator<<(ostream& o,const pair<S,T> &p){return o<<"("<<p.fs<<","<<p.sc<<")";}
template<class T> ostream& operator<<(ostream& o,const vector<T> &vc){o<<"sz = "<<vc.size()<<endl<<"[";for(const T& v:vc) o<<v<<",";o<<"]";return o;}
int main(){
	int N,A,B;
	cin>>N>>A>>B;
	cout<<min(B,(N+A-1)/A*T);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: 'T' was not declared in this scope
   17 |         cout<<min(B,(N+A-1)/A*T);
      |                               ^
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:5:9: error: expected expression before '%' token
    5 |   scanf(%d %d %d,&n,&a,&b);
      |         ^
main.c:7:12: error: expected expression before '%' token
    7 |     printf(%d,n*a);
      |            ^
main.c:9:12: error: expected expression before '%' token
    9 |     printf(%d,b);
      |            ^
Language: C++

#include<iostream>
using namespace std

int main(){
	int a,b,c;
	while(cin>>a>>b>>c){
		cout<<(a*b<c?a*b:c)<<"\n";
	}
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<cmath>
#include<functional>
#include<vector>
#include<queue>
using namespace std;
#define f(i,n) for(int i=0;i<(int)n;i++)
#define MOD 1000000009

int main(void){
	int k, s;
	int n, m;
	int x, y;
	bool z = true;
	int ans = 0;


	scanf("%d %d %d", &x,&y,&k);
	
	s = x*y;
	if (s < k)z = true;
	else z = false;

	printf("%d\n", ans);

	printf("%s\n", a);

	if (z)printf("%d\n",s);
	else printf("%d\n",k);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:24: error: 'a' was not declared in this scope
   29 |         printf("%s\n", a);
      |                        ^
Language: C++

#include <iostream>

int main(void){
	int time=0,tanka=0,houdai=0;

	cin >> time >> tanka >> houdai;

	if(time*tanka > houdai)
		cout << houdai;
	else
		cout << time*tanka;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> time >> tanka >> houdai;
      |         ^~~
      |         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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << houdai;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << time*tanka;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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


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

#include <stdio.h>
#include <math.h>
 
long main(void){
	long n;
	int a,b,c,d,e,f,g,h;
	
	scanf("%ld",&n);
	
	if(1<= n && n <=100000000){
		
		a = n/10000000;
		b = (n-a*10000000)/1000000;
		c = (n-a*10000000-b*1000000)/100000;
		d = (n-a*10000000-b*1000000-c*100000)/10000;
		e = (n-a*10000000-b*1000000-c*100000-d*10000)/1000;
		f = (n-a*10000000-b*1000000-c*100000-d*10000-e*1000)/100;
		g = n%10;
		
		h = a+b+c+d+e+f+g;
		
		if(n%h == 0){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
		
	}
	return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
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:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: Java

import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;
import java.util.Comparator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.HashMap;

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


Compiler output:
Main.java:13: error: no suitable constructor found for Scanner(no arguments)
		Scanner	sc = new Scanner();
		       	     ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

    // inputに入力データ全体が入る
    function Main(input) {
    	// 1行目がinput[0], 2行目がinput[1], …に入る
    	input = input.split("\n");
      tmp = input[0].split(" ");
      
    	//文字列から10進数に変換するときはparseIntを使います
    	var N = parseInt(tmp[0], 10);
    	var A = parseInt(tmp[1], 10);
    	var B = parseInt(tmp[2], 10);

      var CalcA = A * N;

      if( CalcA >= B){
      	console.log('%d',CalcA);
      }else{
        console.log('%d',B);
      }

    	//出力
    	//console.log('%d %s',a+b+c,s);
    }

    Main(require("fs").readFileSync("/dev/stdin", "utf8"));



Compiler output:
a.cc:15:21: warning: multi-character character constant [-Wmultichar]
   15 |         console.log('%d',CalcA);
      |                     ^~~~
a.cc:17:21: warning: multi-character character constant [-Wmultichar]
   17 |         console.log('%d',B);
      |                     ^~~~
a.cc:2:5: error: 'function' does not name a type; did you mean 'union'?
    2 |     function Main(input) {
      |     ^~~~~~~~
      |     union
a.cc:24:9: error: expected constructor, destructor, or type conversion before '(' token
   24 |     Main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |         ^
Language: C++

/*
  ID: oodt
  PROG:
  LANG:C++
*/
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<stack>
#include<set>

using namespace std;

const int maxx=10005;
int n,m,k;
int a[maxx];
int ans = 0,cnt = 0,pos = 0;
int l = 0,r = 0;

int main()
{
#ifdef LOCAL
//    freopen("","r",stdin);
#endif
    scanf("%d%d%d",&a,&b,&c);
    printf("%d\n",min(a*b,c));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:24: error: 'b' was not declared in this scope
   31 |     scanf("%d%d%d",&a,&b,&c);
      |                        ^
a.cc:31:27: error: 'c' was not declared in this scope
   31 |     scanf("%d%d%d",&a,&b,&c);
      |                           ^
Language: C

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

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

#include <iostream>
#include <string>
#include <algorithm>
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:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:3: error: illegal character: '#'
#include <algorithm>
^
Main.java:9: error: not a statement
  cin >> n >> a >> b;
                ^
Main.java:13: error: not a statement
    cout << n*a << endl;
                ^
Main.java:17: error: not a statement
    cout << b << endl;
              ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: C++

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

int main(){
    int n;
    cin>>n;
    int x=0;
    int val=n;
    while(val!=0){
        x+=val%10;
        val/=10;
    }
    
    cout<(n%x==0 ? "Yes" : "No")<<endl;
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: invalid operands of types 'const char*' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout<(n%x==0 ? "Yes" : "No")<<endl;
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

#define DEBUG(x) cout<<#x<<": "<<x<<endl;
#define DEBUG_VEC(v) cout<<#v<<":";for(int i=0;i<v.size();i++) cout<<" "<<v[i]; cout<<endl

typedef long long ll;
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
const int inf = 1000000001;
const ll INF = 1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
int dx2[8] = { 1,1,0,-1,-1,-1,0,1 }, dy2[8] = { 0,1,1,1,0,-1,-1,-1 };


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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: 't' was not declared in this scope
   29 |   cout<<min(a*t,b)<<endl;
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before ':' token
    6 | printf("%d", a*b):
      |                  ^
      |                  ;
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

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

#define DEBUG(x) cout<<#x<<": "<<x<<endl;
#define DEBUG_VEC(v) cout<<#v<<":";for(int i=0;i<v.size();i++) cout<<" "<<v[i]; cout<<endl

typedef long long ll;
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
const int inf = 1000000001;
const ll INF = 1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
int dx2[8] = { 1,1,0,-1,-1,-1,0,1 }, dy2[8] = { 0,1,1,1,0,-1,-1,-1 };


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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: 't' was not declared in this scope
   29 |   cout<<min(n*t,b)<<endl;
      |               ^
Language: C

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

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

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

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

  if(x<b){
    printf("%d\n",x);
  }else if(x>=b){
    printf("%d\n",b)
  }
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:21: error: expected ';' before '}' token
   13 |     printf("%d\n",b)
      |                     ^
      |                     ;
   14 |   }
      |   ~
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.next();
        int a = sc.next();
        int b = sc.next();
        int price;
        if(n*a < b){
            price = n*a;
        }else{
            price = b;
        }
		System.out.println(price);
	}
}

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
		int n = sc.next();
		               ^
Main.java:6: error: incompatible types: String cannot be converted to int
        int a = sc.next();
                       ^
Main.java:7: error: incompatible types: String cannot be converted to int
        int b = sc.next();
                       ^
3 errors