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

#include<stdio.h>

int main(void)
{  
  int a,b,c,d;
 
scanf("%d %d %d\n" a,b,c);
 
a/b=d;
 
printf("%d\n" d);
 
if(d < c){
  printf("not mannzoku...\n");
 
else if(d > c)
  printf("mannzoku!\n");}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ')' before 'a'
    7 | scanf("%d %d %d\n" a,b,c);
      |      ~            ^~
      |                   )
main.c:9:4: error: lvalue required as left operand of assignment
    9 | a/b=d;
      |    ^
main.c:11:14: error: expected ')' before 'd'
   11 | printf("%d\n" d);
      |       ~      ^~
      |              )
main.c:16:1: error: expected '}' before 'else'
   16 | else if(d > c)
      | ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
 int a,b,c,n;
 scanf("%d%d%d",&a,&b,&c);
 if(a<1 || b<1 || c<1 || a>100 || b>100 || c>100)
   printf("正しい値を入力してください。\n");
 n=b/a;
 if(n<c)
   printf("%d\n",c);
   printf("高橋くんは%d円以上持っているのでお気に入りの音を%d回聞いて満足します。\n",a*c,c);
 else if(n>c)
   printf("%d\n",n);
   printf("高橋くんが満足できないこともあります。\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:2: error: 'else' without a previous 'if'
   13 |  else if(n>c)
      |  ^~~~
Language: C++

#include<stdio.h>
int main(void)
{
  int A,B;
  scanf("%d,%d,%d",&A,&B,&C); 
  double D;
  D = (int)B / A;
  if(D > C) C = D
  printf("%d",D);
  return 0;  

} 

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

#include<stdio.h>

int main(void)
  
  int a,b,c,d;
	
scanf("%d %d %d\n" a,b,c);

a/b=d;

printf("%d\n" d);

if(d < c){
  printf("not mannzoku...\n");

else if(d > c)
  printf("mannzoku!\n");}

return 0;

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d %d\n" a,b,c);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'a'
    9 | a/b=d;
      | ^
main.c:11:1: error: expected declaration specifiers before 'printf'
   11 | printf("%d\n" d);
      | ^~~~~~
main.c:13:1: error: expected declaration specifiers before 'if'
   13 | if(d < c){
      | ^~
main.c:19:1: error: expected declaration specifiers before 'return'
   19 | return 0;
      | ^~~~~~
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:20: error: expected '{' at end of input
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: lvalue required as left operand of assignment
    6 |   b/a=x;
      |   ~^~
Language: C++

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

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(voiod)
      |     ^~~~
a.cc:2:10: error: 'voiod' was not declared in this scope; did you mean 'void'?
    2 | int main(voiod)
      |          ^~~~~
      |          void
Language: C++

#include<stdio.h>

int main(void)
{
	int i,a,b,c;
  
  	scanf("%d%d%d",&a,b,c);
  	
  for(i=0;i<c;i++){
    c=b-a;
  }
  
  if(i=c){
  printf("高橋君は%d円持っているのでお気に入りの音を%d回聞いて満足します。",b,c);
  else
    printf("高橋君は満足できないこともあります。");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '}' before 'else'
   15 |   else
      |   ^~~~
a.cc:13:10: note: to match this '{'
   13 |   if(i=c){
      |          ^
a.cc: At global scope:
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0;
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C

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

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

#include<sthudio.h>

int main(vooid)
{
  int a,b,c,x;
    
   x=b/a;
  if(x>c) y=c;
  else if(c>x) y=x;
  printf("%d\n",y);
  
  return 0;
}

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

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

Compiler output:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'min'
    7 |         cout min(B/A,C);
      |             ^~~~
      |             ;
Language: C++

#include "pch.h"
#include <iostream>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
using namespace std;


int main()
{
	int a,b,c;
	cin >> a >> b >> c;
	cout << (b / a >= c ? c : b/a) << endl;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: Java

import java.util.scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int D = B / A;
		if (D < C)
			System.out.println(D);
		else
			System.out.println(C);
	}

}


Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  cout << min(b/a, c); << endl;
}

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

#include<stdio.h>
int main(){
  int A,B,C,;
  scanf("%d%d%d",&A,&B,&C);
  printf("%d\n",B/A);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:13: error: expected identifier or '(' before ';' token
    3 |   int A,B,C,;
      |             ^
Language: C++

abc = input().split()
cost, money, time = int(abc[0]),int(abc[1]),int(abc[2])
count = 0

while money > cost and count < time:
    money -= cost
    count += 1

print(count)


Compiler output:
a.cc:1:1: error: 'abc' does not name a type
    1 | abc = input().split()
      | ^~~
Language: C++

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

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

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

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;
template<class T> inline bool chmax(T& a, T b){ if(a < b) { a=b; return 1; }return 0;}
template<class T> inline bool chmin(T& a, T b){ if(a > b) { a=b; return 1; }return 0;}
const long long INF = 1LL << 60;

// --------write my code!!!!!----------//

int main(){
    int A,B,K; cin>>A>>B>>K;
    cout << min(B/A, C) << endl;
}


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

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

int main()
{
  int A,B,C;
  cin>>A>>B>>C;
  for(int i=0;i<C;i++)
  {
    B-=A;
    if(B<0)
      break;
  }
  cout<<i<<endl;
}


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

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

int main()
{
  int A,B,C;
  cin>>A>>B>>C;
  for(int i=0;i<C;;i++)
  {
    B-=A;
    if(B<0)
      break;
  }
  cout<<i<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ';' token
    8 |   for(int i=0;i<C;;i++)
      |                   ^
a.cc:8:19: error: expected ')' before ';' token
    8 |   for(int i=0;i<C;;i++)
      |      ~            ^
      |                   )
a.cc:8:20: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<C;;i++)
      |                    ^
Language: C++

#include<iostream>
int main(void){
  int A,B,C;
  cin >> A >> B >> C;
  if(A*C <= B){
    cout << C << endl;
  }else{
    cout << B / A << endl;
  }
  return 0;
}

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

#include<iosream>
using namespace std;

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  
  int ans = A/B;
  if(ans > C)ans =C;
  
  cout << ans;
  
}

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

#include<iosream>

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  
  int ans = A/B;
  if(ans > C)ans =C;
  
  cout << ans;
  
}

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

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

int main() {
  int A,B,C;
  cin >> A >> B >> C;
  int D = (B - B%A)/A
  if( D >= C){
    cout << C <<endl;
  }
  else{
    cout << D <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if( D >= C){
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
Language: C++

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'cout'
    7 |   else (b/a>c)cout<<c<<endl;
      |               ^~~~
      |               ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a>>b>>c;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << c;
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << a/b;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a>>b>>c;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << c;
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << a/b;
      |     ^~~~
Language: C

#include <stdio.h>

int main(void){
  int a,b,c;
  scanf("%d,%d,%d",&a,&b,&c);
  for(int i=0;i<c && b-a>0;i++){
    b-=a;
  }
  printf("%d",i);
  
  
  return 0;
}

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incclude; did you mean #include?
    1 | #incclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incclude<iostream>
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<b<<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |         cout<<b<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incclude<iostream>
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<(b-b%n)/n<<endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |   cout<<(b-b%n)/n<<endl;
      |                    ^~~~
a.cc:9:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

package atcoder;
import java.util.Scanner;

public class Favorite_sound {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		 
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		int i=0;
		int p,q;
		while(true) {
			if(c==0) {
				break;
			}else {
				p=b-a;
				if(p<=0) break;
				i++;
				while(p>=a && c>i) {
					p=p-a;
					i++;
				}
				break;
			}
		}
	System.out.println(i);
	}
}


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

public class Main{
 public static void main(String[] args)[
   Scanner scanner = new Scanner(System.in);
    
   int a = scanner.nextInt();
   int b = scanner.nextInt();
   int c = scanner.nextInt();
   int i=0;
   int p,q;
   
   
   while(1){
     if(i==0) p=b-a;
     else p=p-a
     if(i>=c){
       break;
     }else if(p>=0){
     	i++;
     }else{
       break;
   }
   }
   System.out.println(c);
}

Compiler output:
Main.java:2: error: ';' expected
 public static void main(String[] args)[
                                       ^
Main.java:12: error: illegal start of type
   while(1){
   ^
Main.java:14: error: ';' expected
     else p=p-a
               ^
Main.java:23: error: <identifier> expected
   System.out.println(c);
                     ^
Main.java:23: error: <identifier> expected
   System.out.println(c);
                       ^
5 errors
Language: C++

#include<iostream>
using namespace std;

int main () {
  int a,b,c;
  cin >> a >> b >> c;
  
  cout << min(b\a,c);
}

Compiler output:
a.cc:8:16: error: stray '\' in program
    8 |   cout << min(b\a,c);
      |                ^
a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before 'a'
    8 |   cout << min(b\a,c);
      |              ~ ^~
      |                )
Language: Java

package AtCoder;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class AtCoder_20190323_AGC {
	public static void main(String[] args)  throws Exception{

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String[] str = reader.readLine().split(" ");
		int A = Integer.parseInt(str[0]);
		int B = Integer.parseInt(str[1]);
		int C = Integer.parseInt(str[2]);

		int ans = 0;
		if (A * C <= B) {
			ans = C;
		}
		else {
			ans = B / A;
		}
		System.out.println(ans);
	}
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'retur' was not declared in this scope
    9 |     retur   n 0;
      |     ^~~~~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C ;
  cin >> A >> B >> C;
  int count = 0;
  while(B > A*C){
    count ++；
  }   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '\U0000ff1b'
    8 |     count ++；
      |             ^~
      |             ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C ;
  cin >> A >> B >> C;
  int count = 0;
  while(B > A*C){
    count ++}   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |     count ++}
      |             ^
      |             ;
Language: C++

#include<iostream>
main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<min(c,b/a);}
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<min(c,b/a);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:47: error: 'min' was not declared in this scope; did you mean 'std::min'?
    2 | main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<min(c,b/a);}
      |                                               ^~~
      |                                               std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc: At global scope:
a.cc:3:1: error: expected declaration before '}' token
    3 | }
      | ^
Language: C++

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

#define ll long long int
#define Mod 1000000007

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n,m; cin>>a>>b>>c;
  	cout<<min(a/b,c);
    return 0;
}


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

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

int main() {
	int A, B, C;
	cin >> A >> B >> C;
	int kais = 0;
	if (B / A < C) {
		cout << B / A;
	}
	else {
		cout << C;
	}
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> A >> B >> C;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<string>
  +++ |+#include <iostream>
    4 | 
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << B / A;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << C;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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


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

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

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

#include<iostream>
#include<cmath>
#include<numeric>
#include<string>
#include<algorithm>
#include<vector>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define int64 long long 
using namespace std;

int main(){
  int a,b,c;
  cout<<min(c,floor(b/a));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: no matching function for call to 'min(int&, __gnu_cxx::__enable_if<true, double>::__type)'
   14 |   cout<<min(c,floor(b/a));
      |         ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:14:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'})
   14 |   cout<<min(c,floor(b/a));
      |         ~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:14:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   14 |   cout<<min(c,floor(b/a));
      |         ~~~^~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>

int main(){
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    if (b/a >= c) {
        printf("%d". c);
    }
    else{
        printf("%d", b/a);
    } 

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: request for member 'c' in '"%d"', which is of non-class type 'const char [3]'
    8 |         printf("%d". c);
      |                      ^
Language: C++

include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> A >> B >> C;
      |   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << (B/C)*A;
      |   ^~~~
Language: C++

#include<cstio>
int main()
{
	int a, b, c;
	scanf("%d %d %d", &a, &b, &c);
	int d = b / a;
	if (d >= c)
		printf("%d", c);
	else
		printf("%d", d);
	return 0;
}

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

#include<iostream>

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

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

#include <stdio.h>
#include <string>
using namespace std;
 
int main() {
    int A, B, C, a;
    cin >> A >> B >> C;
    if (B / A < C) {
      int a = B / A;
    }
      else {
        int a = C;
      }
    cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> A >> B >> C;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << a << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     cout << a << endl;
      |                  ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int A, B, C,;
    cin >> A >> B >> C;
    if (B / A < C) {
      int ans = B / A;
    }
      else {
        int ans = C;
      }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected unqualified-id before ';' token
    6 |     int A, B, C,;
      |                 ^
a.cc:14:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int A, B, C;
    cin >> A >> B >> C;
    if (B / A < C) {
      int a = B / A;
    }
      else {
        int a = C;
      }
    cout << a << endl;
}

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

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int A, B, C, a;
    cin >> A >> B >> C;
    if (B/A<C) a=B/A;
      else a=C;
    cout << a << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected '}' at end of input
   10 |     cout << a << endl;
      |                       ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'else'
    8 |     if (B/A<C) a=B/A
      |                     ^
      |                     ;
    9 |       else a=C
      |       ~~~~
Language: Java

import java.util.*;
public class Fav{
    public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int cost = s.nextInt();
    int total = s.nextInt();
    int max = s.nextInt();
 
    if (cost == 0) {
	  System.out.println(0);
    } else {
      System.out.println(Math.min(max, total / cost));
    }
  }
}


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

import java.util.*;
public class Fav{
    public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int cost = s.nextInt();
    int total = s.nextInt();
    int max = s.nextInt();
 
    if (cost == 0) {
	  System.out.println(0);
    } else {
      System.out.println(Math.min(max, total / cost));
    }
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Fav{
      | ^~~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int cost = scanner.nextInt();
    int total = scanner.nextInt();
    int max = scanner.nextInt();
 
    if (cost == 0) {
      return 0;
    } else {
      return Math.min(max, total / cost);
    }
  }
}

Compiler output:
Main.java:11: error: incompatible types: unexpected return value
      return 0;
             ^
Main.java:13: error: incompatible types: unexpected return value
      return Math.min(max, total / cost);
                     ^
2 errors
Language: C++

include<iostream>
using namespace std;
 
int main(){
 
	int a,b,c,d;
  	cin >> a >> b >> c;
 
  	if(b/a>c){
    	d = c;
    }else{
    	d = b/a;
    }
	
  	cout << d << endl;
 
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |         ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << d << endl;
      |         ^~~~
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |         cout << d << endl;
      |                      ^~~~
Language: C++

include<iostream>
using namespace std;

int main(){

	int a,b,c,d;
  	cin >> a >> b >> c;
 
  	if(b/a>c){
    	d = c;
    }else{
    	d = b/a;
    }
	
  	cout << d << endl;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |         ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << d << endl;
      |         ^~~~
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |         cout << d << endl;
      |                      ^~~~
Language: C

#include <stdio.h>
int main(){
int a,b,k,i;
scanf("%d%d%d",&a,&b,&k);
int count;
count=0;

for(i=100; i>1； i++){
if(a%i==0 || b%i==0){i; count++;}
if(count==k) i；
return 0;
}
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: invalid suffix "；" on integer constant
    8 | for(i=100; i>1； i++){
      |              ^~~
main.c:8:17: error: expected ';' before 'i'
    8 | for(i=100; i>1； i++){
      |                 ^~
      |                 ;
main.c:10:14: error: 'i\U0000ff1b' undeclared (first use in this function)
   10 | if(count==k) i；
      |              ^~~
main.c:10:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: expected ';' before 'return'
   10 | if(count==k) i；
      |                 ^
      |                 ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include<bits/stdc ++.h>
using namespace std;
int main()
{
  intA, B, C; 
  cin  >> A >> B >> C;
int ans = min(B / A, C);
  cout  << ans  << endl;
}

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

fn main() {
    let mut buf = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    let mut iter = buf.split_whitespace();
    let a: u32 = iter.next().unwrap().parse().unwrap();
    let b: u32 = iter.next().unwrap().parse().unwrap();
    let c: u32 = iter.next().unwrap().parse().unwrap();

    println!("{}", std::cmp::min(b/a, c));
}


Compiler output:
a.cc:1:1: error: 'fn' does not name a type
    1 | fn main() {
      | ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:25: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d %d %d"&a,&b,&c);
      |               ~~~~~~~~~~^
      |               |
      |               char *
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected '(' before '{' token
    8 |   else if{
      |          ^
      |          (
Language: C++

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

int main() {
  long A, B, C;
  cin >> A >> B >> C;
  int cnt = 0;
  for(int = 0; i<= C; i++){
    B -= A;
    if(B<0)break;
    cnt++;
    if(C<=cnt)break;
  }
  cout << cnt;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected unqualified-id before '=' token
    8 |   for(int = 0; i<= C; i++){
      |           ^
a.cc:8:10: error: expected ';' before '=' token
    8 |   for(int = 0; i<= C; i++){
      |          ^~
      |          ;
a.cc:8:11: error: expected primary-expression before '=' token
    8 |   for(int = 0; i<= C; i++){
      |           ^
a.cc:8:16: error: 'i' was not declared in this scope
    8 |   for(int = 0; i<= C; i++){
      |                ^
a.cc:8:21: error: expected ')' before ';' token
    8 |   for(int = 0; i<= C; i++){
      |      ~              ^
      |                     )
a.cc:8:23: error: 'i' was not declared in this scope
    8 |   for(int = 0; i<= C; i++){
      |                       ^
Language: C

#include <stdio.h>

int main() {
    int a,b,c;
    scanf("%d %d %d", &a, %b, %c);
    printf("%d", b/a);
    return 0;
}

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

#include<stdio.h>

int main(void){
  int a,b,c;
  scanf("%d %d %d", &a, &b, &c);
  printf("%d",b/a);
  returnt 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'returnt' undeclared (first use in this function)
    7 |   returnt 0;
      |   ^~~~~~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:10: error: expected ';' before numeric constant
    7 |   returnt 0;
      |          ^~
      |          ;
Language: C++

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

int main() {
int a,b,c;
  cin >> a >> b >>c;
  cout << min(b/a,c) <, endl; 
}


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

#include <bits/stdc++.h>
#define int long long
#define ll long long
#define rep(i,n) for(int i=0;i<n;i++)
#define INF LLONG_MAX/3
#define eps LDBL_EPSILON
#define moder 1000000007
#define pie 3.141592653589793238462643383279
#define P std::pair<int,int>
#define prique priority_queue
using namespace std;
signed main()
	int a,b,c;
	cin>>a>>b>>c;
	cout<<min(c,b/a)<<endl;
	return 0;
}

Compiler output:
a.cc:2:13: error: expected initializer before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:13:9: note: in expansion of macro 'int'
   13 |         int a,b,c;
      |         ^~~
a.cc:14:9: error: 'cin' does not name a type
   14 |         cin>>a>>b>>c;
      |         ^~~
a.cc:15:9: error: 'cout' does not name a type
   15 |         cout<<min(c,b/a)<<endl;
      |         ^~~~
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);

	if (b / a > c)
		printf("%d", c);
	else
		printf("%d", a % b);
  
  return 0;
}

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

#include<stdio.h>
int main(void)
{
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);

	if (b / a > c)
		printf("%d", c);
	else
		printf("%d", a % b);
}

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

#include<stdio.h>
void main(void)
{
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);

	if (b / a > c)
		printf("%d", c);
	else
		printf("%d", a % b);
}

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

#include<stdio.h>
void main(void)
{
	int a, b, c;
	scanf_s("%d %d %d", &a, &b, &c);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d %d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
main.c:12:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   12 |         return 0;
      |                ^
main.c:2:6: note: declared here
    2 | void main(void)
      |      ^~~~
Language: C

#include<stdio.h>
int main(void){
  int a,b,c,i;
  for(;;){
  	scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    if (a >= 0 && a <= 100 && b >= 0 && b <= 100 && c >= 0 && c <= 100 && ){
      break;
    }
    for(i = 0; i < c; i++){
      if(a > b){
        break;
      }
    }
  }
  

Compiler output:
main.c: In function 'main':
main.c:8:75: error: expected expression before ')' token
    8 |     if (a >= 0 && a <= 100 && b >= 0 && b <= 100 && c >= 0 && c <= 100 && ){
      |                                                                           ^
main.c:16:3: error: expected declaration or statement at end of input
   16 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20);} } fast;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'b'
    9 |   if b/a > c{
      |      ^
      |      (
a.cc:11:10: error: 'else' without a previous 'if'
   11 |         }else{
      |          ^~~~
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20);} } fast;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'b'
    9 |   if b/a > c{
      |      ^
      |      (
a.cc:11:10: error: 'else' without a previous 'if'
   11 |         }else{
      |          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20);} } fast;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'b'
    9 |   if b/a > c{
      |      ^
      |      (
a.cc:11:4: error: 'else' without a previous 'if'
   11 |   }else{
      |    ^~~~
Language: Java

public class Main {
    public static void main(String[] args) throws Exception {

    	try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){

    		String S = i.readLine();
    		int a = S.length();
    		Long r = S.chars().parallel().filter(c -> c=='0').count();
    		Long b = a - r;
	    	System.out.println(Math.min(r, b) * 2);
    	}
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    	try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){
    	    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
    	try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){
    	                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
    	try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){
    	                                              ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'if'
    7 |   cin>>a>>b>>c
      |               ^
      |               ;
    8 |     if((a*c)<=b)
      |     ~~         
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else
      |     ^~~~
Language: C++

/* 
	Author: ankrypt
*/


#include <bits/stdc++.h>

using namespace std;

#define MOD 1000000007
#define ll long long int
#define u64 unsigned long long int

ll A, B, C;

int main() {
	scanf("%lld %lld %lld", &A, &B, &C);
	ll ans = B / A;
	ans = min(ans, C);
	printf("%lld\n", ans);
	return 0;
}
/*
	Powered by Buggy Plugin
*/
/* 
	Author: ankrypt
*/


#include <bits/stdc++.h>

using namespace std;

#define MOD 1000000007
#define ll long long int
#define u64 unsigned long long int

ll A, B, C;

int main() {
	scanf("%lld %lld %lld", &A, &B, &C);
	ll ans = B / A;
	ans = min(ans, C);
	printf("%lld\n", ans);
	return 0;
}
/*
	Powered by Buggy Plugin
*/


Compiler output:
a.cc:39:4: error: redefinition of 'long long int A'
   39 | ll A, B, C;
      |    ^
a.cc:14:4: note: 'long long int A' previously declared here
   14 | ll A, B, C;
      |    ^
a.cc:39:7: error: redefinition of 'long long int B'
   39 | ll A, B, C;
      |       ^
a.cc:14:7: note: 'long long int B' previously declared here
   14 | ll A, B, C;
      |       ^
a.cc:39:10: error: redefinition of 'long long int C'
   39 | ll A, B, C;
      |          ^
a.cc:14:10: note: 'long long int C' previously declared here
   14 | ll A, B, C;
      |          ^
a.cc:41:5: error: redefinition of 'int main()'
   41 | int main() {
      |     ^~~~
a.cc:16:5: note: 'int main()' previously defined here
   16 | int main() {
      |     ^~~~