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

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

Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected ';' before '}' token
    6 |     if(n*a<b) {printf("%d",n*a)};
      |                                ^
      |                                ;
main.c:7:5: error: 'else' without a previous 'if'
    7 |     else {printf("%d",b)};
      |     ^~~~
main.c:7:25: error: expected ';' before '}' token
    7 |     else {printf("%d",b)};
      |                         ^
      |                         ;
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:6:37: error: expected ';' before '}' token
    6 |      if(N*A<=B){printf("%d\n",(N*A))};
      |                                     ^
      |                                     ;
main.c:7:6: error: 'else' without a previous 'if'
    7 |      else{printf("%d\n",B)};
      |      ^~~~
main.c:7:27: error: expected ';' before '}' token
    7 |      else{printf("%d\n",B)};
      |                           ^
      |                           ;
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:6:35: error: expected ';' before '}' token
    6 |      if(N*A<=B){printf("%d\n",N*A)};
      |                                   ^
      |                                   ;
main.c:7:6: error: 'else' without a previous 'if'
    7 |      else{printf("%d\n",B)};
      |      ^~~~
main.c:7:27: error: expected ';' before '}' token
    7 |      else{printf("%d\n",B)};
      |                           ^
      |                           ;
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:6:37: error: expected ';' before '}' token
    6 |      if(N*A<=B) { printf("%d\n",N*A)};
      |                                     ^
      |                                     ;
main.c:7:6: error: 'else' without a previous 'if'
    7 |      else { printf("%d\n",B)};
      |      ^~~~
main.c:7:29: error: expected ';' before '}' token
    7 |      else { printf("%d\n",B)};
      |                             ^
      |                             ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:26: error: 'A' undeclared (first use in this function)
    5 |      scanf ("%d%d%d\n",N,A,B);
      |                          ^
main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:28: error: 'A' undeclared (first use in this function)
    5 |      scanf ("%d,%d,%d\n",N,A,B);
      |                            ^
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

#include <stdio.h>
#include <iostream>
using namespace std;
 
int main() {
 	FILE *fp = fopen("/dumy.txt", "w");
	fclose(fp);
	
	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:12:10: error: expected '}' at end of input
   12 | return 0;
      |          ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
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(N*A>=B) printf("%d\n",B);
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ';' before 'printf'
    7 |      else(N*A>=B) printf("%d\n",B);
      |                  ^~~~~~~
      |                  ;
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(N*A=B) printf("%d\n",B);
     return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |      scanf("%d,%d,%d", &N,&A,&B );
      |      ^~~~~
main.c:6:15: error: 'B' undeclared (first use in this function)
    6 |      if (N*A<=B) printf ("%d\n",N*A);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:17: error: expected ';' before 'printf'
    7 |      else(N*A=B) printf("%d\n",B);
      |                 ^~~~~~~
      |                 ;
Language: C++

 #include <bits/stdc++.h>
  1 using namespace std;
  2 int main() {
  3         int n, a, b; cin >> n >> a >> b;
  4         cout << min(n*a, b) << endl;
  5         return 0;
  6 }


Compiler output:
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 |   1 using namespace std;
      |   ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 |   2 int main() {
      |   ^
Language: C++


#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected initializer before '.' token
    7 |         int n, a. b;
      |                 ^
a.cc:8:21: error: 'a' was not declared in this scope
    8 |         cin >> n >> a >> b;
      |                     ^
a.cc:8:26: error: 'b' was not declared in this scope
    8 |         cin >> n >> a >> b;
      |                          ^
Language: C++

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

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

#include <cstdio> int N,A,B;
int main ()
{
scanf("%d%d%d",&N,&A,&B); 
if(N*A<=B)printf("%d\n",N*A); 
else printf("%d\n",B);
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <cstdio> int N,A,B;
      |                   ^~~
a.cc: In function 'int main()':
a.cc:4:17: error: 'N' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B);
      |                 ^
a.cc:4:20: error: 'A' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B);
      |                    ^
a.cc:4:23: error: 'B' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B);
      |                       ^
Language: C++

#include <cstdio> int N,A,B;
int main ()
{
scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <cstdio> int N,A,B;
      |                   ^~~
a.cc: In function 'int main()':
a.cc:4:17: error: 'N' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
      |                 ^
a.cc:4:20: error: 'A' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
      |                    ^
a.cc:4:23: error: 'B' was not declared in this scope
    4 | scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
      |                       ^
Language: C++

#include <cstdio > int N,A,B;
int main ()
{
scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <cstdio > int N,A,B;
      |                    ^~~
a.cc:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio > int N,A,B;
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include <cstdio > int N,A,B;
int main ()
{
scanf("%d%d%d",&N,&A,&B); if(N*A<=B)printf("%d\n",N*A); else printf("%d\n",B);
}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <cstdio > int N,A,B;
      |                    ^~~
main.c:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio > int N,A,B;
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio >
int N,A,B;
int main ()
{
scanf("%d%d%d",&N,&A,&B);
if(N*A<=B)printf("%d\n",N*A);
else printf("%d\n",B);
}

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

 #include<bits/stdc++.h> 
int main() { 
	int N, A, B;
	cin >> N >> A >> B;
	cout << min(A * N, B);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> N >> A >> B;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout << min(A * N, B);
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:17: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 |         cout << min(A * N, B);
      |                 ^~~
      |                 std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/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>
#include<string.h>
int main(){
	int N;
	int harshad = 0;
	char N_str[10];
	scanf("%s", &N_str);
 	
	N = atoi(&N_str);

	for(int i = 0; i < strlen(N_str); i++){
		harshad += N_str[i] - "0"
	}
	if(N % harshad == 0) {
	printf("Yes\n");
	} else {
	printf("No\n");
	{
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    9 |         N = atoi(&N_str);
      |             ^~~~
main.c:12:37: error: invalid operands to binary - (have 'int' and 'char *')
   12 |                 harshad += N_str[i] - "0"
      |                            ~~~~~~~~ ^
      |                                 |   |
      |                                 |   char *
      |                                 char
main.c:12:42: error: expected ';' before '}' token
   12 |                 harshad += N_str[i] - "0"
      |                                          ^
      |                                          ;
   13 |         }
      |         ~                                 
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<string.h>
int main(){
	int N;
	int harshad = 0;
	char N_str[10];
	scanf("%s", &N_str);
 	
	N = atoi(&N_str);

	for(int i = 0; i < strlen(n_str); i++){
		harshad += N_str[i] - "0"
	}
	if(N % harshad == 0) {
	printf("Yes\n")
	} else {
	printf("No\n")
	{
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    9 |         N = atoi(&N_str);
      |             ^~~~
main.c:11:35: error: 'n_str' undeclared (first use in this function); did you mean 'N_str'?
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                                   ^~~~~
      |                                   N_str
main.c:11:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:37: error: invalid operands to binary - (have 'int' and 'char *')
   12 |                 harshad += N_str[i] - "0"
      |                            ~~~~~~~~ ^
      |                                 |   |
      |                                 |   char *
      |                                 char
main.c:12:42: error: expected ';' before '}' token
   12 |                 harshad += N_str[i] - "0"
      |                                          ^
      |                                          ;
   13 |         }
      |         ~                                 
main.c:15:24: error: expected ';' before '}' token
   15 |         printf("Yes\n")
      |                        ^
      |                        ;
   16 |         } else {
      |         ~               
main.c:17:23: error: expected ';' before '{' token
   17 |         printf("No\n")
      |                       ^
      |                       ;
   18 |         {
      |         ~              
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<string.h>
int main(){
	int N;
	int harshad = 0;
	char N_str[10];
	scanf(%s , &N_string);
 	
	N = atoi(&N_srt);

	for(int i = 0; i < strlen(n_str); i++){
		harshad += N_str[i] - "0"
	}
	if(N % harshad == 0) {
	printf("Yes\n")
	} else {
	printf("No\n")
	{
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected expression before '%' token
    7 |         scanf(%s , &N_string);
      |               ^
main.c:9:13: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    9 |         N = atoi(&N_srt);
      |             ^~~~
main.c:9:19: error: 'N_srt' undeclared (first use in this function); did you mean 'N_str'?
    9 |         N = atoi(&N_srt);
      |                   ^~~~~
      |                   N_str
main.c:9:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:35: error: 'n_str' undeclared (first use in this function); did you mean 'N_str'?
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                                   ^~~~~
      |                                   N_str
main.c:12:37: error: invalid operands to binary - (have 'int' and 'char *')
   12 |                 harshad += N_str[i] - "0"
      |                            ~~~~~~~~ ^
      |                                 |   |
      |                                 |   char *
      |                                 char
main.c:12:42: error: expected ';' before '}' token
   12 |                 harshad += N_str[i] - "0"
      |                                          ^
      |                                          ;
   13 |         }
      |         ~                                 
main.c:15:24: error: expected ';' before '}' token
   15 |         printf("Yes\n")
      |                        ^
      |                        ;
   16 |         } else {
      |         ~               
main.c:17:23: error: expected ';' before '{' token
   17 |         printf("No\n")
      |                       ^
      |                       ;
   18 |         {
      |         ~              
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<string.h>
int main(){
	int N;
	int harshad = 0;
	char[10] N_str;
	scanf(%s , &N_string);
 	
	N = atoi(&N_srt);

	for(int i = 0; i < strlen(n_str); i++){
		harshad += N_str[i] - "0"
	}
	if(N % harshad == 0) {
	printf("Yes\n")
	} else {
	printf("No\n")
	{
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected identifier or '(' before '[' token
    6 |         char[10] N_str;
      |             ^
main.c:7:15: error: expected expression before '%' token
    7 |         scanf(%s , &N_string);
      |               ^
main.c:9:13: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    9 |         N = atoi(&N_srt);
      |             ^~~~
main.c:9:19: error: 'N_srt' undeclared (first use in this function)
    9 |         N = atoi(&N_srt);
      |                   ^~~~~
main.c:9:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:35: error: 'n_str' undeclared (first use in this function)
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                                   ^~~~~
main.c:12:28: error: 'N_str' undeclared (first use in this function)
   12 |                 harshad += N_str[i] - "0"
      |                            ^~~~~
main.c:12:42: error: expected ';' before '}' token
   12 |                 harshad += N_str[i] - "0"
      |                                          ^
      |                                          ;
   13 |         }
      |         ~                                 
main.c:15:24: error: expected ';' before '}' token
   15 |         printf("Yes\n")
      |                        ^
      |                        ;
   16 |         } else {
      |         ~               
main.c:17:23: error: expected ';' before '{' token
   17 |         printf("No\n")
      |                       ^
      |                       ;
   18 |         {
      |         ~              
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<string.h>
int main(){
	int N
	int harshad = 0
	char[10] N_str
	scanf(%s , &N_string)
 	
	N = atoi(&N_srt)

	for(int i = 0; i < strlen(n_str); i++){
		harshad += N_str[i] - "0"
	}
	if(N % harshad == 0) {
	printf("Yes\n")
	} else {
	printf("No\n")
	{
	return 0;
}




Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected ';' before 'int'
    4 |         int N
      |              ^
      |              ;
    5 |         int harshad = 0
      |         ~~~   
main.c:6:9: error: expected ',' or ';' before 'char'
    6 |         char[10] N_str
      |         ^~~~
main.c:11:24: error: 'i' undeclared (first use in this function)
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                        ^
main.c:11:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:35: error: 'n_str' undeclared (first use in this function)
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                                   ^~~~~
main.c:11:46: error: expected ';' before ')' token
   11 |         for(int i = 0; i < strlen(n_str); i++){
      |                                              ^
      |                                              ;
main.c:11:46: error: expected statement before ')' token
main.c:12:28: error: 'N_str' undeclared (first use in this function)
   12 |                 harshad += N_str[i] - "0"
      |                            ^~~~~
main.c:12:42: error: expected ';' before '}' token
   12 |                 harshad += N_str[i] - "0"
      |                                          ^
      |                                          ;
   13 |         }
      |         ~                                 
main.c:14:12: error: 'N' undeclared (first use in this function)
   14 |         if(N % harshad == 0) {
      |            ^
main.c:15:24: error: expected ';' before '}' token
   15 |         printf("Yes\n")
      |                        ^
      |                        ;
   16 |         } else {
      |         ~               
main.c:17:23: error: expected ';' before '{' token
   17 |         printf("No\n")
      |                       ^
      |                       ;
   18 |         {
      |         ~              
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
main.c:20:1: error: expected declaration or statement at end of input
Language: C++

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

Compiler output:
a.cc:25:2: error: stray '#' in program
   25 | }#include<iostream>
      |  ^
a.cc:25:3: error: 'include' does not name a type
   25 | }#include<iostream>
      |   ^~~~~~~
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

# include < cstdio >
int N;
int F [100][14];
int P [100][15];
int main ()
{
scanf ("% d " ,& N );
for ( int i =0; i <N;i ++)
{
for ( int j =0; j <10; j ++) scanf ("% d " ,& F[i ][ j ]);
}
for ( int i =0; i <N;i ++) for ( int j =0; j <11; j ++) scanf ("% d " ,& P[i ][ j ]);
int res = -(1 < <30);
for ( int b =1; b <(1 < <10); b ++)
{
int cc =0;
for ( int i =0; i <N;i ++)
{
int c =0;
for ( int j =0; j <10; j ++) if ((b >>j &1)&& F[i ][ j ]) c ++;
cc += P[i ][ c ];
}
if ( res < cc ) res = cc ;
}
printf ("% d\n", res );
}

Compiler output:
a.cc:1:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
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 {
		printf("%d\n",b)；
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:35: error: expected ';' before '\U0000ff1b'
    6 |                 printf("%d\n",n*a)；
      |                                   ^~
      |                                   ;
main.c:8:33: error: expected ';' before '\U0000ff1b'
    8 |                 printf("%d\n",b)；
      |                                 ^~
      |                                 ;
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 {
		printf("%d\n",b)；
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:35: error: expected ';' before '\U0000ff1b'
    6 |                 printf("%d\n",n*a)；
      |                                   ^~
      |                                   ;
main.c:8:33: error: expected ';' before '\U0000ff1b'
    8 |                 printf("%d\n",b)；
      |                                 ^~
      |                                 ;
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 {
		printf("%d\n",b)
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:35: error: expected ';' before '}' token
    6 |                 printf("%d\n",n*a)
      |                                   ^
      |                                   ;
    7 |         } else {
      |         ~                          
main.c:8:33: error: expected ';' before '}' token
    8 |                 printf("%d\n",b)
      |                                 ^
      |                                 ;
    9 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc:1:10: fatal error: bits/stdc++.ch: No such file or directory
    1 | #include <bits/stdc++.ch>
      |          ^~~~~~~~~~~~~~~~
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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before '<' token
   10 |     cout<<<min(a*n, b)<<endl;
      |           ^
a.cc:10:23: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout<<<min(a*n, b)<<endl;
      |            ~~~~~~~~~~~^~~~~~
Language: Java

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

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

print (lambda t,a,b: t*a if t*a<b else b)(*map(int, raw_input().split()))


Compiler output:
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | print (lambda t,a,b: t*a if t*a<b else b)(*map(int, raw_input().split()))
      |       ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10, INF = 0x3f3f3f ;

int f[N][15];
int p[N][15];
int temp[N];

int main(){
    ios_base::sync_with_stdio(0);
    int n;cin>>n;
    for(int i = 0;i < n;i++) {
        for(int j = 0;j < 10;j++) {
            cin>>f[i][j];
        }
    }
    for(int i = 0;i < n;i++) {
        for(int j = 0;j <= 10;j++) {
            cin>>p[i][j];
        }
    }
    ll res = -INF;
    for(int i = 1;i < (1<<10);i++) {
        memset(temp,0,sizeof temp);
        for(int j = 0;j < n;j++) {
            for(int k = 0;k < 10;k++) {
                if(f[j][k] && ((1<<k)&i)) {
                    temp[j]++;
                }
            }
        }
        ll t = 0;
        for(int j = 0;j < n;j++) {
            t += p[j][temp[j]];
        }
        res = max(res,t);
    }
    cout<<res<inea;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'll' was not declared in this scope
   24 |     ll res = -INF;
      |     ^~
a.cc:34:11: error: expected ';' before 't'
   34 |         ll t = 0;
      |           ^~
      |           ;
a.cc:36:13: error: 't' was not declared in this scope
   36 |             t += p[j][temp[j]];
      |             ^
a.cc:38:9: error: 'res' was not declared in this scope
   38 |         res = max(res,t);
      |         ^~~
a.cc:38:23: error: 't' was not declared in this scope
   38 |         res = max(res,t);
      |                       ^
a.cc:40:11: error: 'res' was not declared in this scope
   40 |     cout<<res<inea;
      |           ^~~
a.cc:40:15: error: 'inea' was not declared in this scope
   40 |     cout<<res<inea;
      |               ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10, INF = 0x3f3f3f3f ;

int f[N][15];
int p[N][15];
int temp[N];

int main(){
    ios_base::sync_with_stdio(0);
    int n;cin>>n;
    for(int i = 0;i < n;i++) {
        for(int j = 0;j < 10;j++) {
            cin>>f[i][j];
        }
    }
    for(int i = 0;i < n;i++) {
        for(int j = 0;j <= 10;j++) {
            cin>>p[i][j];
        }
    }
    ll res = -INF;
    for(int i = 1;i < (1<<10);i++) {
        memset(temp,0,sizeof temp);
        for(int j = 0;j < n;j++) {
            for(int k = 0;k < 10;k++) {
                if(f[j][k] && ((1<<k)&i)) {
                    temp[j]++;
                }
            }
        }
        ll t = 0;
        for(int j = 0;j < n;j++) {
            t += p[j][temp[j]];
        }
        res = max(res,t);
    }
    cout<<res<com;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'll' was not declared in this scope
   24 |     ll res = -INF;
      |     ^~
a.cc:34:11: error: expected ';' before 't'
   34 |         ll t = 0;
      |           ^~
      |           ;
a.cc:36:13: error: 't' was not declared in this scope
   36 |             t += p[j][temp[j]];
      |             ^
a.cc:38:9: error: 'res' was not declared in this scope
   38 |         res = max(res,t);
      |         ^~~
a.cc:38:23: error: 't' was not declared in this scope
   38 |         res = max(res,t);
      |                       ^
a.cc:40:11: error: 'res' was not declared in this scope
   40 |     cout<<res<com;
      |           ^~~
a.cc:40:15: error: 'com' was not declared in this scope; did you mean 'cos'?
   40 |     cout<<res<com;
      |               ^~~
      |               cos
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10, INF = 0x3f3f3f3f ;

int f[N][15];
int p[N][15];
int temp[N];

int main(){
    ios_base::sync_with_stdio(0);
    int n;cin>>n;
    for(int i = 0;i < n;i++) {
        for(int j = 0;j < 10;j++) {
            cin>>f[i][j];
        }
    }
    for(int i = 0;i < n;i++) {
        for(int j = 0;j <= 10;j++) {
            cin>>p[i][j];
        }
    }
    ll res = -INF;
    for(int i = 1;i < (1<<10);i++) {
        memset(temp,0,sizeof temp);
        for(int j = 0;j < n;j++) {
            for(int k = 0;k < 10;k++) {
                if(f[j][k] && ((1<<k)&i)) {
                    temp[j]++;
                }
            }
        }
        ll t = 0;
        for(int j = 0;j < n;j++) {
            t += p[j][temp[j]];
        }
        res = max(res,t);
    }
    cout<<res<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'll' was not declared in this scope
   24 |     ll res = -INF;
      |     ^~
a.cc:34:11: error: expected ';' before 't'
   34 |         ll t = 0;
      |           ^~
      |           ;
a.cc:36:13: error: 't' was not declared in this scope
   36 |             t += p[j][temp[j]];
      |             ^
a.cc:38:9: error: 'res' was not declared in this scope
   38 |         res = max(res,t);
      |         ^~~
a.cc:38:23: error: 't' was not declared in this scope
   38 |         res = max(res,t);
      |                       ^
a.cc:40:11: error: 'res' was not declared in this scope
   40 |     cout<<res<<endl;
      |           ^~~
Language: C++

#include ,iosyrtwjslxd'xdjaiks
手机卡的显卡是
xcxd都放到里面xs

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ,iosyrtwjslxd'xdjaiks
      |          ^
a.cc:1:23: warning: missing terminating ' character
    1 | #include ,iosyrtwjslxd'xdjaiks
      |                       ^
a.cc:2:1: error: '\U0000624b\U0000673a\U00005361\U00007684\U0000663e\U00005361\U0000662f' does not name a type
    2 | 手机卡的显卡是
      | ^~~~~~~~~~~~~~
Language: C

#include<stdio.h>
 
int main(void)
{
 
double n;
int a=0;
int x=0;
int sum=0;
 
scanf("%lf",&n);

n=a;

while(n){
 x = n % 10;
 sum = sum + x;
 n = n / 10;
}
 
if(a%sum==0)
{
printf("yes\n");
}
else{
printf("no\n");
 }

return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:16:8: error: invalid operands to binary % (have 'double' and 'int')
   16 |  x = n % 10;
      |        ^
Language: C

#include<stdio.h>
 
int main(void)
{
 
int n,x,sum;
 
scanf("%d",&n);
 
while(n){
 x = n % 10;
 sum = sum + x;
 n = n / 10;
}
 
if((sum%n)=0)
{
printf("yes\n");
}
else{
printf("no\n");
 }
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:16:11: error: lvalue required as left operand of assignment
   16 | if((sum%n)=0)
      |           ^
Language: C

#include<stdio.h>
 
int main(void)
{
 
int n,x,sum;
 
scanf("%d",&n);
 
while(n){
 x = n % 10;
 sum = sum + x;
 n = n / 10;
}
 
if((n%sum)=0)
{
printf("yes\n");
}
else{
printf("no\n");
 
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:16:11: error: lvalue required as left operand of assignment
   16 | if((n%sum)=0)
      |           ^
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void)
{
 
int n,x,sum;
 
scanf("%d",&n);
 
while(n){
 x = n % 10;
 sum = sum + x;
 n = n / 10;
}
 
if((sum%n)=0)
{
printf("yes\n");
}
else{
printf("no\n");
 
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:16:11: error: lvalue required as left operand of assignment
   16 | if((sum%n)=0)
      |           ^
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include<stdio.h>

int n,a,b;

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

if(a*n<b)
{
 printf("%d",a*n);
}

else
{
 printf("%d",b);
}

return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d%d%d",&n,&a,&b);
      |       ^~~~~~~~
main.c:5:16: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d%d%d",&n,&a,&b);
      |                ^
main.c:5:19: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d%d%d",&n,&a,&b);
      |                   ^
main.c:5:22: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d%d%d",&n,&a,&b);
      |                      ^
main.c:7:1: error: expected identifier or '(' before 'if'
    7 | if(a*n<b)
      | ^~
main.c:12:1: error: expected identifier or '(' before 'else'
   12 | else
      | ^~~~
main.c:17:1: error: expected identifier or '(' before 'return'
   17 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include<stadio.h>
int main()
{

    int A, B, T;

    scanf("%d%d%d", &A, &B, &T);

    if (A * T < B)
    {
        printf("%d", A * T);
    }
    else
    {
        printf("%d", B);
    }

    return 0;

}

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

include<stadio.h>
int main()
{

int A,B,T;

scanf("%d%d%d",&A,&B,&T);

if(A*T<B)
{
printf("%d",A*T);
}
else{
printf(%d",B);
}

return 0;

}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stadio.h>
      |        ^
main.c:14:10: warning: missing terminating " character
   14 | printf(%d",B);
      |          ^
main.c:14:10: error: missing terminating " character
   14 | printf(%d",B);
      |          ^~~~~
Language: C++

#include<stadio.h>
int main(void) {

	int A,B,T;

	scnaf("%d%d%d",&A,&B,&T);

	if(A*T<B){
		printf("%d",A*T);
	}
	
	elseif{
		printf("%d",B);
	}

return 0;

}


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

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
using namespace std;

int main(){
	scanf("%d",&A,&B,&C);

	if(A*B>C) cout << A*B << endl;
	if(A*B<C) cout << C << endl;
	if(A*B == C) cout << A*B << endl;
}

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

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

int main()
{
    string s;
    
    cin >> s;
    int n=s.size();
    int i=0,j=n-1;
    int f=1;
    
    while (i<j)
        if(s[i]==s[j])
        {
            i++;
            j--;
		}
		else
		{
		    f=0;
		    break;
		}
	if(f==1)
	    cout << "yes" <<endl;
	else and
	    cout << "no" <<endl;
	    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:18: error: invalid operands of types 'void*' and 'const char [3]' to binary 'operator<<'
   28 |         else and
      |              ~~~  
      |              |
      |              void*
   29 |             cout << "no" <<endl;
      |             ~~~~ ^~ ~~~~
      |                     |
      |                     const char [3]
a.cc:29:13: error: label 'cout' used but not defined
   29 |             cout << "no" <<endl;
      |             ^~~~
Language: C++

#i呢粗鲁的人额唉冬季室内设计n'jv'j'n'd

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i\U00005462\U00007c97\U00009c81\U00007684\U00004eba\U0000989d\U00005509\U000051ac\U00005b63\U00005ba4\U00005185\U00008bbe\U00008ba1n
    1 | #i呢粗鲁的人额唉冬季室内设计n'jv'j'n'd
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespacxssd bd;
jsjxnxsxqjhnkfj;
{kdko
kdks;[L
dlld
lddld

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacxssd'
    2 | using namespacxssd bd;
      |       ^~~~~~~~~~~~
a.cc:3:1: error: 'jsjxnxsxqjhnkfj' does not name a type
    3 | jsjxnxsxqjhnkfj;
      | ^~~~~~~~~~~~~~~
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {kdko
      | ^
Language: C++

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

struct node{
	int s,t,c;
}a[200001];

struct ll{
	int x,y;
}b[101];

int n,c,l,r,ans;

bool cmp(node a,node b){
	if(a.s==b.s)
		return a.t<b.t;
	return a.s<b.s;
}

int main(){
	int mid,i;
	cin >> n >> c;
	for(i=1;i<=n;i++)
		cin >> a[i].s >> a[i].t >> a[i].c;
	sort(a+1,a+n+1,cmp);
	int i,j,maxv=0,s=0;
	for(i=1;i<=c;i++){
		b[i].x=9999999;
		b[i].y=0;
	}
	for(i=1;i<=n;i++){
		for(j=1;j<=c;j++)
			if(a[i].s>b[j].x){
				b[j].y=0;
				b[j].x=9999999;
				s--;
			}
		if(b[a[i].c].y==0){
			s++;
			maxv=max(maxv,s);
			b[a[i].c].x=a[i].t;
			b[a[i].c].y=1;
		}
	}
	cout << maxv;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: redeclaration of 'int i'
   28 |         int i,j,maxv=0,s=0;
      |             ^
a.cc:23:17: note: 'int i' previously declared here
   23 |         int mid,i;
      |                 ^
Language: C++

// https://beta.atcoder.jp/contests/abc080/tasks/abc080_a

#include <iostream>
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:15:17: error: expected ';' before '}' token
   15 |         return 0
      |                 ^
      |                 ;
   16 | }
      | ~
Language: C

A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'B' [-Wimplicit-int]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |   ^
main.c:1:5: error: return type defaults to 'int' [-Wimplicit-int]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |     ^~~~
main.c: In function 'main':
main.c:1:5: error: type of 'N' defaults to 'int' [-Wimplicit-int]
main.c:1:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
main.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |             ^~~~~
main.c:1:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |                                      ^~~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:52: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
    1 | A,B;main(N){scanf("%d%d%d",&N,&A,&B);printf("%d\n",min(N*A,B));}
      |                                                    ^~~
      |                                                    main
Language: Java

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

/*
 * To execute Java, please define "static void main" on a class
 * named Solution.
 *
 * If you need more classes, simply define them inline.
 */

public class Main {
  public int solve(int n, int a, int b) {
    return Math.min(n*a, b);  
  }
  
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int a = sc.nextInt();
    int b = sc.nextInt();
    System.out.println(new Solution().solve(n,a,b));
  }
}


Compiler output:
Main.java:21: error: cannot find symbol
    System.out.println(new Solution().solve(n,a,b));
                           ^
  symbol:   class Solution
  location: class Main
1 error
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	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:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	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:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:27: error: invalid type argument of unary '*' (have 'int')
    5 |         scanf("%d %d %d", *N , *A , *B);
      |                           ^~
main.c:5:32: error: invalid type argument of unary '*' (have 'int')
    5 |         scanf("%d %d %d", *N , *A , *B);
      |                                ^~
main.c:5:37: error: invalid type argument of unary '*' (have 'int')
    5 |         scanf("%d %d %d", *N , *A , *B);
      |                                     ^~
Language: C++

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

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

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

Compiler output:
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main {
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    6 |   printf("%d\n",max(a*b,c));
      |                 ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main {
      |          ^
Language: Java

import java.util.Scanner;


public class Atcorder{

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int N =  scan.nextInt();
		int A = scan.nextInt();
		int B = scan.nextInt();

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

	System.out.println(x);

	}
}

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