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

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

Compiler output:
main.c: In function 'main':
main.c:4:4: error: stray '\342' in program
    4 |   1<U+2264>N<U+2264>20;
      |    ^~~~~~~~
main.c:4:4: error: expected ';' before 'N'
    4 |   1≤N≤20;
      |    ^~
      |    ;
main.c:4:6: error: stray '\342' in program
    4 |   1<U+2264>N<U+2264>20;
      |             ^~~~~~~~
main.c:5:4: error: stray '\342' in program
    5 |   1<U+2264>A<U+2264>50;
      |    ^~~~~~~~
main.c:5:4: error: expected ';' before 'A'
    5 |   1≤A≤50;
      |    ^~
      |    ;
main.c:5:6: error: stray '\342' in program
    5 |   1<U+2264>A<U+2264>50;
      |             ^~~~~~~~
main.c:6:4: error: stray '\342' in program
    6 |   1<U+2264>B<U+2264>50;
      |    ^~~~~~~~
main.c:6:4: error: expected ';' before 'B'
    6 |   1≤B≤50;
      |    ^~
      |    ;
main.c:6:6: error: stray '\342' in program
    6 |   1<U+2264>B<U+2264>50;
      |             ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:4: error: stray '\342' in program
    4 |   1<U+2264>N<U+2264>20
      |    ^~~~~~~~
main.c:4:4: error: expected ';' before 'N'
    4 |   1≤N≤20
      |    ^~
      |    ;
main.c:4:6: error: stray '\342' in program
    4 |   1<U+2264>N<U+2264>20
      |             ^~~~~~~~
main.c:5:4: error: stray '\342' in program
    5 |   1<U+2264>A<U+2264>50
      |    ^~~~~~~~
main.c:5:6: error: stray '\342' in program
    5 |   1<U+2264>A<U+2264>50
      |             ^~~~~~~~
main.c:6:4: error: stray '\342' in program
    6 |   1<U+2264>B<U+2264>50
      |    ^~~~~~~~
main.c:6:6: error: stray '\342' in program
    6 |   1<U+2264>B<U+2264>50
      |             ^~~~~~~~
Language: C

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

int main(void){
  long l,r;
  int min = 2019;
  scanf("%d",&l);
  scanf("%d",&r);
  for(int i = l; i <= r; i++){
    for(int j = i + 1; i <= r; j++){
      if((i * j) % 2019 < min){
        min = (i * j) % 2019;
        if(min == 0){
			printf("%d",min);
            exit(0);
        }
      }
    }
  }
  printf("%d",min);
}

Compiler output:
main.c:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include ,stdlib.h>
      |          ^
main.c: In function 'main':
main.c:15:13: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   15 |             exit(0);
      |             ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | #include ,stdlib.h>
main.c:15:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   15 |             exit(0);
      |             ^~~~
main.c:15:13: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'Train' undeclared (first use in this function)
    6 |   if(Train < B){
      |      ^~~~~
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'Taxi' undeclared (first use in this function)
    9 |     printf("%d",Taxi);
      |                 ^~~~
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
int main(){
  int N, A, B;
  1 <= N <= 20;
  1 <= A <= 50;
  1 <= B <= 50;
  int NA;
 
  
  	
  scanf("%d %d %d", &N, &A, &B);
  NA = N * A;
  
  
  if(NA <= B){
    printf("%d", NA);
  }else if(B < NA){
    printf("%d", B);
  }

Compiler output:
main.c: In function 'main':
main.c:20:3: error: expected declaration or statement at end of input
   20 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:20: error: 'nN' undeclared (first use in this function); did you mean 'N'?
    4 |   scanf("%d %d %d",nN,nA,nB);
      |                    ^~
      |                    N
main.c:4:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:23: error: 'nA' undeclared (first use in this function); did you mean 'A'?
    4 |   scanf("%d %d %d",nN,nA,nB);
      |                       ^~
      |                       A
main.c:4:26: error: 'nB' undeclared (first use in this function); did you mean 'B'?
    4 |   scanf("%d %d %d",nN,nA,nB);
      |                          ^~
      |                          B
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:18:23: error: expected ';' before '}' token
   18 |             min = taxi
      |                       ^
      |                       ;
   19 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:19: error: expected ';' before '}' token
   16 |         min = taxi
      |                   ^
      |                   ;
   17 |     }
      |     ~
Language: C

#include <stdio.h>
 
int main(){
  int N, A, B;
  1 <= N <= 20;
  1 <= A <= 50;
  1 <= B <= 50;

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

Compiler output:
main.c: In function 'main':
main.c:12:3: error: 'NA' undeclared (first use in this function); did you mean 'A'?
   12 |   NA = N * A;
      |   ^~
      |   A
main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'NA' undeclared (first use in this function); did you mean 'A'?
   13 |   NA = N * A;
      |   ^~
      |   A
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
  
  int n, a, b;
  scanf("%d", &n);
  scanf("%d", &a);
  scanf("%d", &b);
  
  int train = n * a;
  int taxi = b;
  
  int min = train;
  
  if (train > taxi)
    min = taxi
}

Compiler output:
main.c: In function 'main':
main.c:16:15: error: expected ';' before '}' token
   16 |     min = taxi
      |               ^
      |               ;
   17 | }
      | ~
Language: C

                    #include <stdio.h>
                    #include <math.h>
            		#include <stdlib.h>
                     
                    int main(void){
                      int n,d;
                      scanf("%d %d",&n,&d);
                      int ar[10][10];
                      for(int r=0; r<n;r++){
                        for(int c=0; c<d;c++){
                          scanf("%d",&ar[r][c]);
                        }
                      }
                      double distance;
                      int correctCount;
                      for(int i=0; i<n; i++){
                        for(int j=i+1; j<n; j++){
                          distance = 0;
                      		for(int k=0; k<d;k++){
                        		distance = distance + pow((double)abs(ar[i][k] - ar[j][k]),2.0);
                            }
                          distance = pow(distance,0.5);
                          distance = sqrt(distance);
                          if(ceil(distance)!= floor(distance)){
                            correctCount++;
                          }
                    	
                        }
                      }
                      printf("%d",correctCount);
                    }
                      
                    }

Compiler output:
main.c:33:21: error: expected identifier or '(' before '}' token
   33 |                     }
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:6: error: 'NA' undeclared (first use in this function); did you mean 'A'?
   16 |   if(NA <= B){
      |      ^~
      |      A
main.c:16:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:29: error: expected ';' before 'int'
    4 |   scanf("%d %d %d",&N,&A,&B)
      |                             ^
      |                             ;
    5 |   int Train = N*A;
      |   ~~~                        
main.c:6:6: error: 'Train' undeclared (first use in this function)
    6 |   if(Train < B){
      |      ^~~~~
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:12: error: expected expression before '%' token
    7 |     printf(%d,Train);
      |            ^
main.c:9:12: error: expected expression before '%' token
    9 |     printf(%d,Taxi);
      |            ^
Language: C++

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

int main() { 
 int N, A, B; 
 int ans = min(N * A, B); 
 
  cout << ans << endl; 9 }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before '}' token
    8 |   cout << ans << endl; 9 }
      |                         ^~
      |                         ;
Language: C

#include <stdio.h>

int main(){
    int n, a, b, c;
    
   scanf("%d%d%d", &n, &a, &b);

   c = n*a;

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: expected ';' before '{' token
   12 |    }else(c > b){
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ')' before ';' token
    6 |   else(printf("%d",A*N);)
      |       ~                ^
      |                        )
a.cc:6:25: error: expected primary-expression before ')' token
    6 |   else(printf("%d",A*N);)
      |                         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected '}' before 'else'
    6 |   else(printf("%d",A*N);
      |   ^~~~
a.cc:5:10: note: to match this '{'
    5 |   if(A>B){printf("%d",B*N);
      |          ^
a.cc:6:24: error: expected ')' before ';' token
    6 |   else(printf("%d",A*N);
      |       ~                ^
      |                        )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:21: error: 'A' was not declared in this scope
    3 |   scanf("%d %d %d",&A,&B,&N);
      |                     ^
a.cc:3:24: error: 'B' was not declared in this scope
    3 |   scanf("%d %d %d",&A,&B,&N);
      |                        ^
a.cc:3:27: error: 'N' was not declared in this scope
    3 |   scanf("%d %d %d",&A,&B,&N);
      |                           ^
a.cc:5:3: error: expected '}' before 'else'
    5 |   else(printf(A*N);
      |   ^~~~
a.cc:4:10: note: to match this '{'
    4 |   if(A>B){printf(B*N);
      |          ^
a.cc:5:19: error: expected ')' before ';' token
    5 |   else(printf(A*N);
      |       ~           ^
      |                   )
Language: C++

#include<stdio.h>
int main(){
  if(A>B){printf(B*N);
  else(printf(A*N);
               
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'A' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |      ^
a.cc:3:8: error: 'B' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |        ^
a.cc:3:20: error: 'N' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |                    ^
a.cc:4:3: error: expected '}' before 'else'
    4 |   else(printf(A*N);
      |   ^~~~
a.cc:3:10: note: to match this '{'
    3 |   if(A>B){printf(B*N);
      |          ^
a.cc:4:17: error: 'N' was not declared in this scope
    4 |   else(printf(A*N);
      |                 ^
a.cc:4:19: error: expected ')' before ';' token
    4 |   else(printf(A*N);
      |       ~           ^
      |                   )
Language: C++

#include<cstdio>
#include<cmath>
#include<algorithm>
int main(){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  printf("%d\n",a*min(b,c));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   printf("%d\n",a*min(b,c));
      |                   ^~~
      |                   std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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(){
  if(A>B){printf(B*N);
          else(printf(A*N);
               
               return 0;
               }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'A' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |      ^
a.cc:3:8: error: 'B' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |        ^
a.cc:3:20: error: 'N' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |                    ^
a.cc:4:11: error: expected '}' before 'else'
    4 |           else(printf(A*N);
      |           ^~~~
a.cc:3:10: note: to match this '{'
    3 |   if(A>B){printf(B*N);
      |          ^
a.cc:4:25: error: 'N' was not declared in this scope
    4 |           else(printf(A*N);
      |                         ^
a.cc:4:27: error: expected ')' before ';' token
    4 |           else(printf(A*N);
      |               ~           ^
      |                           )
Language: C++

#include<stdio.h>
int main(){
  if(A>B){printf(B*N);
          else(printf(A*N);
               
               return 0
               }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'A' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |      ^
a.cc:3:8: error: 'B' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |        ^
a.cc:3:20: error: 'N' was not declared in this scope
    3 |   if(A>B){printf(B*N);
      |                    ^
a.cc:4:11: error: expected '}' before 'else'
    4 |           else(printf(A*N);
      |           ^~~~
a.cc:3:10: note: to match this '{'
    3 |   if(A>B){printf(B*N);
      |          ^
a.cc:4:25: error: 'N' was not declared in this scope
    4 |           else(printf(A*N);
      |                         ^
a.cc:4:27: error: expected ')' before ';' token
    4 |           else(printf(A*N);
      |               ~           ^
      |                           )
a.cc:6:24: error: expected ';' before '}' token
    6 |                return 0
      |                        ^
      |                        ;
    7 |                }
      |                ~
Language: C++

#include <stio.h>
int main() {
  int N, A, B;
  int train = B;
  int taxi = N * A;

  int min = train;
  if (train > taxi)
    min = taxi;
}     

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

#incude <stio.h>
int main() {
  int N, A, B;
  int train = B;
  int taxi = N * A;
  
  int min = train;
  if (train > taxi)
    min = taxi;
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <stio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:16: error: expected '}' at end of input
    9 |     min = taxi;
      |                ^
a.cc:2:12: note: to match this '{'
    2 | int main() {
      |            ^
Language: C++

#include<studio.h>

int taxi;
int train;

int N;
int A;
int B;

int main(void){
    scanf("%d",%N);
    scanf("%d",%A);
    scanf("%d",%B);

    while(1 <= N <= 20 && 1 <= A <= 50 && 1 <= B 50){
        taxi =  B;
        train = N*A;
        if(taxi<train){
            printf(%d\,taxi);
        }else{
            printf(%d\,train);
        }
    }
}

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

#include <stdio.h>
         
        int main(void){
            int n;
            int a;
            int b;
         
           do{
                printf("N：");
                scanf("%d",&n);
           }while(n < 1 || n > 20);
         
           do{
               printf("A：");
               scanf("%d",&a);
           }while(a < 1 || a > 50);
         
           do{
               printf("B：");
               scanf("%d",&b);
           }while(b < 1 || b > 50);
         
           if((a*n) > b)
                printf("%d",b);
          		return 0;
            else
                printf("%d",a*n);
          		return 0;
        }

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

#include <stdio.h>

int main(){

    int a;
    int b;
    int N;

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

    int z=jud(a,b,N);

    printf("%d", &z)

    return 0;
}

int jud(int a, int b, int N){
    
    int x=a*b;
    
    if(x>N){
        return x;
    }
    
    return N;
}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: implicit declaration of function 'jud' [-Wimplicit-function-declaration]
   13 |     int z=jud(a,b,N);
      |           ^~~
main.c:15:21: error: expected ';' before 'return'
   15 |     printf("%d", &z)
      |                     ^
      |                     ;
   16 | 
   17 |     return 0;
      |     ~~~~~~
Language: C++

#include <stdio.h>

void main(){
    int a=0;
    int b=0;
    int N=0;

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

    int z=jud(a,b,N);

    printf("%d", z)
}

int jud(int a, int b, int N){
    
    int x=a*b;
    
    if(x>N){
        return x;
    }
    
    return N;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:11: error: 'jud' was not declared in this scope
   12 |     int z=jud(a,b,N);
      |           ^~~
a.cc:14:20: error: expected ';' before '}' token
   14 |     printf("%d", z)
      |                    ^
      |                    ;
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ';' before 'cout'
    5 |   cin >> n >> a >>b
      |                    ^
      |                    ;
    6 |   cout; << min(a*n,b) << end;
      |   ~~~~              
a.cc:6:9: error: expected primary-expression before '<<' token
    6 |   cout; << min(a*n,b) << end;
      |         ^~
Language: C++

#include <stdio.h>

void main(){
    int a;
    int b;
    int N;

    scanf("%d" &a);
    scanf("%d" &b);
    scanf("%d" &N);

    int z=jud(a,b,N);

    printf("%d", z)
}

int jud(int a, int b, int N){
    int x=a*b;
    if(x>N){
        return x;
    }
    
    return N;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    8 |     scanf("%d" &a);
      |           ~~~~ ^~
      |           |     |
      |           |     int
      |           const char [3]
a.cc:9:16: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    9 |     scanf("%d" &b);
      |           ~~~~ ^~
      |           |     |
      |           |     int
      |           const char [3]
a.cc:10:16: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
   10 |     scanf("%d" &N);
      |           ~~~~ ^~
      |           |     |
      |           |     int
      |           const char [3]
a.cc:12:11: error: 'jud' was not declared in this scope
   12 |     int z=jud(a,b,N);
      |           ^~~
a.cc:14:20: error: expected ';' before '}' token
   14 |     printf("%d", z)
      |                    ^
      |                    ;
   15 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ';' before 'cout'
    5 |   cin >> n >> a >>b
      |                    ^
      |                    ;
    6 |   cout << min(a*n,b) << end;
      |   ~~~~
Language: C

#include <stdio.h>

int main() {
    int n, a, b;
    char input[];

    fgets(input, 256, stdin);
    sscanf(input, "%d", &n);
    sscanf(input, "%d", &a);
    sscanf(input, "%d", &b);
    
    int r = n * a;
    if(r <= b) {
        printf("%d\n", r);
    } else (r > b) {
        printf("%d", b);
    }
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: array size missing in 'input'
    5 |     char input[];
      |          ^~~~~
main.c:15:19: error: expected ';' before '{' token
   15 |     } else (r > b) {
      |                   ^~
      |                   ;
Language: C++

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

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

#include <stdio.h>

int main() {
    int n, a, b;
    char input[256];

    fgets(input, LENGTH-1, stdin);
    sscanf(input, "%d", &n);
    sscanf(input, "%d", &a);
    sscanf(input, "%d", &b);
    
    int r = n * a;
    if(r <= b) {
        printf("%d\n", r);
    } else (r > b) {
        printf("%d", b);
    }
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'LENGTH' undeclared (first use in this function)
    7 |     fgets(input, LENGTH-1, stdin);
      |                  ^~~~~~
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: expected ';' before '{' token
   15 |     } else (r > b) {
      |                   ^~
      |                   ;
Language: C++

#include <stdio.h>

int main(void){
    int n;
    int a;
    int b;

   do{
        printf("N：");
        scanf("%d",&n);
   }while(n < 1 || n > 20);

   do{
       printf("A：");
       scanf("%d",&a);
   }while(a < 1 || a > 50);

   do{
       printf("B：");
       scanf("%d",&b);
   }while(b < 1 || b > 50);

   if((a*n) > b)
        printf("%d",b);
    else
        printf("%d"a*n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:16: error: unable to find string literal operator 'operator""a' with 'const char [3]', 'long unsigned int' arguments
   26 |         printf("%d"a*n);
      |                ^~~~~
Language: C++

#include <stdio.h>

int main(void){
    int n;
    int a;
    int b;

   do{
        printf("N：");
        scanf("%d",&n);
   }while(n < 1 || n > 20);

   do{
       printf("A：");
       scanf("%d",&a);
   }while(a < 1 || a > 50);

   do{
       printf("B：");
       scanf("%d",&b);
   }while(b < 1 || b > 50);

   if((a*n) > b)
        printf(b);
    else
        printf(a*n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   24 |         printf(b);
      |                ^
      |                |
      |                int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:26:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   26 |         printf(a*n);
      |                ~^~
      |                 |
      |                 int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

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

   do{
        printf("N：");
        scanf("%d",&N);
   }while(N < 1 || N > 20);

   do{
       printf("A：");
       scanf("%d",&A);
   }while(A < 1 || A > 50);

   do{
       printf("B：");
       scanf("%d",&B);
   }while(B < 1 || B > 50);

  if(A*N > B)
    printf(B);
  else
    printf(A*N);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   24 |     printf(B);
      |            ^
      |            |
      |            int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:26:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   26 |     printf(A*N);
      |            ~^~
      |             |
      |             int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

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

   do{
        printf("N：");
        scanf("%d",&N);
   }while(N < 1 || N > 20);

   do{
       printf("A：");
       scanf("%d",&A);
   }while(A < 1 || A > 50);

   do{
       printf("B：");
       scanf("%d",&B);
   }while(B < 1 || B > 50);

   int min = A*N;

   if(min > B){
       min = B;
       printf(min);
   }else{
       printf(min);
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   27 |        printf(min);
      |               ^~~
      |               |
      |               int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:29:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   29 |        printf(min);
      |               ^~~
      |               |
      |               int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

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

   do{
        printf("N：");
        scanf("%d",&N);
   }while(N < 1 || N > 20);

   do{
       printf("A：");
       scanf("%d",&A)
   }while(A < 1 || A > 50);

   do{
       printf("B：");
       scanf("%d",&B);
   }while(B < 1 || B > 50);

   int min = A*N;

   if(min > B){
       min = B;
       printf(min);
   }else{
       printf(min);
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before '}' token
   15 |        scanf("%d",&A)
      |                      ^
      |                      ;
   16 |    }while(A < 1 || A > 50);
      |    ~                  
a.cc:27:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   27 |        printf(min);
      |               ^~~
      |               |
      |               int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:29:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   29 |        printf(min);
      |               ^~~
      |               |
      |               int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

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

   do{
        printf("N：");
        scanf("%d",&N);
   }while(N < 1 || N > 20);

   do{
       printf("A：");
       scanf("%d",&A)
   }while(A < 1 || A > 50);

   do{
       printf("B：");
       scanf("%d",&B);
   }while(B < 1 || B > 50);

   int min = A*N;

   if(min > B){
       min = B;
       printf(B);
   }else{
       printf(min);
   }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before '}' token
   15 |        scanf("%d",&A)
      |                      ^
      |                      ;
   16 |    }while(A < 1 || A > 50);
      |    ~                  
a.cc:27:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   27 |        printf(B);
      |               ^
      |               |
      |               int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:29:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   29 |        printf(min);
      |               ^~~
      |               |
      |               int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

int main(){
  int A,B,N;
  char a[],b[],n[];
  fgets(a,256,stdin);
  sscanf(a,%d,&A);
  fgets(b,256,stdin);
  sscanf(b,%d,&B);
  fgets(n,256,stdin);
  sscanf(n,%d,&N);
  if(N*A > B){
    printf(B);
  }
  else{
    printf(N*A);
  }
}

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 'a'
    3 |   char a[],b[],n[];
      |        ^
main.c:3:12: error: array size missing in 'b'
    3 |   char a[],b[],n[];
      |            ^
main.c:3:16: error: array size missing in 'n'
    3 |   char a[],b[],n[];
      |                ^
main.c:4:3: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
    4 |   fgets(a,256,stdin);
      |   ^~~~~
main.c:4:15: error: 'stdin' undeclared (first use in this function)
    4 |   fgets(a,256,stdin);
      |               ^~~~~
main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
    4 |   fgets(a,256,stdin);
      |               ^~~~~
main.c:5:3: error: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
    5 |   sscanf(a,%d,&A);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'sscanf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'sscanf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'sscanf'
main.c:5:12: error: expected expression before '%' token
    5 |   sscanf(a,%d,&A);
      |            ^
main.c:7:12: error: expected expression before '%' token
    7 |   sscanf(b,%d,&B);
      |            ^
main.c:9:12: error: expected expression before '%' token
    9 |   sscanf(n,%d,&N);
      |            ^
main.c:11:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |     printf(B);
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     printf(B);
      |            ^
      |            |
      |            int
main.c:11:12: note: expected 'const char *' but argument is of type 'int'
main.c:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |     printf(N*A);
      |     ^~~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   14 |     printf(N*A);
      |            ~^~
      |             |
      |             int
main.c:14:13: note: expected 'const char *' but argument is of type 'int'
Language: C

#include <stdio.h>

int main(void){
    int num, train, taxi;
    scanf("%d",&num);
    scanf("%d",&train);
    scanf("%d", &taxi);
    printf("%d", (num * train > num * taxi) ? num * taxi : num * train); 
   　return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:4: error: stray '\343' in program
    9 |    <U+3000>return 0;
      |    ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    7 |   printf("%d",max(A,N*B));
      |               ^~~
Language: C++

#include <cstdio>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   printf("%d\n", min(n * a, 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 <cstdio>
#include <cmath>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   printf("%d\n", min(n * a, b));
      |                  ^~~
      |                  std::min
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

#include <cstdio>
#include <cmath>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   printf("%d\n", min(n * a, b));
      |                  ^~~
      |                  std::min
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

#include <cstdin>
#include <cmath>

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

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

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

int main()[
    int n,a,b;cin>>n>>a>>b;
    cout<<min(n*a,b)<<endl;
]

Compiler output:
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int n,a,b;cin>>n>>a>>b;
      |     ^~~
a.cc:4:12: error: expected ']' before 'int'
    4 | int main()[
      |            ^
      |            ]
    5 |     int n,a,b;cin>>n>>a>>b;
      |     ~~~     
a.cc:5:15: error: 'cin' does not name a type
    5 |     int n,a,b;cin>>n>>a>>b;
      |               ^~~
a.cc:6:5: error: 'cout' does not name a type
    6 |     cout<<min(n*a,b)<<endl;
      |     ^~~~
a.cc:7:1: error: expected unqualified-id before ']' token
    7 | ]
      | ^
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:6:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout<<(n*a>=b)?n*a:b<<endl;
      |                      ~^~~~~~
Language: C++

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

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

#include<stdio.h>

int main() {
	int n, a, b;
	scanf_s("%d %d %d", &n, &a, &b);
	if (n * a < b) {
		printf("%d", n * a);
	}
	else {
		printf("%d", b);
	}
	
	return 0;

}

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

#include<iostream>
#include<algorithm>
int main(){
int n,a,b;
  cin>>n>>a>>b;
  n=min(n*a,b);
  cout<<n;
}

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

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

int main() {
  int n, a, b;
  int na;
  int ans;

  cin >> n >> a >> b;

  na = n*a;
  if(na < b){ ans = na;}
  else {ans = b;}

  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | GGG#include <bits/stdc++.h>
      |    ^
a.cc:1:1: error: 'GGG' does not name a type
    1 | GGG#include <bits/stdc++.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> n >> a >> b;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << ans << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

typedef long l;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<int, string> pis;
typedef pair<long, long> pll;

#define EACH(t, c) for (auto&& t : c)
#define ALL(c) begin(c), end(c)
#define FOR(i, s, e) for (int i = (s); i < (int)(e); ++i)
#define REP(i, n) FOR(i, 0, n)
#define endl '\n'
#define F first
#define S second
#define pb push_back
#define mp make_pair

const int DX[] = {1, 0, -1, 0, 1, 1, -1, -1}, DY[] = {0, 1, 0, -1, 1, -1, 1, -1};
const int MOD = (int)1e9 + 7;
const int INF = 999999999;

template<typename T>
void print(const std::vector<T>& v, char sep=' ') {
  for (int i = 0; i < (int)v.size(); i++) {
    if (i != 0) cout << sep;
    cout << v[i];
  }
  cout << endl;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, a, b;

  cin >> n >> a >> b;

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

}



Compiler output:
a.cc:26:23: error: 'vector' in namespace 'std' does not name a template type
   26 | void print(const std::vector<T>& v, char sep=' ') {
      |                       ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:26:29: error: expected ',' or '...' before '<' token
   26 | void print(const std::vector<T>& v, char sep=' ') {
      |                             ^
a.cc: In function 'void print(int)':
a.cc:27:28: error: 'v' was not declared in this scope
   27 |   for (int i = 0; i < (int)v.size(); i++) {
      |                            ^
a.cc:28:25: error: 'sep' was not declared in this scope
   28 |     if (i != 0) cout << sep;
      |                         ^~~
Language: C++

#include<iostream>

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

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

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

int main() {
    return solve();
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N >> A >> B;
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << min(N * A, B) << endl;
      |     ^~~~
a.cc:4:13: error: 'min' was not declared in this scope
    4 |     cout << min(N * A, B) << endl;
      |             ^~~
a.cc:4:30: error: 'endl' was not declared in this scope
    4 |     cout << min(N * A, B) << endl;
      |                              ^~~~