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

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'd' was not declared in this scope
    7 |         d=b/a;
      |         ^
Language: C

#include <stdio.h>
int main(void){
  int a,b,c;
scanf("%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:6:25: error: expected statement before ']' token
    6 |   else{printf("%d",a/b);]
      |                         ^
main.c:8:1: error: expected declaration or statement at end of input
    8 | }
      | ^
Language: C

#include <stdio.h>

int main(){

	int A,B,C,X;
	
	scanf("%d %d %d",&A,&B,&C);
	
	X = B / A;
	
	if (X>=C)	printf("%d",C);
	else printf("%d,X);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:21: warning: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^
main.c:12:21: error: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^~~~~~~
main.c:14:9: error: expected expression before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:14:18: error: expected ';' before '}' token
   14 |         return 0;
      |                  ^
      |                  ;
   15 | }
      | ~
Language: C

#include <stdio.h>

int main(){

	int A,B,C,X;
	
	scanf("%d %d %d",&A,&B,&C);
	
	X = B / A
	
	if (X>=C)	printf("%d",C);
	else printf("%d,X);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected ';' before 'if'
    9 |         X = B / A
      |                  ^
      |                  ;
   10 | 
   11 |         if (X>=C)       printf("%d",C);
      |         ~~        
main.c:12:9: error: 'else' without a previous 'if'
   12 |         else printf("%d,X);
      |         ^~~~
main.c:12:21: warning: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^
main.c:12:21: error: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^~~~~~~
main.c:14:9: error: expected expression before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:14:18: error: expected ';' before '}' token
   14 |         return 0;
      |                  ^
      |                  ;
   15 | }
      | ~
Language: C

#include <stdio.h>

int main(){

	int A,B,C,X;
	
	scanf("%d %d %d",&A,&B,&C);
	
	X = B / A;
	
	if (X>=C)	pfintf("%d",C);
	else printf("%d,X);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:25: error: implicit declaration of function 'pfintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         if (X>=C)       pfintf("%d",C);
      |                         ^~~~~~
      |                         printf
main.c:12:21: warning: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^
main.c:12:21: error: missing terminating " character
   12 |         else printf("%d,X);
      |                     ^~~~~~~
main.c:14:9: error: expected expression before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:14:18: error: expected ';' before '}' token
   14 |         return 0;
      |                  ^
      |                  ;
   15 | }
      | ~
Language: Java

import java.util.*;

public class Main {

	public static void main(String[] args){
		Scanner sn = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();

while (sn.hasNextLine()) {
    String str = sn.nextLine();
    list.add(Integer.parseInt(str));
}
		int A=list.get(0)/list.get(B);
      System.out.println(A);

}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

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

  if (b/a<= c) {
    cout << c << endl;
  }

  cout << "終了" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cout << b/a << endl;
      |           ^
a.cc:5:13: error: 'a' was not declared in this scope
    5 |   cout << b/a << endl;
      |             ^
a.cc: At global scope:
a.cc:7:5: error: redefinition of 'int main()'
    7 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:8:8: error: expected initializer before '/' token
    8 |   int b/a;
      |        ^
a.cc:9:10: error: 'b' was not declared in this scope
    9 |   cin >> b/a;
      |          ^
a.cc:9:12: error: 'a' was not declared in this scope
    9 |   cin >> b/a;
      |            ^
a.cc:11:13: error: 'c' was not declared in this scope
   11 |   if (b/a<= c) {
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected ';' before 's'
   14 | k=b%a
      |      ^
      |      ;
   15 | s=b/a-k
      | ~
Language: Java

import java.util.Scanner;

public class at0303 {

	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 ans=0;

		if(a>b)ans=0;
		else{
			if(b/a>=c)ans=c;
			else if(b/a<c)ans=b/a;
		}

		System.out.println(ans);
	}
}


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

import java.util.Scanner;

public class at0303 {

	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 ans=0;

		if(a>b)ans=0;
		else{
			if(b/a>=c)ans=c;
			else if(b/a<c)ans=b/a;
		}

		System.out.println(ans);
	}

}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before 'int'
   13 |     k=b%a
      |          ^
      |          ;
   14 |     int s;
      |     ~~~   
a.cc:15:5: error: 's' was not declared in this scope
   15 |     s=b/a-k
      |     ^
Language: C++

#include<iostream>
#include <vector>
#include <boost/algorithm/string/classification.hpp> // is_any_of
#include <boost/algorithm/string/split.hpp>
#include <boost/range/algorithm/for_each.hpp>

using namespace std;
int main()
{
  int a, b, c, x;
  std::vector<std::string> result;
  boost::algorithm::split(result, s, boost::is_any_of(" "));

  a = atoi(result[0]);
  b = atoi(result[1]);
  c = atoi(result[2]);
  x = b / a;
  cout << mim(x, c) <<endl;
}

Compiler output:
a.cc:3:10: fatal error: boost/algorithm/string/classification.hpp: No such file or directory
    3 | #include <boost/algorithm/string/classification.hpp> // is_any_of
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

  if (x. c) {
    cout << "xはcより大きい" << endl;
  }

  cout << "終了" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cout << b/a << endl;
      |           ^
a.cc:5:13: error: 'a' was not declared in this scope
    5 |   cout << b/a << endl;
      |             ^
a.cc: At global scope:
a.cc:7:5: error: redefinition of 'int main()'
    7 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:11:10: error: request for member 'c' in 'x', which is of non-class type 'int'
   11 |   if (x. c) {
      |          ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '>' token
    7 |   if(b-a*c=>0){
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before 'cout'
   13 |     k=b%a
      |          ^
      |          ;
   14 |     cout << b/a-k << endl;
      |     ~~~~
Language: C++

#include <string>
#include <map>
#include <vector>
#include <iostream>
using namespace std;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b, c;
    cnin >> a >> b >> c;
    int ans;
    ans = b / a;
    if (ans > c)
        ans = c;
    cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cnin' was not declared in this scope
   11 |     cnin >> a >> b >> c;
      |     ^~~~
Language: C++

#include <cstdio>
 
 
int main(int argc, char* argv[]){
  
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  int d = b / a;
  if (d <= c) {
    printf("%d\n", c);
  }else{
    printf("%d\n", d);
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:33: note: to match this '{'
    4 | int main(int argc, char* argv[]){
      |                                 ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
    7 |     if(b / a >= c || a = 0){
      |        ~~~~~~~~~~~^~~~
Language: C++

include <cstdio>
 
 
int main(int argc, char* argv[]){
  
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  int d = b / a;
  if (d >= c) {
    printf("%d\n", c);
  }else{
    printf("%d\n", d);
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <cstdio>
      | ^~~~~~~
Language: C

#include<stdio.h>
int main(void){
  int a,b,c;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);
  if(b-a*c=>0){
    printf("満足できる");
  }
  else{
    printf("満足できんかも");
  }
  return 0;
}
    
  

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '>' token
    7 |   if(b-a*c=>0){
      |            ^
Language: C++

#include <cstdio>


int main(int argc, char* argv[]){
  
  int a, b, c;
  scanf("%d %d %d\n", &a, &b, &c);
  int d = b / a;
  if (d <= c) {
    printf("%d\n", c);
  }else{
    printf("%d\n", d);
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:33: note: to match this '{'
    4 | int main(int argc, char* argv[]){
      |                                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,K;
  cin >> A >> B >> K;
  int i,c=0;
  for(i=1;i<k+1;i++){
  if(A%i==0 && B%i==0)
    c++;
  }
  cout << c << endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'k' was not declared in this scope
    7 |   for(i=1;i<k+1;i++){
      |             ^
a.cc:11:21: error: expected '}' at end of input
   11 |   cout << c << endl;
      |                     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<queue>
using namespace std;
int n,m,i,j,k,a,b,c,cc[500000];
char s[300000];
queue<char>q;
int main(){
	gets(s);
	for (int i=0;i<strlen(s);i++){
		cc[++k]=s[i]-'0';
			while (k>=2 &&((cc[k]==0 && cc[k-1]==1)||(cc[k]==1 && cc[k-1]==0))) k-=2;
	}
	printf("%d\n",strlen(s)-k);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if (x < C){
      |   ^~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C++

a,b,c=input().split()
result=0
for i in range(1,int(c)+1):
    if int(b) >= int(a)*i:
        result+=1
    else : break
print(result)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=input().split()
      | ^
Language: C

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


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

import math

A, B, C = map(int, input().split())

dst = None
if A*C <= B:
    dst = C
else:
    dst = math.floor(B/A)

print(dst)


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

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


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

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

  
}

  

Compiler output:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

  
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   23 | int main() {
      |         ^~
a.cc:23:9: note: remove parentheses to default-initialize a variable
   23 | int main() {
      |         ^~
      |         --
a.cc:23:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:23:12: error: a function-definition is not allowed here before '{' token
   23 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#include<string>
#include<iostream>
#include<cmath>
#include<set>
#include<stack>
#include<queue>
#include<windows.h>
#include<unistd.h>
#include<stdio.h>
#include<cstring>
using namespace std;

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


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

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

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

int main() {
    int A, B, C;
    cin >> A;
    cin >> B;
    cin >> 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:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << C << endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout << C << endl;
      |                      ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << B / A << endl;
      |         ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << B / A << endl;
      |                          ^~~~
Language: C++

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

int main(void){
  char str[15];
  int val,money,count;
  scanf("%s",str);
  sscanf("%d %d %d",val,money,count);
  if(count*val <= money){
    printf("%d",count); //満足するまで聞ける
  }
  else{
    printf("%d",money/val); //お金がある分だけ聞ける
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |   sscanf("%d %d %d",val,money,count);
      |                     ^~~
      |                     |
      |                     int
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>

using namespace std;

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

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

#include<cstdio>
#include<algorithm>
#define ll long long
using namespace std;
inline int read()
{
	int f=0,x=1;char ch=getchar();
	while(ch<'0'||ch>'9')
	{
		if(ch=='-')x=-1;ch=getchar();
	}
	while(ch>='0'&&ch<='9')f=(f<<1)+(f<<3)+ch-'0',ch=getchar();
	return f*x;
} 
int a,b,c;
int main()
{
	a=read();b=read();c=read();
	int x=b/a;
	x=mix(c,x);
	printf("%d\n",x);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'mix' was not declared in this scope
   20 |         x=mix(c,x);
      |           ^~~
Language: C++

#include <bits/stdc++.h>
usingnamespace std;
int main ( ){
	int a,b,c;
	if(c>b/a)
	cout<<c;
	else
	cout<<b/a;
	return 0;
}

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout<<c;
      |         ^~~~
      |         std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<b/a;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;

public class MainClass {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());
        int c = Integer.parseInt(scanner.next());
        scanner.close();

        int res;

        res = (b / a) > c ? c : (int)(b / a);

        System.out.println(res);
    }
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'm' was not declared in this scope
    9 |     m=b/a;
      |     ^
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(B<A)cout<<"0"<<endl;
  else cout<<b/a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'B' was not declared in this scope
    9 |   else if(B<A)cout<<"0"<<endl;
      |           ^
a.cc:9:13: error: 'A' was not declared in this scope
    9 |   else if(B<A)cout<<"0"<<endl;
      |             ^
Language: C++

# ABC120: A
import sys
sys.setrecursionlimit(10000)

input = sys.stdin.readline

def debug(*args): print("DEBUG:\t", *args, file=sys.stderr)

A, B, C = [int(x) for x in input().split()]
debug(A, B, C)

print(min(B // A, C))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #ABC120
    1 | # ABC120: A
      |   ^~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
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:7:15: error: expected primary-expression before ')' token
    7 |   if (b/a < c;){
      |               ^
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <string>
#include <algorithm>

using namespace std;
using ll = long long;
using ld = long double;

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

    cout << x << endl;

    return 0;
}#include <iostream>
#include <map>
#include <set>
#include <string>
#include <algorithm>

using namespace std;
using ll = long long;
using ld = long double;

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

    cout << x << endl;

    return 0;
}

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

//favorite sound
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
	int a,b,c;
	cin >> a >> b >> c;
	if(b/a > c) cout<<c;
	else cout b/a;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:18: error: expected ';' before 'b'
    9 |         else cout b/a;
      |                  ^~
      |                  ;
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'return'
   10 |   cout<<(d>c?c:d)<<endl
      |                        ^
      |                        ;
   11 |   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;1
    return 0;
}


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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

#include <iosteram>
using namespace std;
int main(){

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

    d=b/a;

    if(d>c){
        cout<<c<<endl;
    }
    else if(c>d){
        cout<<d<<endl;
    }

    return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

ifstream f("input.in");
ofstream g("output.out");

int main(int argc, char **argv)
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    //cout<<fixed<<setprecision(10)<<;
    //cout.unsetf(ios::fixed);

    int a, b, c;
    string str;

    //f>>n>>ws;
    cin>>a>>b>>c
    
    int t = b / a;
    t = min(t, c);
    cout<<t;
    
    /*
    for(int i = 0; i < n; ++i)
    {
        //getline(f, str);

    }*/

    return 0;
}



Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:20:17: error: expected ';' before 'int'
   20 |     cin>>a>>b>>c
      |                 ^
      |                 ;
   21 | 
   22 |     int t = b / a;
      |     ~~~          
a.cc:23:5: error: 't' was not declared in this scope
   23 |     t = min(t, c);
      |     ^
Language: C

#include<stdio.h>

int main(){
  int i,j,k;
  int A,B,C;
  
  scanf("%d %d %d",&A,&B,&C);
  
  if(A *C<=B){
    printf("%d\n",C);
    return 0;
  }
  else
  {
    printf("%d\n",B/A);
    return 0;
  }

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

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

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

}




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

#include <string>
#include <cstdlib> //絶対値利用のため
#include <algorithm>
#include <vector>
using namespace std;
typedef long long ll;
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)

//const int INF = INT_MAX / 2;



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:16:9: error: 'cin' was not declared in this scope
   16 |         cin >> a >> b >> c;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <vector>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |         if (b / a >= c) cout << c endl;
      |                         ^~~~
a.cc:17:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:14: error: 'cout' was not declared in this scope
   18 |         else cout << b / a << endl;
      |              ^~~~
a.cc:18:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:31: error: 'endl' was not declared in this scope
   18 |         else cout << b / a << endl;
      |                               ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <vector>
  +++ |+#include <ostream>
    5 | using namespace std;
Language: C++

#include <iosteram>
using namespace std;
int main(){

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

    d=b/a

    if(d>c){
        cout<<c<<endl;
    }
    else if(c>d){
        cout<<d<<endl;
    }

    return 0;
}

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

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

typedef long long int LL;
#define REP(n) for(LL i = 0; i < (n); i++)
#define COUT(val) cout << (val) << endl
#define CIN(val) cin >> (val)
#define SORT(vec) sort(vec.begin(), vec.end())
#define SORT_GRE(vec) sort(vec.begin(), vec.end(), greater<LL>())

int main(){
    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:14:13: error: expected primary-expression before '<' token
   14 |     if(a*c =< b){
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
#define REP(i,n) for(int i=0; i<int(n); i++)
#define FOR(i,m,n) for(int i=int(m); i<int(n); i++)
#define ALL(obj) (obj).begin(),(obj).end()
#define VI vector<int>
#define VLL vector<long long>
#define VVI vector<vector<int>>
#define VVLL vector<vector<long long>>
#define VC vector<char>
#define VS vector<string>
#define VVC vector<vector<char>>
#define fore(i,a) for(auto &i:a)

typedef pair <int, int> P;
template<class T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; }
const int  INF = 1 << 25;
const ll INFL = 1223372036854775807;
const ll mod = 1000000007;



int main() {

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

	cout << min(c, b / a) << endl;



	return 0;


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

#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;

int A, B, C;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     cin >> A >> B >> C;
      |     ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <algorithm>
  +++ |+#include <iostream>
    7 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << min(C, B / A) << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:30: error: 'endl' was not declared in this scope
   13 |     cout << min(C, B / A) << endl;
      |                              ^~~~
a.cc:7:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    6 | #include <algorithm>
  +++ |+#include <ostream>
    7 | using namespace std;
Language: Java

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

Compiler output:
Main.java:9: error: variable d is already defined in method main(String[])
    int d=Math.max(d,c);
        ^
1 error
Language: C++

/*
* Author. Silviase(@silviasetitech)
* For AtCoder
*/

import java.util.*;
import java.lang.*;
import java.math.*;


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));


        
        sc.close();
    }


    public static long gcd(Long m, long n) {
        if(m < n) {
            return gcd(n, m);
        }
        if(n == 0){
            return m;
        } 
        return gcd(n, m % n);
    }

    public static long[][] Combination_nCk(long n, long k) {
        n++; k++;
        long[][] ans = new long[(int)n][(int)k];
        for (int i = 0; i < n; i++) {
            ans[i][0] = 1;
        }
        for (int i = 0; i < n-1; i++) {
            for (int j = 0; j < k-1; j++) {
                if (i < j) {
                    ans[i][j] = 0;
                }else{
                    ans[i+1][j+1] = ans[i][j] + ans[i][j+1];
                }
            }
        }
        return ans;
    }

    public static double[][] Probability_nCk(int n, int k) {
        n++; k++;
        double[][] ans = new double[n][k];
        for (int i = 0; i < n; i++) {
            if (i == 0) {
                ans[i][0] = 1;
            }else{
                ans[i][0] = ans[i-1][0]/2;
            }
        }
        for (int i = 0; i < n-1; i++) {
            for (int j = 0; j < k-1; j++) {
                if (i < j) {
                    ans[i][j] = 0;
                }else{
                    ans[i+1][j+1] = (ans[i][j] + ans[i][j+1])/2;
                }
            }
        }
        return ans;
    }
}

Compiler output:
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.*;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.lang.*;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import java.math.*;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: expected unqualified-id before 'public'
   11 | public class Main {
      | ^~~~~~
Language: C++

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

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

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

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:
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: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#define M 1000000000000000000LL
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n)　for(int i=(s);i<(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define pb push_back
#define pf push_front
#define MIN(a,b) a=min((a),(b))
#define MAX(a,b) a=max((a),(b))
#define SIZE(v) (int)v.size()
#define Eunique(v) v.erace(unique(all(v)),v.end())
#define pvec(v)　rep(i,v.size()){cout << v[i] << " ";}
#define INF 0x3f3f3f3f
#define mset(m,v) memset(m,v,sezeof(m))
#define mod 1e9 +7;

const double pi = acos(-1.0);

typedef string ss;
typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef deque<ll> dll;
typedef pair<ll,ll> P;
ll dx[4] = {1,0,-1,0},dy[4] = {0,1,0,-1};

ll gcd(ll x,ll y)
{
    ll r;
    while((r = x % y) != 0)
    {
        x = y;
        y = r;
    }
    return y;
}

ll lcm(ll x,ll y)
{
    x /= gcd(x,y);
    y /= gcd(x,y);
    return (x*y);
}

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


Compiler output:
a.cc:9:19: error: extended character 　 is not valid in an identifier
    9 | #define REP(i,s,n)　for(int i=(s);i<(n);i++)
      |                   ^
a.cc:20:16: error: extended character 　 is not valid in an identifier
   20 | #define pvec(v)　rep(i,v.size()){cout << v[i] << " ";}
      |                ^
a.cc: In function 'int main()':
a.cc:59:20: error: expected primary-expression before '>' token
   59 |     cin >> a >> b> >c;
      |                    ^
Language: C++

#include <stdio.h>
typedef long long ll;
using namrspace std;

int main(void) {
  ll i, j, k, a, b, c, n, m;
  scanf("%lld%lld%lld", &a, &b, &c);
  printf("%lld", a / b > c ? c : a / b);
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namrspace'
    3 | using namrspace std;
      |       ^~~~~~~~~
Language: C++


#include <iostream>
#include <cassert>
#include <climits>
#include <bitset>
#include <stack>
#include <queue>
#include <iomanip>
#include <limits>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string.h>

using namespace std;

typedef long long ll;
typedef pair<ll,ll> P;

long long int INF = 3e18;
double Pi = 3.1415926535897932384626;

vector<ll> G[500005];
vector<P> tree[500010];
priority_queue <ll> pql;
priority_queue <P> pqp;
//big priority queue
priority_queue <ll,vector<ll>,greater<ll> > pqls;
priority_queue <P,vector<P>,greater<P> > pqps;
//small priority queue
//top pop

int dx[8]={1,0,-1,0,1,1,-1,-1};
int dy[8]={0,1,0,-1,1,-1,-1,1};
char dir[] = "DRUL";
//ll bit[500005];
//↓,→,↑,←


#define p(x) cout<<x<<endl;
#define el cout<<endl;
#define pe(x) cout<<x<<" ";
#define ps(x) cout<<fixed<<setprecision(25)<<x<<endl;
#define pu(x) cout<<x;
#define re(i,n) for(i=0;i<n;i++);
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define deba(x) cout<< #x << " = " << x <<endl


ll mod = 1000000007;
ll rui(ll number1,ll number2){
    if(number2 == 0){
        return 1;
    }else{
        ll number3 = rui(number1,number2 / 2);
        number3 *= number3;
        number3 %= mod;
        if(number2%2==1){
            number3 *= number1;
            number3 %= mod;
        }
        return number3;
    }
}
ll gcd(ll number1,ll number2){
    if(number1 > number2){
        swap(number1,number2);
    }
    if(number1 == 0 || number1 == number2){
        return number2;
    }else{
        return gcd(number2 % number1,number1);
    }
}
void YES(bool condition){
    if(condition){
        p("YES");
    }else{
        p("NO");
    }
    return;
}
void Yes(bool condition){
    if(condition){
        p("Yes");
    }else{
        p("No");
    }
    return;
}

ll n,m,num,sum,a,b,c,d,e,f,g,h,i,j,k,w,ok,ng,l,ans,q,t;
ll x[500005],y[500005],r[500005];
char s[500005],t[500005];
bool flag,dame;

int main(){
    cin >> a >> b >> c;
	if(a >= b * c){
		ans = c;
	}else{
		ans = a / b;
	}
	p(ans);
	return 0;
}

Compiler output:
a.cc:100:16: error: conflicting declaration 'char t [500005]'
  100 | char s[500005],t[500005];
      |                ^
a.cc:98:54: note: previous declaration as 'll t'
   98 | ll n,m,num,sum,a,b,c,d,e,f,g,h,i,j,k,w,ok,ng,l,ans,q,t;
      |                                                      ^
Language: C

//{{{
#include <bits/stdc++.h>
using namespace std;
#define repX(a,b,c,x,...) x
#define repN(a) repX a
#define rep(...) repN((__VA_ARGS__,rep3,rep2,loop))(__VA_ARGS__)
#define rrep(...) repN((__VA_ARGS__,rrep3,rrep2))(__VA_ARGS__)
#define loop(n) rep2(i_,n)
#define rep2(i,n) rep3(i,0,n)
#define rep3(i,begin,end) for(int i=(int)(begin),i##_end=(int)(end);i<i##_end;++i)
#define rrep2(i,n) rrep3(i,n,0)
#define rrep3(i,begin,end) for(int i=(int)(begin-1),i##_end=(int)(end);i>=i##_end;--i)
#define foreach(x,a) for(auto&x:a)
using ll=long long;
const ll mod=(ll)1e9+7;
//}}}

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


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

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

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

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

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

int main() {
  ll a,b;
  cin>>a>>b;
  ll c=min(a,b);
  ll k;
  cin>>k;
  ll g=0;
  vector<ll>vec(0);
  for(ll i=1;i<=b;i++){
    if(i%a==0&&i%b==0){
      vec.push_back(i);
      g+=1;
      }
    }
  cout<<vec.at(g-i+1)<<endl;
}

      
    



Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: 'i' was not declared in this scope
   19 |   cout<<vec.at(g-i+1)<<endl;
      |                  ^
Language: C++

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

int main() {
  ll a,b;
  cin>>a>>b;
  ll c=min(a,b);
  ll k;
  cin>>k;
  ll g=0;
  for(ll i=1,i<=b;i++){
    if(i%a==0&&i%b==0){
      g+=1;
      if(g==k){
        cout<<i<<endl;
        return 0;
      }
    }
  }
}

      
    



Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before '<=' token
   12 |   for(ll i=1,i<=b;i++){
      |               ^~
      |               ;
a.cc:12:15: error: expected primary-expression before '<=' token
   12 |   for(ll i=1,i<=b;i++){
      |               ^~
Language: C++

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

#define ll long long
#define ar array
#define endl "\n"
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);

void solve(){
  ll a, b, k;
  cin >> a >> b >> k;
  ll ans = min(a, b);
  for(ll i = min(a, b); i>=1; --i){
    if(a%i == 0 && b%i == 0){
      ans = i;
      --k;
    }
    if(!k)
      break;
  }
  cout << ans << endl
}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:22:1: error: expected ';' before '}' token
   22 | }
      | ^
Language: C

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

#define ll long long
#define ar array
#define endl "\n"
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);

void solve(){
  ll a, b, k;
  cin >> a >> b >> k;
  ll ans = min(a, b);
  for(ll i = min(a, b); i>=1; --i){
    if(a%i == 0 && b%i == 0){
      ans = i;
      --k;
    }
    if(!k)
      break;
  }
  cout << ans << endl
}

int main(){
  solve();
  return 0;
}


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