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

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

int main(){

int A,B,K;
cin>>A>>B>>K;
int ans=0;

for(int i=1;ans<=K;i++;){
if(A%i==0&&B%i==0){ans++}}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ')' before ';' token
   10 | for(int i=1;ans<=K;i++;){
      |    ~                  ^
      |                       )
a.cc:10:24: error: expected primary-expression before ')' token
   10 | for(int i=1;ans<=K;i++;){
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
typedef vector<ll> Vec;
typedef vector<int> Vi;
typedef vector<string> Vs;
typedef vector<vector<ll>> VV;

#define REP(i, a, b) for(ll i=(a); i<(b); i++)
#define PER(i, a, b) for(ll i=(a); i>=(b); i--)
#define rep(i, n) REP(i, 0, n)
#define per(i, n) PER(i, n, 0)
const ll INF=1e16+18;
const ll MAX=100005;
const ll MOD=1000000007;
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl;
#define YES(n) cout << ((n) ? "YES" : "NO") << endl;
#define ALL(v) v.begin(), v.end()
#define pb(x) push_back(x)
#define mp(a, b) make_pair(a,b)
#define Each(a,b) for(auto &a :b)
#define REPM(i, mp) for (auto i = mp.begin(); i != mp.end(); ++i)
#define dbg(x_) cerr << #x_ << ":" << x_ << endl;
#define dbgmap(mp) cerr << #mp << ":"<<endl; for (auto i = mp.begin(); i != mp.end(); ++i) { cerr << i->first <<":"<<i->second << endl;}
#define dbgarr(n,m,arr) rep(i,n){rep(j,m){cerr<<arr[i][j]<<" ";}cerr<<endl;}
#define dbgdp(n,arr) rep(i,n){cerr<<arr[i]<<" ";}cerr<<endl;
#define sum(v) accumulate(ALL(v),0)
#define fi first
#define se second

template<typename T1, typename T2>
ostream &operator<<(ostream &s, const pair<T1, T2> &p) { return s<<"("<<p.first<<", "<<p.second<<")"; }

// vector
template<typename T>
ostream &operator<<(ostream &s, const vector<T> &v) {
    int len=v.size();
    for(int i=0; i<len; ++i) {
        s<<v[i];
        if(i<len-1) s<<"	";
    }
    return s;
}

// 2 dimentional vector
template<typename T>
ostream &operator<<(ostream &s, const vector<vector<T> > &vv) {
    int len=vv.size();
    for(int i=0; i<len; ++i) {
        s<<vv[i]<<endl;
    }
    return s;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout<<std::setprecision(10);

    ll a,b,c;
    cin>>a>>b>.c;
    ll ans=max(c,b/a);
    cout<<ans<<endl;
    return  0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:15: error: expected primary-expression before '.' token
   65 |     cin>>a>>b>.c;
      |               ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:66: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){int a,b,c;std::cin>>a>>b>>c;std::cout<<(b/a>c?c:b/a)<<endl;}
      |                                                                  ^~~~
      |                                                                  std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | int main(){int a,b,c;cin>>a>>b>>c;cout<<(b/a>c?c:b/a)<<endl;}
      |                      ^~~
      |                      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:2:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int main(){int a,b,c;cin>>a>>b>>c;cout<<(b/a>c?c: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:2:56: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | int main(){int a,b,c;cin>>a>>b>>c;cout<<(b/a>c?c:b/a)<<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)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
 
using namespace std;
using std::cout;
using ll =long long;
bool is_int_lround(double x){
  return std::lround(x)==x;
}
int ketasuu(int x){
  int n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}
ll gcd11(ll x, ll y){
  long long a= max(x,y), b=min(x,y), c=a%b;
  while( c!=0){
    a =b;
    b =c;
    c = a%b;
  }
  return b;
}

int ab(int x, int y){
  if(x>=y){
    return x-y;
  }
  else if(y>x){
    return y-x;
  }
}
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:40:26: error: expected ';' before '}' token
   40 |   cout<< min(b/a,c)<<endl
      |                          ^
      |                          ;
......
   43 | }
      | ~                         
a.cc: In function 'int ab(int, int)':
a.cc:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^
Language: C

#include <vector>
#include <map>
#include <set>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <queue>
#include <iomanip>
#include <list>
#include <string>
 
typedef char                SINT8;
typedef short               SINT16;
typedef int                 SINT32;
typedef long long           SINT64;
typedef double              DOUBLE;
 
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
#define rep(i,a,b) for(SINT64 (i)=SINT64(a);(i)<SINT64(b);(i)++)
#define rrep(i,a,b) for(SINT64 (i)=SINT64(a);(i)>=SINT64(b);(i)--)
 
#define put(a) cout << (a) << endl
#define puts(a) cout << (a) << " "
 
 
#define INF 1000000001
#define MOD 1000000007
#define INF64 1000000000000000001
 
#define F first
#define S second
 
#define Pii  pair<SINT32,SINT32>
#define Pll  pair<SINT64,SINT64>
#define Piii pair<SINT32,pair<SINT32,SINT32>>
#define Plll pair<SINT64,pair<SINT64,SINT64>>


class Bellman {
	struct EDGE {
		SINT64 from;
		SINT64 to;
		SINT64 cost;
	}
	vector<EDGE> edges;
	vector<SINT64> dist;
	SINT64 N;

public:
	Bellman(SINT64 n) {
		N = n;
		dist.resize(n, INF64);
	}
	
	void add(SINT64 from, SINT64 to, SINT64 cost) {
		edges.emplace_back((EDGE){from,to,cost});
	}

	//sで構築したt迄の距離取得
	SINT64 get_dist(SINT64 t) {
		//到達不可はINF64
		return dist[t];
	}

	//構築 負の閉路有り 1 無し 0
	SINT64 form(SINT64 s) {
		dist[s] = 0;
		SINT64 cnt = 0;
		while(1) {
			SINT64 renew = 0;
			rep(i,0,edges.size()) {
				EDGE e = edges[i];
				if (dist[e.from] != INF64) {
					if (dist[e.to] > dist[e.from] + e.cost) {
						renew = 1;
						dist[e.to] = dist[e.from] + e.cost;
					}
				}
			}
			if (renew == 0) return 0;
			if (cnt > N) return 1;
			cnt++;
		}
	}
};


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

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

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

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: redeclaration of 'k' with no linkage
   10 |         int k=b/a;
      |             ^
main.c:6:21: note: previous declaration of 'k' with type 'int'
    6 |         int a, b, c,k;
      |                     ^
Language: C

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: redeclaration of 'k' with no linkage
   10 |         int k=b/a;
      |             ^
main.c:6:23: note: previous declaration of 'k' with type 'int'
    6 |         int a, b, c,i,k;
      |                       ^
Language: C

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: redeclaration of 'k' with no linkage
   10 |         int k=b/a;
      |             ^
main.c:6:23: note: previous declaration of 'k' with type 'int'
    6 |         int a, b, c,i,k;
      |                       ^
main.c:14:21: error: 'l' undeclared (first use in this function)
   14 |         printf("%d",l);
      |                     ^
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:11:5: error: redeclaration of 'i' with no linkage
   11 | int i =k;
      |     ^
main.c:6:21: note: previous declaration of 'i' with type 'int'
    6 |         int a, b, c,i,k;
      |                     ^
Language: C++

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

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

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

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

#include<iostream>

using namespace std;
int main()
{
    
    int a,b,c;
    cin>>a>>b>>c;
   if(a<1 || a>100 || b<1 || b>100 || c<1 || c>100 )
   exit();
   else 
   {
       int d=b/a;
       if(d<c)
       {
           cout<<d<<endl;
       }
       else if(c<d)
       {
           cout<<d<<endl;
       }
   }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: too few arguments to function 'void exit(int)'
   10 |    exit();
      |    ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: C++

#include <iostream>

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: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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << min(b/a,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:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   cout << min(b/a,c) << endl;
      |           ^~~
      |           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:
/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:6:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << min(b/a,c) << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int a, b, c;
  cin >> a >> b >> c;
  
  cout << min(c, b/a) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected '}' at end of input
   10 |   cout << min(c, b/a) << endl;
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;
import java.util.Date;
import java.text.SimpleDateFormat;
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 = ac.nextInt();
  int t = b/a;
  if(t>=c){
    System.out.println(c);
  }else{
    System.out.println(t);
  }
  
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
  int c = ac.nextInt();
          ^
  symbol:   variable ac
  location: class Main
1 error
Language: C++

#include<iostream.h>
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a*c<b)
cout<<c;
else
cout<<b/a;
}

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

#include<iostream.h>
int main(){
int a,b,c;
cin>>a>>b>c;
if(a*c<b)
cout<<c;
else
cout<<b/a;
}

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

#include<iostream.h>
#include<stdio.h>
int main()
{
int a,b,c,f=0,i,g=0;
scanf("%d%d%d",&a,&b,&c);
while(f==0)
{++g;
if((g>=c)||(b<=a))
 f=1;
else
 {
  b=b-(g*a);
 }
}
printf("%d",g);
return 0;
}

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

#include<iostream.h>
#include<stdio.h>
void main()
{
int a,b,c,f=0,i,g=0;
scanf("%d%d%d",&a,&b,&c);
while(f==0)
{++g;
if((g>=c)||(b<=a))
 f=1;
else
 {
  b=b-(g*a);
 }
}
printf("%d",g);
}


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

#include<iostream>

void main()
{
int a,b,c,f=0,i,g=0;
cin>>a>>b>>c;
while(f==0)
{++g;
if((g>=c)||(b<=a))
 f=1;
else
 {
  b=b-(g*a);
 }
}
cout<<g;
}


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

#include<iostream.h>
#include<stdio.h>
void main()
{
int a,b,c,f=0,i,g=0;
cin>>a>>b>>c;
while(f==0)
{++g;
if((g>=c)||(b<=a))
 f=1;
else
 {
  b=b-(g*a);
 }
}
cout<<g;
}


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

#include<iostream.h>
void main()
{
int a,b,c,f=0,i,g=0;
cin>>a>>b>>c;
while(f==0)
{++g;
if((g>=c)||(b<=a))
 f=1;
else
 {
  b=b-(g*a);
 }
}
cout<<g;
}


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

#include <iostream>
using namespace std;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'cout'
    8 |     cout << answer << 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++){
      i++;
        if(b<i*b){
            b = b*(i-1);
            break;
        }
    }
    cout << b << endl;
}

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

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

int main(){
    int a , b , c, count;
    cin >> a >> b >> c;

    for(int i = 0;i<c;i++){
        count += a*i;
        if(count>b){
            count -= a
            break;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before 'break'
   11 |             count -= a
      |                       ^
      |                       ;
   12 |             break;
      |             ~~~~~
Language: C++

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

int main(){
    int a , b , c, count;
    cin >> a >> b >> c;

    for(int i = 0;i<c;i++){
        count = count + a*i;
        if(count>b){
            count = count - a
            break;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'break'
   11 |             count = count - a
      |                              ^
      |                              ;
   12 |             break;
      |             ~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a , b , c, count;
    cin >> a >> b >> c;

    for(int i = 0;i<c;i++){
        count = count + a*i;
        if(count>b){
            count = count - a
            break;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'break'
   11 |             count = count - a
      |                              ^
      |                              ;
   12 |             break;
      |             ~~~~~
Language: Java

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


Compiler output:
Main.java:9: error: illegal start of type
  if(x < c){
  ^
Main.java:9: error: > or ',' expected
  if(x < c){
          ^
Main.java:11: error: illegal start of type
  }else{
   ^
Main.java:15: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String args[]);
  Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  int c = sc.nextInt();
  int x = A/B;
  if(x < c){
    System.out.println(x);
  }else{
    System.out.println(c);
  }
 }
}

Compiler output:
Main.java:9: error: illegal start of type
  if(x < c){
  ^
Main.java:9: error: > or ',' expected
  if(x < c){
          ^
Main.java:11: error: illegal start of type
  }else{
   ^
Main.java:15: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a , b , c;
    cin >> a >> b >> c;

    for(int i = 0;i<c;i++){
        count = count + a*i;
        if(count>b){
            count = count - a
            break;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'count' was not declared in this scope
    9 |         count = count + a*i;
      |         ^~~~~
a.cc:15:13: error: 'count' was not declared in this scope
   15 |     cout << count << endl;
      |             ^~~~~
Language: Java

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


Compiler output:
Main.java:9: error: illegal start of type
  if(x<C){
  ^
Main.java:9: error: > or ',' expected
  if(x<C){
        ^
Main.java:11: error: illegal start of type
  }else{
   ^
Main.java:15: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

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

Compiler output:
Main.java:9: error: illegal start of type
  if(X<C){
  ^
Main.java:9: error: > or ',' expected
  if(X<C){
        ^
Main.java:11: error: illegal start of type
  }else{
   ^
Main.java:15: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

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


     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'x' was not declared in this scope
    7 |     x=a*c;
      |     ^
a.cc:12:15: error: expected primary-expression before '<' token
   12 |     else if(x=<b)
      |               ^
Language: C++

#include<iostream>

using namespace std;
int main()
{
    int a,b,c,z;
    cin>>a>>b>>c;
    z=a*c;
    if(z<=b)
    {
        cout<<c;
    }
    else if(n>=b)
    {
        int d;
        d=b/a;
        cout<<d;
    }
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'n' was not declared in this scope
   13 |     else if(n>=b)
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'c' was not declared in this scope
    7 |   if (B >= A * c) {
      |                ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    System.out.println(Math.min(c,(b/a));
  }
  

  
}

Compiler output:
Main.java:8: error: ')' or ',' expected
    System.out.println(Math.min(c,(b/a));
                                        ^
1 error
Language: C

#include<stdio.h>


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

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ';' before '}' token
   11 |   if(ans>c){ans=c};
      |                  ^
      |                  ;
Language: C

#include<stdio.h>


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

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ';' before '}' token
   11 |   if(ans>c){ans=c};
      |                  ^
      |                  ;
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<cmath>
#include<tuple>
#include<string>
typedef unsigned long long ll;
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define F first
#define S second
using namespace std;
const ll INF = 1e12;
const int i_INF = 2147483647;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected ';' before '}' token
   19 |   cout<<({b/a,c})<<endl;
      |                ^
      |                ;
Language: C++

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

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
using namespace std;
int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    cout << min(b / a, c)
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'return'
   12 |     cout << min(b / a, c)
      |                          ^
      |                          ;
   13 |      return 0;
      |      ~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if((A*C)<=B){
      |   ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 | std::cout<<min(c,b/a)<<std::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,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 | std::cout<<min(c,b/a)<<endl;
      |            ^~~
      |            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:5:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | std::cout<<min(c,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 <iostream>
#include <algorithm>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout <<max(B/A, C<<endl;
      |                   ~^~~~~~
Language: C

#include <stdio.h>

int main(void){
  
  int A;
  int B;
  int C;
  
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  
  int K = B/A
  
  if(K >= C){
    printf("%d",C);
  }
  else{
    printf("%d",K);
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected ',' or ';' before 'if'
   15 |   if(K >= C){
      |   ^~
main.c:18:3: error: 'else' without a previous 'if'
   18 |   else{
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define ll long long int
#define vi vector<int>
#define vl vector<ll>
#define v2i vector<vector<int>>
#define v2l vector<vector<ll>>
#define ppi pair<int,int>
#define vpi vector<ppi>
#define ppl pair<ll,ll>
#define all(x) x.begin(),x.end()
#define ii int,int 
#define ff first    
#define ss second
#define forn(i,a,b) for(int i=a;i<b;i++)
#define forr(i,a,b) for(int i=a;i>=b;i--)
#define forv(i,m) for(auto i : m)
#define imx INT_MAX
#define imn INT_MIN
#define inf LONG_MAX
#define minf LONG_MIN
#define endl "\n"
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);
#define sze size()
#define rvs reverse 
#define itr iterator 
#define pre cout<<fixed<<setprecision(10);
#define umap unordered_map
#define uset unordered_set

/*
#define MODM(a,b,md) ((a%md)*(b%md))%md
#define MODA(a,b,md) ((a%md)+(b%md))%md
#define ull unsigned long long int
#define si short int
*/

/*
bool compare(int a,int b) {return a > b;}
bool compare1(ppi a,ppi b) {return a.ff > b.ff;}
bool compare2(ppi a,ppi b) {return a.ss < b.ss;}
ll Npower(ll a,ll b) {ll product = 1; while(b){if(b&1){product = product*a;}a = a*a;b = b>>1;} return product;}
ll power(ll a,ll b,ll md) {ll product = 1; while(b){if(b&1){product = MODM(product,a,md);}a = MODM(a,a,md);b = b>>1;} return product%md;}
ll GCD(ll a,ll b) {return b==0 ? a:GCD(b,a%b);}
ll LCM(ll a,ll b) {return (a/GCD(a,b))*b; }
*/

int main()
{
    fast


        
    int a,b,c;
    cin>>a>>b>>C;

    if(c*a >= b)
    {
        cout<<c;
    }    
    else
    {
        cout<<b/a;
    }












    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(A*C>B){
      |     ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if(A*C<=B){
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(A*C>B){
      |     ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if(A*C<=B){
      |             ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '>>' token
    6 |     cin >> a, b, c;
      |         ^~
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      System.out.println(Math.min(b/a,c));        
      }
    }
}

Compiler output:
Main.java:12: error: class, interface, enum, or record expected
}
^
1 error
Language: C

#include<stdio.h>

  int main(void)
  {
    int a,b,c,x;
      
    a<=100 && a=>1;
    b<=100 && b=>1;
    c<=100 && c=>1;
      
      
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);

    x=b/a;
    if ("c<x") x=c;
      printf("%d\n",x);

     return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before '>' token
    7 |     a<=100 && a=>1;
      |                 ^
main.c:8:17: error: expected expression before '>' token
    8 |     b<=100 && b=>1;
      |                 ^
main.c:9:17: error: expected expression before '>' token
    9 |     c<=100 && c=>1;
      |                 ^
Language: C

#include<stdio.h>

  int main(void)
  {
    int a,b,c,x
      
    a<=100 && a=>1
    b<=100 && b=>1
    c<=100 && c=>1
      
      
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);

    x=b/a;
    if ("c<x") x=c;
      printf("%d\n",x);

     return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    7 |     a<=100 && a=>1
      |     ^
main.c:16:5: error: 'x' undeclared (first use in this function)
   16 |     x=b/a;
      |     ^
main.c:16:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

  int main(void)
  {
    int a,b,c,x;
    1<a,b,c<100
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);

    x=b/a;
    if ("c<x") x=c;
      printf("%d\n",x);

     return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before 'scanf'
    6 |     1<a,b,c<100
      |                ^
      |                ;
    7 |     scanf("%d",&a);
      |     ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >>b >>c;
      |      ^~
      |      ;
Language: C++

#include<iostream>
using namespace std;
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:6:14: error: expected primary-expression before '>' token
    6 |   if (b * a => c)
      |              ^
Language: C++

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

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

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

Compiler output:
main.c:3:5: error: unknown type name 'using'
    3 |     using namespace std;
      |     ^~~~~
main.c:3:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 |     using namespace std;
      |                     ^~~
main.c: In function 'main':
main.c:6:18: error: 'cin' undeclared (first use in this function)
    6 |     int A, B, C; cin  >> A >> B >> C;
      |                  ^~~
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
    7 |     int ans = min(B / A, C);
      |               ^~~
      |               main
main.c:8:5: error: 'cout' undeclared (first use in this function)
    8 |     cout  << ans  << endl;
      |     ^~~~
main.c:8:22: error: 'endl' undeclared (first use in this function)
    8 |     cout  << ans  << endl;
      |                      ^~~~
Language: C

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

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

#include<bits/stdc ++.h>

using namespace std;

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

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

// (C) 2014 KYOCERA Document Solutions Japan Inc.

package atcorder;

import java.util.Scanner;

public class Tutorial002 {
	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 count = 0;
		
		count = B/A;
		if(count >= C) {
			System.out.println(C);
		}else if(count < C) {
			System.out.println(count);	
		}
		
	}
}


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

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

        int price = sc.nextInt();
        int money = sc.nextInt();
        int max = sc.nextInt();

        System.out.println(Math.min((int)(money / price), max);
    }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
        System.out.println(Math.min((int)(money / price), max);
                                                              ^
1 error
Language: C++

use std::io;
use std::str::FromStr;

fn main() {
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).ok();
    let mut it = buf.split_whitespace().map(|n| usize::from_str(n).unwrap());
    let (a, b, c) = (it.next().unwrap(), it.next().unwrap(), it.next().unwrap());

    if a*c <= b {
        println!("{}", c);
    } else {
        println!("{}", b/a);
    }
}

Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main() {
      | ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define all(x)    (x).begin(),(x).end()
typedef long long ll;
const int MOD = (int)1e9 + 7;

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



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> A >> B >> C;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << C << endl;
      |                 ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |                 cout << C << endl;
      |                              ^~~~
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << B/A << endl;
      |                         ^~~~
a.cc:14:40: error: 'endl' was not declared in this scope
   14 |                         cout << B/A << endl;
      |                                        ^~~~
a.cc:20:9: error: 'system' was not declared in this scope
   20 |         system("pause");
      |         ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:27: error: too many arguments to function 'puts'
    5 |   (b>=a*c)?printf("%d",c):puts("%d",b/a);
      |                           ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'min(int&, __gnu_cxx::__enable_if<true, double>::__type)'
    9 |   cout << min(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:9:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'})
    9 |   cout << min(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
/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:
/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:9:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |   cout << min(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'max(int&, __gnu_cxx::__enable_if<true, double>::__type)'
    9 |   cout << max(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'})
    9 |   cout << max(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |   cout << max(C, floor(B / A)) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'c' was not declared in this scope
    6 |   cout << (b / a >= c ? c : b / a);
      |                     ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <vector> 
using namespace std;

int main() {
	vector<int> vc;
	int a;
	int b;
	int k;
	scanf_s("%d%d%d", &a, &b, &k);

	int no = 0;

	int min = (std::min)(a,b);

	for (int i = 1; i <= min;i++) {
		if (a%i == 0 && b%i == 0) {
			vc.push_back(i);
		}
	}
	printf("%d", vc[vc.size()-k]);
}


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

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before 'return'
    8 |  printf("%d",num)
      |                  ^
      |                  ;
    9 |   return 0;
      |   ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a, b, c;
      |      ^~
      |      ;