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

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    String N = sc.next();
    int intN = int.parse(N);
    int sum = 0;

    for(int i = 0; i <= 8; i++){
      sum += intN % 10;
      intN = intN / 10;
      if(intN == 0){
        break;
      }
    }
    String output = null;
    
    if(intN % sum == 0){
      output = "Yes";
    }
    else
    {
      output = "No";
    }
            
    System.out.println(output);
  }
}

Compiler output:
Main.java:9: error: class expected
    int intN = int.parse(N);
                   ^
Main.java:9: error: ';' expected
    int intN = int.parse(N);
                        ^
Main.java:9: error: not a statement
    int intN = int.parse(N);
                         ^
Main.java:9: error: ';' expected
    int intN = int.parse(N);
                          ^
4 errors
Language: C++

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

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

  C = N * A;
  if (C > B) {
    cout << C << endl;
  }
  else (left == right) {
    cout << B << endl;
  }
}

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

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

int main(){
  int t, a, b, pl1, pl2;
  cin >> t >> a >> b;
  
  pl1 = t * a
  pl2 = b
    
  if (pl1 < b){
    cout << pl1 << endl;
  }
  else {
    cout << pl2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'pl2'
    8 |   pl1 = t * a
      |              ^
      |              ;
    9 |   pl2 = b
      |   ~~~         
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

int main(){
  int t, a, b;
  cin >> t >> a >> b;
  
  pl1 = t * a
  pl2 = b
    
  if (pl1 < b){
    cout << pl1 << endl;
  }
  else {
    cout << pl2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'pl1' was not declared in this scope
    8 |   pl1 = t * a
      |   ^~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
a.cc:15:13: error: 'pl2' was not declared in this scope
   15 |     cout << pl2 << endl;
      |             ^~~
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", N*A);
  } else {
    prinf("%d\n", B);
  }
  
  return 0;
}

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

#include<stdio.h>

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

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

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

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

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

x=gets.split(" ")
3.times do |i|
  x[i].to_i
  end
if x[0]*x[1]>x[2]
puts x[2]
else
puts x[0]*x[1]
end

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x=gets.split(" ")
      | ^
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long N, sum, x;
  cin >> N;
  sum = 0;
  x = N;
  while (N > 0) {
    sum += N % 10;
    N / 10 ;
  }
  if (x % sum == 0) {
    cout << "Yes" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<stdlib.h>
#include<vector>
#include<algorithm>
#include<utility>
#include<string>
#include<cstring>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<iterator>
//#include<math.h>

using namespace std;
#define int long long
/*                      */    //#undef int
#define INF 1000000009
#define INFL 1000000000000000018ll
#define mod 1000000007ll
#define pb push_back
#define fi first
#define se second
#define mk(a, b) make_pair(a, b)
typedef pair<int, int> PA;
typedef priority_queue<int> PQ;
typedef priority_queue<PA, vector<PA>, greater<PA> >PQG;

int a, b, c;

signed main()
{
    cin >> a >> b >> c;
    cout << min(a * b, c) << endl;:

    return 0;
}
/*


*/


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

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

int main() {

  int A,B,N;
  cin >> N >> A >> B;

  if(AN > B){
    cout << B << endl;
  }else{
    cout << AN << endl;
  }
    
}

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

#include <isotream>

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

  int plan1 = A * N;
  int plan2 = B;
  if ( plan1 <= plan2 ) std::cout << plan1 << std::endl;
  else std::cout << plan2 << std::endl;

  return 0;
}


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

#include <isotream>

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

  int plan1 = A * N;
  int plan2 = B;
  if ( plan1 <= planB ) std::cout << plan1 << std::endl;
  else std::cout << plan2 << std::endl;

  return 0;
}


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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> N;
      |   ^~~
a.cc:9:3: error: 'cin' does not name a type
    9 |   cin >> A;
      |   ^~~
a.cc:10:3: error: 'cin' does not name a type
   10 |   cin >> B;
      |   ^~~
a.cc:11:4: error: expected unqualified-id before 'if'
   11 |    if ( A * N < B ) {
      |    ^~
a.cc:14:5: error: expected unqualified-id before 'else'
   14 |     else {
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'plan1' was not declared in this scope
    8 |   plan1 = N * A;
      |   ^~~~~
a.cc:9:3: error: 'plan2' was not declared in this scope
    9 |   plan2 = B;
      |   ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'plan1' was not declared in this scope
    8 |   plan1 = N * A;
      |   ^~~~~
a.cc:9:3: error: 'plan2' was not declared in this scope
    9 |   plan2 = B;
      |   ^~~~~
Language: C++

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

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



Compiler output:
a.cc:1:10: 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;

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



Compiler output:
a.cc:1:10: 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;
int main()
{
int n,a,b;
cin>>n>>a>>b;
int sum=a*n;
int s=max(b,sum);
if(b==sum)
s=sum;
cout<<s;
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected '}' at end of input
   12 | return 0;
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bots/stdc++.h>
using namespace std;
int main()
{
int n,a,b;
cin>>n>>a>>b;
int sum=a*n;
int s=max(b,sum);
if(b==sum)
s=sum;
cout<<s;
return 0;
}


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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int n,a,b;
  cin>>n>>a>>b;
  cout<<min([a*n,b])<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ',' before '*' token
    7 |   cout<<min([a*n,b])<<endl;
      |               ^
      |               ,
a.cc:7:15: error: expected identifier before '*' token
a.cc:7:17: error: expected ']' before ',' token
    7 |   cout<<min([a*n,b])<<endl;
      |                 ^
      |                 ]
a.cc: In lambda function:
a.cc:7:17: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:19: error: expected ')' before ']' token
    7 |   cout<<min([a*n,b])<<endl;
      |            ~      ^
      |                   )
Language: C++

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

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


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

n = ARGV[0].to_i
a = ARGV[1].to_i
b = ARGV[2].to_i

if n * a < b
  puts n * a
else
  puts b
end

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = ARGV[0].to_i
      | ^
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #incldue <bits/stdc++.h>
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |   if(a * n <= b) cout << a * n << endl;
      |                  ^~~~
a.cc:8:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:35: error: 'endl' was not declared in this scope
    8 |   if(a * n <= b) cout << a * n << endl;
      |                                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <bits/stdc++.h>
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << b << endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |   else cout << b << endl;
      |                     ^~~~
a.cc:9:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ',' token
    8 |   {cout << N * A <, endl;}
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ',' token
    8 |   {cout << N * A <, endl;}
      |                   ^
Language: C++

#include <map>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <functional>
  
#define mp       make_pair
#define pb       push_back
#define all(x)   (x).begin(),(x).end()
#define rep(i,n) for(int i=0;i<(n);i++)
  
using namespace std;
  
typedef    long long          ll;
typedef    unsigned long long ull;
typedef    vector<bool>       vb;
typedef    vector<int>        vi;
typedef    vector<vb>         vvb;
typedef    vector<vi>         vvi;
typedef    pair<int,int>      pii;
  
const int INF=1<<29;
const double EPS=1e-9;
  
const int dx[]={1,0,-1,0,1,1,-1,-1},dy[]={0,-1,0,1,1,-1,-1,1};
 

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before '{' token
   12 |   else (A*N>B) {
      |               ^~
      |               ;
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <iostream>

typedef long long ll;

const int MAXN = 1e5+7;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     cin>>t>>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:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<min(t*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:14:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
   14 |     cout<<min(t*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:14:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout<<min(t*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: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expression list treated as compound expression in initializer [-fpermissive]
    7 |   int min((A * N),B);
      |                    ^
Language: C++

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

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

}

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

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

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

}

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:6:1: note: in expansion of macro 'll'
    6 | ll n,a,b;
      | ^~
a.cc:3:12: error: expected '}' before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:6:1: note: in expansion of macro 'll'
    6 | ll n,a,b;
      | ^~
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin>>n>>a>>b;
      | ^~~
a.cc:8:9: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 | ll ans =n*a;
      |         ^
      |         yn
a.cc:8:11: error: 'a' was not declared in this scope
    8 | ll ans =n*a;
      |           ^
a.cc:9:15: error: 'a' was not declared in this scope
    9 | ll ans1 = min(a,b);
      |               ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 | ll ans1 = min(a,b);
      |                 ^
a.cc:10:1: error: 'cout' does not name a type
   10 | cout<<ans1;
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

// ABC80-C.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

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


int main()
{
	int n;
	cin >> n;
	auto f = vector<vector<int>>(n);
	auto p = vector<vector<int>>(n);
	for (size_t i = 0; i < n; i++)
	{
		f[i] = vector<int>(10);
		for (size_t j = 0; j < 10; j++)
		{
			cin >> f[i][j];
		}
	}
	for (size_t i = 0; i < n; i++)
	{
		p[i] = vector<int>(11);
		for (size_t j = 0; j < 11; j++)
		{
			cin >> p[i][j];
		}
	}

	int res = INT_MIN;
	// 1 から 2^10-1
	for (size_t b = 1; b < (1<<10); b++)
	{
		int cc = 0;
		for (size_t i = 0; i < n; i++)
		{
			int c = 0;
			// b >> j & 1 はbの2進表記一桁目が1かどうか
			for (size_t j = 0; j < 10; j++) if((b >> j & 1) && f[i][j]) c++;
			cc += p[i][c];
		}
		if (res < cc) res = cc;
	}
	cout << res << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: 'INT_MIN' was not declared in this scope
   32 |         int res = INT_MIN;
      |                   ^~~~~~~
a.cc:6:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    5 | #include <vector>
  +++ |+#include <climits>
    6 | using namespace std;
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |   else cout << N * A
      |                     ^
      |                     ;
    9 | }
      | ~
Language: C++

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

Compiler output:
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |   } else if (n*a<b) {
      |     ^~~~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |   } else {
      |     ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

Compiler output:
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |   } else {
      |     ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

Compiler output:
a.cc:8:3: error: expected unqualified-id before 'else'
    8 | } else {
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

Compiler output:
a.cc:8:3: error: expected unqualified-id before 'else'
    8 | } else {
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main(void) {
  int n, a, b;
  cin >> n >> a >> b;
  int ans;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'cout'
   10 |   ans = min(n*a, b)
      |                    ^
      |                    ;
   11 |     cout << ans << endl;
      |     ~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
Language: C++

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

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

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

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

  if (a <== b) {
    cout << a << endl;
  }
  else if (a >== b) {
    cout << b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '=' token
    9 |   if (a <== b) {
      |           ^
a.cc:12:16: error: expected primary-expression before '=' token
   12 |   else if (a >== b) {
      |                ^
Language: C++

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

  if (a <== b) {
    cout << a << endl;
  }
  else (a >== b) {
    cout << b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '=' token
    9 |   if (a <== b) {
      |           ^
a.cc:12:13: error: expected primary-expression before '=' token
   12 |   else (a >== b) {
      |             ^
Language: C++

#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   std::cout << min(a*n, b);
      |                ^~~
      |                std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a*b>=c){
      cout<<c<<endl;
  }
  else cout<<a*b<<endl；
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'endl\U0000ff1b' was not declared in this scope
    9 |   else cout<<a*b<<endl；
      |                   ^~~~~~
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<<endl;
  }
  else cout<<a*b<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
    9 |   else cout<<a*b<<endl
      |                       ^
      |                       ;
   10 | }
      | ~
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	s=a*b;
	if(s>=c)
	{
		cout<<s<<endl;
	}
	if(s<c)
	{
		cout<<c<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 's' was not declared in this scope
    7 |         s=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"B);
  }
  if((N*A)<B){
  printf("%d\n"N*A);
  }
   

}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ')' before 'B'
    7 |   printf("%d\n"B);
      |         ~      ^
      |                )
main.c:10:16: error: expected ')' before 'N'
   10 |   printf("%d\n"N*A);
      |         ~      ^
      |                )
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"B);
  }
  if(N*A<B){
  printf("%d\n"N*A);
  }  
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ')' before 'B'
    7 |   printf("%d\n"B);
      |         ~      ^
      |                )
main.c:10:16: error: expected ')' before 'N'
   10 |   printf("%d\n"N*A);
      |         ~      ^
      |                )
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'C' was not declared in this scope
   13 |   cout << C << endl;
      |           ^
Language: Java

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


Compiler output:
Main.java:8: error: cannot find symbol
  if(N*A >= B){System.out.orintln(N*A);}
                         ^
  symbol:   method orintln(int)
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:4:8: error: ISO C++ forbids declaration of 'min' with no type [-fpermissive]
    4 | inline min(int a, int b);
      |        ^~~
a.cc:11:8: error: ISO C++ forbids declaration of 'min' with no type [-fpermissive]
   11 | inline min(int a, int b){
      |        ^~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<functional>
#include<fstream>
#include<utility>
#include<bitset>
#include<map>
#include<deque>
#include<cmath>
#include<random>
#include<string.h>
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define rep(N) for (int i = 0; i < N; ++i)
#define Rep(a, b) for (int i = a; i < b; ++i)
#define For(i, N) for (int i = 0; i < N; ++i)
#define all(v) v.begin(), v.end()
#define rev(v) v.rbegin(), v.rend()
#define makei(N) int N; cin >> N;
#define makel(N) ll N; cin >> N;
#define makes(s) string s; cin >> s;
#define maked(d) double d; cin >> d;
#define makev(v, N) vi v(N); rep(N)cin >> v[i];
#define mod 1000000007
#define re return 0

using namespace std;
using ll = long long int;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vector<bool>>;
using vs = vector<string>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using msi = map<string, int>;

template<typename T>
void say(T s) {
	cout << s << "\n";
}

template<typename T>
void say(vector<T> s) {
	auto itr = s.begin();
	cout << *(itr++);
	while (itr != s.end()) {
		cout << " " << *(itr++);
	}
	cout << "\n";
}

int main() {
  int N,A,B;
  say(max(A*T,B));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:13: error: 'T' was not declared in this scope
   57 |   say(max(A*T,B));
      |             ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

  int ret=min(A*T,B);
  cout<< ret<< endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'T' was not declared in this scope
   10 |   int ret=min(A*T,B);
      |                 ^
Language: C++

#include<numeric>
#include<limits>
#include<utility>
#include<queue>
#include<random>
#include<math.h>
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;
	}
	return 0;
}

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

#include <studio.h>
int main()
{
int N;
int A;
int B;
char str1[21];
char str2[101];
char str3[2001];
scanf(“%d”,&str1);
scanf(“%d”,&str2);
scanf(“%d”,&str3);
int pul=N*A;

if(pul>=B){
printf(“%d”,pul);
}
else{
printf(“%d”,B);
}
}


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

#include <studio.h>
int main()
{
int N;
int A;
int B;
char str1[21];
char str2[101];
char str3[2001];
scanf(“%d”,&str1);
scanf(“%d”,&str2);
scanf(“%d”,&str3);
int pul=N*A;

if(pul>=B){
printf(“%d”,pul);
}
else{
printf(“%d”,B);
}
}

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

#include <iostream>
#include<cmath>
using namespace std;
int min(int x,int y)
{
    if(x>y)return y;
    else return x;
}
int main()
{
    int n,a,b;
    cin>>n>>a>>b;
    cout<<min(n*a,b)<<endl;
    return 0;
}

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

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

int main(){
  int N, A, B;
  scanf("%d%d%d", &N, &A, &B);
  printf("%d\n", N*A<B?N*A:B)
}


Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before '}' token
    8 |   printf("%d\n", N*A<B?N*A:B)
      |                              ^
      |                              ;
    9 | }
      | ~
Language: C

#include <cstdio >
int N,C;
int s[100000],t[100000],c[100000]; int sm[200002];
int tt[200002];
int main ()
{
scanf("%d%d",&N,&C); for(int i=0;i<N;i++)
scanf("%d%d%d",&s[i],&t[i],&c[i]); for(int i=1;i<=C;i++)
{
for(int j=0;j<200002;j++)tt[j]=0;
for(int j=0;j<N;j++)if(c[j]==i)tt[s[j]*2-1]++,tt[t[j]*2]--; for(int j=1;j<200002;j++)tt[j]+=tt[j-1];
for(int j=0;j<200002;j++)if(tt[j]>0)sm[j]++;
}
int mx =0;
for(int j=0;j<200002;j++)if(mx<sm[j])mx=sm[j]; printf("%d\n",mx);

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

#include<iostream>
using namespace std; 
 
 
int main()
{
int N,A,B;
cin >> N >> A >> B;
N = N*A;
if(N =< B){printf("%d",N);}
else{printf("%d",B);}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before '<' token
   10 | if(N =< B){printf("%d",N);}
      |       ^
Language: C++

#include<iostream>
using namespace std; 
 
 
int main()
{
int N,A,B;
cin >> N >> A >> B;
if(N*A =< B){printf("%d",N*A);}
else{printf("%d",B);}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before '<' token
    9 | if(N*A =< B){printf("%d",N*A);}
      |         ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// // 整数の入力
		// int a = sc.nextInt();
		// // スペース区切りの整数の入力
		// int b = sc.nextInt();
		// int c = sc.nextInt();
		// // 文字列の入力
		// String s = sc.next();
		// // 出力
    // System.out.println((a+b+c) + " " + s);
    int N = sc.nextInt();
    int A = sc.nextInt();
    int B = sc.nextInt();
    System.out.println(Math.min(A * T, B));
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
    System.out.println(Math.min(A * T, B));
                                    ^
  symbol:   variable T
  location: class Main
1 error
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string.h>
typedef long long ll;

#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef vector<vector<pair<int, int>>> G;
typedef pair<int, int> P;
int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};

int i,j,N,A,B;

int main() {
	cin >> N >> A >> B;
		
	cout << (MAX(N*A,B));
	
	return 0;
}
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string.h>
typedef long long ll;

#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef vector<vector<pair<int, int>>> G;
typedef pair<int, int> P;
int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};

int i,j,N,A,B;

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


Compiler output:
a.cc:46:5: error: redefinition of 'int dx [4]'
   46 | int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};
      |     ^~
a.cc:18:5: note: 'int dx [4]' previously defined here
   18 | int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};
      |     ^~
a.cc:46:25: error: redefinition of 'int dy [4]'
   46 | int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};
      |                         ^~
a.cc:18:25: note: 'int dy [4]' previously defined here
   18 | int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1};
      |                         ^~
a.cc:48:5: error: redefinition of 'int i'
   48 | int i,j,N,A,B;
      |     ^
a.cc:20:5: note: 'int i' previously declared here
   20 | int i,j,N,A,B;
      |     ^
a.cc:48:7: error: redefinition of 'int j'
   48 | int i,j,N,A,B;
      |       ^
a.cc:20:7: note: 'int j' previously declared here
   20 | int i,j,N,A,B;
      |       ^
a.cc:48:9: error: redefinition of 'int N'
   48 | int i,j,N,A,B;
      |         ^
a.cc:20:9: note: 'int N' previously declared here
   20 | int i,j,N,A,B;
      |         ^
a.cc:48:11: error: redefinition of 'int A'
   48 | int i,j,N,A,B;
      |           ^
a.cc:20:11: note: 'int A' previously declared here
   20 | int i,j,N,A,B;
      |           ^
a.cc:48:13: error: redefinition of 'int B'
   48 | int i,j,N,A,B;
      |             ^
a.cc:20:13: note: 'int B' previously declared here
   20 | int i,j,N,A,B;
      |             ^
a.cc:50:5: error: redefinition of 'int main()'
   50 | int main() {
      |     ^~~~
a.cc:22:5: note: 'int main()' previously defined here
   22 | int main() {
      |     ^~~~
Language: Java




import java.util.Scanner;

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

    private void solveA() {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        int result = N * A;
        if (result <= B){
        	System.out.println(result);
        }else{
        	System.out.println(B);
        }

    }

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

import java.util.Scanner;

public class Q1 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int t = sc.nextInt();

		int a = sc.nextInt();

		int b = sc.nextInt();

		int priceA = a * t;

		int priceB = b;

		if (priceA < priceB) {
			System.out.println(priceA);
		} else {
			System.out.println(priceB);
		}

	}

}


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

import java.util.*;
public class Main{
    public static void Main(String[]args){
        Scanner in=new Scanner(System.in);
        int N=in.next();
        int A=in.next();
        int B=in.next();
        int Y=N*A;
        if((Y==B)||(Y>B)){
            System.out.println(B);
        }
        if(Y<B){
            System.out.println(Y);
        }
    }
}

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
        int N=in.next();
                     ^
Main.java:6: error: incompatible types: String cannot be converted to int
        int A=in.next();
                     ^
Main.java:7: error: incompatible types: String cannot be converted to int
        int B=in.next();
                     ^
3 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'if'
    7 | a = 1, n = 1
      |             ^
      |             ;
    8 | if(a * n < b;)
      | ~~           
a.cc:8:14: error: expected primary-expression before ')' token
    8 | if(a * n < b;)
      |              ^
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'n'
    7 |     cin n >> a >> b;
      |        ^~
      |        ;
a.cc:8:35: error: expected ':' before ')' token
    8 |     cout << (n * a < b ? n * a ? b) << endl;
      |                                   ^
      |                                   :
a.cc:8:35: error: expected primary-expression before ')' token
a.cc:8:35: error: expected ':' before ')' token
    8 |     cout << (n * a < b ? n * a ? b) << endl;
      |                                   ^
      |                                   :
a.cc:8:35: error: expected primary-expression before ')' token
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'n'
    7 |     cin n << a << b;
      |        ^~
      |        ;
a.cc:8:35: error: expected ':' before ')' token
    8 |     cout << (n * a < b ? n * a ? b) << endl;
      |                                   ^
      |                                   :
a.cc:8:35: error: expected primary-expression before ')' token
a.cc:8:35: error: expected ':' before ')' token
    8 |     cout << (n * a < b ? n * a ? b) << endl;
      |                                   ^
      |                                   :
a.cc:8:35: error: expected primary-expression before ')' token
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: expected initializer before 'scanf'
    4 |   scanf("%d%d%d",&n,&a,&b);
      |   ^~~~~
a.cc:5:22: error: 'b' was not declared in this scope
    5 |         printf("%d",(b > a * n) ? a * n : b);
      |                      ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	int n,a,b;
	cin>>n>>a>>c;
	if(a*n<=b){
		cout<<a*n<<endl;
	}
	
	else if(a*n>=b){
		cout<<b<<endl;
	}
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  int tmp = 0;
  for (int i = 0; i < s.size(); ++i) tmp += (s[i]-'0');
  cout << ( (tmp%n==0) ? "Yes" : "No" ) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'n' was not declared in this scope
    9 |   cout << ( (tmp%n==0) ? "Yes" : "No" ) << endl;
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>

using namepsace std;

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

cout << min(N*A,B) << "\n";

return 0;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namepsace'
    4 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 | 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:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout << min(N*A,B) << "\n";
      | ^~~~
      | 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:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
   11 | cout << min(N*A,B) << "\n";
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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<stdio.h>
int main()
{
     int n,a,b;
     scanf("%d%d%d\n",&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:7:31: error: stray '\' in program
    7 |                    printf("%d"\n,n*a);}
      |                               ^
main.c:7:31: error: expected ')' before 'n'
    7 |                    printf("%d"\n,n*a);}
      |                          ~    ^~
      |                               )