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

#include<stdio.h>
int main(void){
 int a,b,c[100],k,i,j=0;
scanf("%d%d%d",&a,&b,&k);
if(a>b) { a=a+b; b=a-b; a=a-b;}
for(=1;i<=a;i++){
if((a%i==0)&&(b%i==0))  {c[j]=i; j++;}
printf("%d",c[c-k]}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected expression before '=' token
    6 | for(=1;i<=a;i++){
      |     ^
main.c:8:14: error: array subscript is not an integer
    8 | printf("%d",c[c-k]}
      |              ^
main.c:8:19: error: expected ')' before '}' token
    8 | printf("%d",c[c-k]}
      |       ~           ^
      |                   )
main.c:8:19: error: expected ';' before '}' token
    8 | printf("%d",c[c-k]}
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
int main(void)
{
  int a,b,c,i,j,x,y,k,n=0;
  scanf("%d%d%d",&a,&b,&k);
  
  if(b>a){
    c=b;
    b=a;
    a=c;
  }
  
  for(i=b;i>0;i--){
    if(((b%i==0)&&(a%i==0)){
      n=n+1;
      if(n==k) y=i;
    }
       }
       print("%d\n",y);
       return 0;
       }
  
  

Compiler output:
main.c: In function 'main':
main.c:14:28: error: expected ')' before '{' token
   14 |     if(((b%i==0)&&(a%i==0)){
      |       ~                    ^
      |                            )
main.c:18:8: error: expected expression before '}' token
   18 |        }
      |        ^
main.c:19:8: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |        print("%d\n",y);
      |        ^~~~~
      |        printf
Language: C

#include <stdio.h>
int main (void)
{
        int  a, b,c,d,k[50];
        int  i, j=0;
        scanf("%d%d%d" , &a,&b,&c);

        d=a;
        if (a>b) d=b;

        for(i=1; i<d; i++) {
        if ((a/i==0)&&(b/i==0)) k[j] = i;
        j++
        }

        printf("%d\n",k[j-c]);

        return 0;
        }

Compiler output:
main.c: In function 'main':
main.c:13:12: error: expected ';' before '}' token
   13 |         j++
      |            ^
      |            ;
   14 |         }
      |         ~
Language: C

#include <stdio.h>
int main (void)
{
        int  a, b,c,d,k[100];
        int  i,j;
        scanf("%d%d%d" , &a,&b,&c);

        d=a;
        if (a>b) d=b;

        for(i=1; i<d; i++) {
        if ((a/i==0)&&(b/i==0)) k[j] = i;  
       j++
        }

        printf("%d\n",k[j-c]);

        return 0;
        }

Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected ';' before '}' token
   13 |        j++
      |           ^
      |           ;
   14 |         }
      |         ~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  int A, B, K;
  cin >> A >> B >> K;
  vector<int> result;
  if(A >= B){
    for(int i=B; i>0; i--){
      if(A%i==0 && B%i==0){
        result.push_back(i);
        cout << result[K];
      }
    }
  }
  if(B > A){
    for(int j=A; j>0; j--){
      if(B%j==0 && A%j==0){
        result.push_back(j);
        cout << result[k];
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: 'k' was not declared in this scope
   21 |         cout << result[k];
      |                        ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  int A, B, K;
  cin >> A >> B >> K;
  vector<int> result;
  if(A > B){
    for(int i=1; i<B; i++){
      if(A%i==0 && B%i==0){
        result.push_back(i);
        int l=size(result);
        cout << result[l-K];
      }
    }
  }
  if(B > A){
    for(int j=1; j<A; j++){
      if(B%i==0 && A%i==0){
        result.push_back(i);
        int k=size(result);
        cout << result[k-K];
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'i' was not declared in this scope
   20 |       if(B%i==0 && A%i==0){
      |            ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  int A, B, K;
  cin >> A >> B >> K;
  vector<int> result;
  if(A > B){
    for(int i=1; i<B; i++){
      if(A%i==0 && B%i==0){
        result.push_back(i);
        int l=len(result);
        cout << result[l-K];
      }
    }
  }
  if(B > A){
    for(int j=1; j<A; j++){
      if(B%i==0 && A%i==0){
        result.push_back(i);
        int k=len(result);
        cout << result[k-K];
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'len' was not declared in this scope
   13 |         int l=len(result);
      |               ^~~
a.cc:20:12: error: 'i' was not declared in this scope
   20 |       if(B%i==0 && A%i==0){
      |            ^
a.cc:22:15: error: 'len' was not declared in this scope; did you mean 'mblen'?
   22 |         int k=len(result);
      |               ^~~
      |               mblen
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int A, B, K;
  cin >> A >> B >> K;
  vector<int> result;
  if(A > B){
    for(int i=1; i<B; i++){
      if(A%i==0 && B%i==0){
        result.push_back(i);
        int l=len(result);
        cout << result[l-K];
      }
    }
  }
  if(B > A){
    for(int j=1; j<A; j++){
      if(B%i==0 && A%i==0){
        result.push_back(i);
        int k=len(result);
        cout << result[k-K];
      }
    }
  }
  return 0;
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> result;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> result;
      |          ^~~
a.cc:11:9: error: 'result' was not declared in this scope
   11 |         result.push_back(i);
      |         ^~~~~~
a.cc:12:15: error: 'len' was not declared in this scope
   12 |         int l=len(result);
      |               ^~~
a.cc:19:12: error: 'i' was not declared in this scope
   19 |       if(B%i==0 && A%i==0){
      |            ^
a.cc:20:9: error: 'result' was not declared in this scope
   20 |         result.push_back(i);
      |         ^~~~~~
a.cc:21:15: error: 'len' was not declared in this scope; did you mean 'mblen'?
   21 |         int k=len(result);
      |               ^~~
      |               mblen
Language: C++

#include<iostream>

using namespace std;

int main(){
  int a, b, k;
  sin >> a >> b >> c;
  
  for(int i = min(a, b); i >= 1; --i){
    if(a % i == 0 && b % i == 0){
      k--;
      if(k == 0){
        cout << i << endl;
      }
    }
  }
}


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

#include <iostream>
#include <vector>


using namespace std;



int f(int a, int b)
{
    int r = a % b;
    if (r == 0) {
        return b;
    }
    else {
        return f(b,r);
    }
}

vector< int64_t > divisor(int64_t n) 
{
  vector< int64_t > ret;
  for(int64_t i = 1; i * i <= n; i++) {
    if(n % i == 0) {
        //cout << i << endl;
      ret.push_back(i);
      if(i * i != n) {
          //cout << i << endl;
          ret.push_back(n / i);
      }
    }
  }
  sort(begin(ret), end(ret),greater<int>());
  return (ret);
}

int main() 
{

    int A,B,K;
    cin >> A >> B >> K;
    int c = f(A, B);

    auto v = divisor(c);

    cout << v[K-1] << endl;

    return 0;    
}

Compiler output:
a.cc: In function 'std::vector<long int> divisor(int64_t)':
a.cc:33:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   33 |   sort(begin(ret), end(ret),greater<int>());
      |   ^~~~
      |   short
Language: C

    #include<stdio.h>
     
    int main(void)
    {
         int a,b,c,d,s,i;
     
         scanf("%d%d%d",a,b,s);
         if(a<b) c=b;
         else       c=a;
         i=100;
         while(j=s){
               if((a%i==0)&&(b%i==0)){
               j=j+1;
               i=i-1;
               }
              else i=i-1;
         }
         printf("%d",i);
      
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'j' undeclared (first use in this function)
   11 |          while(j=s){
      |                ^
main.c:11:16: 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,d,s,i;

     scanf("%d%d%d",a,b,s);
     if(a<b) c=b;
     else       c=a;
     i=100;
     while(j=s){
           if((a%i==0)&&(b%i==0)){
           j=j+1;
           i=i-1;
           }
          else i=i-1;
     }
     printf("%d",i);
  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'j' was not declared in this scope
   11 |      while(j=s){
      |            ^
Language: C++

#include"bits/stdc++.h"
using namespace std;
using ll = int64_t;

int main() {
    ll A, B, K;
    cin >> A >> B >> K;

    ll num = 0;
    for (ll i = max(A, B); ; i--) {
        if (A % i == 0 && B % i == 0) {
            if (++num == K) {
                cout << i << endl;
                return 0;
            }
        }
    }

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

#include"bits/stdc++.h"
using namespace std;
using ll = int64_t;

int main() {
    ll A, B, K;
    cin >> A >> B >> K;

    ll num = 0;
    for (ll i = max(A, B); ; i--) {
        if (A % i == 0 && B % i == 0) {
            if (++num == K) {
                cout << i << endl;
                return 0;
            }
        }
    }

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

#include <stdio.h>
int main(void)

{
    int a,b,k,t,i,r,r1,r2;

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

    if((1<=a)&&(a<=100)&&(1<=b)&&(b<=100)&&(1<=k)){
       if(a<b){
         t = a;
         a = b;
         b = t;
       }
       i = b;
       while(k!=0){
            r1 = a%i;
            r2 = b%i;
            if(r1 == r2) {r = i;i--;k = k-1;}
            else i--;
       }
    printf("%d\n",r);
    return 0;
}


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

#include<stdio.h>
int main(void){
  int a, b, k, i, j = 0;

  scanf("%d %d %d", &a, &b, &k);
  for(i = a; j < k; i--){
    if(a % i == 0 && b % i == 0) j++;
  }
  printf("%d\n", i+1);
  return 0;
}

​

Compiler output:
main.c:13:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   13 | ​
      |
Language: C

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

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

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k){
          printf("%d",i);
        }
      }
  }

 return 0;


Compiler output:
main.c: In function 'main':
main.c:21:2: error: expected declaration or statement at end of input
   21 |  return 0;
      |  ^~~~~~
Language: C

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

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

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k){
          printf("%d\n",i);
        }
      }
  }

 return 0;



Compiler output:
main.c: In function 'main':
main.c:21:2: error: expected declaration or statement at end of input
   21 |  return 0;
      |  ^~~~~~
Language: C++

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

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

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k){
          printf("%d\n",i);
        }
      }
  }

 return 0;



Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: expected '}' at end of input
   21 |  return 0;
      |           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
int main(void){
  int a, b, k, i, j = 0;
  
  scanf("%d %d %d", &a, &b, &k);
  if(a >= b){
    for(i = b; j == k || i == 0; i--;){
      if(a % i == 0 && b % i == 0) j++;
    }
  }
  else{
    for(i = a; j == k || i == 0; i--;){
      if(a % i == 0 && b % i == 0) j++;
    }
  }
  printf("%d\n", i);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:37: error: expected ')' before ';' token
    7 |     for(i = b; j == k || i == 0; i--;){
      |        ~                            ^
      |                                     )
main.c:12:37: error: expected ')' before ';' token
   12 |     for(i = a; j == k || i == 0; i--;){
      |        ~                            ^
      |                                     )
Language: C

#include   <stdio.h>
    int main(void)
    {
    int  a, b,c,d,e[50],i;
    
    scanf("%d%d%d" , &a,&b,&c);
     
    e=a;
    if (a<b) e=b;
     
    for(i=1; i<e; i++) {
    if ((a/i==0)&&(b/i==0)) e[i] = i;
    }
     
    printf("%d",e[c]);
     
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:8:6: error: assignment to expression with array type
    8 |     e=a;
      |      ^
main.c:9:15: error: assignment to expression with array type
    9 |     if (a<b) e=b;
      |               ^
main.c:11:15: warning: comparison between pointer and integer
   11 |     for(i=1; i<e; i++) {
      |               ^
Language: C

#include  <stdio.h>
int main(void)
{
int  a, b,c,d,e[50];
int  i;

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

e=a;
if (a<b)  e=b;

for(i=0;i<e;i++) {
if ((a/i==0)&&(b/i==0)) e[i] = i;
}

printf("%d",e[c]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:2: error: assignment to expression with array type
    9 | e=a;
      |  ^
main.c:10:12: error: assignment to expression with array type
   10 | if (a<b)  e=b;
      |            ^
main.c:12:10: warning: comparison between pointer and integer
   12 | for(i=0;i<e;i++) {
      |          ^
Language: C++

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

int main(){
  int A,B,K;
  cin>>A>>B>>K;
  vector<int> vec;
  
  int minAB = min(A,B)
  
  for(int i=0;i<minAB;i++){
    if(A%(i+1)==0 && B%(i+1) ==0)
      vec.push_back(i+1);
  }
  
  reverse(vec.begin(),vec.end());
  cout<<vec.at(K-1)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i=0;i<minAB;i++){
      |   ^~~
a.cc:11:15: error: 'i' was not declared in this scope
   11 |   for(int i=0;i<minAB;i++){
      |               ^
Language: C++

#include <string>
#include <vector>
using namespace std;
int main(int argc, char const *argv[]) {
  int A, B, K, num=100;
  std::cin >> A >> B >> K;
  while(K > 0){
    if(A%num == 0 && B%num == 0){
      K--;
      num--;
    }else num--;
  }
  std::cout << num + 1<< '\n';
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin >> A >> B >> K;
      |        ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:13:8: error: 'cout' is not a member of 'std'
   13 |   std::cout << num + 1<< '\n';
      |        ^~~~
a.cc:13:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int K = sc.nextInt();
    int M = Math.min(A, B);
    List<Integer> list = new ArrayList<>();
    for(int i=1; i<=M; i++){
      if(A%i==0 && B%i==0){
        list.add(i);
      }
    }
    System.out.print(list.get(list.sizze() - K));
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner sc = Scanner(System.in);
                 ^
  symbol:   method Scanner(InputStream)
  location: class Main
Main.java:15: error: cannot find symbol
    System.out.print(list.get(list.sizze() - K));
                                  ^
  symbol:   method sizze()
  location: variable list of type List<Integer>
2 errors
Language: C++

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

c_d = []
for i in range(1, 100):
    if A % i == 0 and B % i == 0:
        c_d.append(i)

c_d.sort(reverse=True)

print(c_d[K-1])


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, K = map(int, input().split())
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'i' was not declared in this scope
    7 |   for(int a; i>=1; i--) {
      |              ^
a.cc:11:13: error: 'k' was not declared in this scope
   11 |     if(cnt==k) {
      |             ^
Language: C++

# include < bits / stdc ++. h >
using namespace std ;
int main () {
int A , B , K ; cin >> A >> B >> K ;
for ( int i = min (A , B ); i >= 1; --i ) {
if ( A % i == 0 && B % i == 0) {
--K ;
if ( K == 0) {
cout << i << endl ;
return 0;
}
}
}
}


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>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
using namespace std;

int main() {
  int A,B,K;
  cin>>A>>B>>K;
  
  int m=min(A,B);
  int count=0;
 
  for(int i=m;i>=1;--i){
    if(A%i==0 && B%i==0){
      ++count;
      if(count==K){
        cout<<i<<endl;
        return;
      }
    }
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |         return;
      |         ^~~~~~
Language: C++

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

int gcd(int x, int y) {
  if(x < y) swap(x, y);
  
  if(x % y == 0) {
    return y;
  } else {
    return gcd(y, x % y); // ユークリッドの互除法
  }

int lcm(int a, int b) {
  return a * b / gcd(a, b);
}

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


Compiler output:
a.cc: In function 'int gcd(int, int)':
a.cc:13:23: error: a function-definition is not allowed here before '{' token
   13 | int lcm(int a, int b) {
      |                       ^
a.cc:17:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 | int main() {
      |         ^~
a.cc:17:9: note: remove parentheses to default-initialize a variable
   17 | int main() {
      |         ^~
      |         --
a.cc:17:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:17:12: error: a function-definition is not allowed here before '{' token
   17 | int main() {
      |            ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:23: note: to match this '{'
    4 | int gcd(int x, int y) {
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int main (){
    int A, B, K, S = 1;
    cin >> A >> B >> K;
    int count = 0;
    int ans[101];
    int i;
    while (S <= A || S <= B){
        if (A % S == 0 && B % S == 0){
            count++;
            S++;
            ans[count] = S-1
        } else {
            S++;
        }
        
    }
    
    
    cout << ans[count-K+1] << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: expected ';' before '}' token
   14 |             ans[count] = S-1
      |                             ^
      |                             ;
   15 |         } else {
      |         ~
Language: C++

#include <iostream>
using namespace std;

int gcd(int x, int y){
  int a,b,temp;
  a = max(x,y);
  b = min(x,y);
  
  while(){
    if(a%b == 0){
      return b;
    }else{
      temp = a%b;
      a = b;
      b = temp;
    }
  }
}


int main(){
  int a,b,k;
  cin>>a>>b>>k;
  
  int g;
  g = gcd(a,b);
  int count=0;
  while(){
    if(a%g == 0 && b%g == 0){
      count++;
      g--;
      if(count==k){
        break;
      }
    }else{
      g--;
    }
  }
  
  cout<<g<<endl;
  return 0;
}
      

Compiler output:
a.cc: In function 'int gcd(int, int)':
a.cc:9:9: error: expected primary-expression before ')' token
    9 |   while(){
      |         ^
a.cc: In function 'int main()':
a.cc:28:9: error: expected primary-expression before ')' token
   28 |   while(){
      |         ^
a.cc: In function 'int gcd(int, int)':
a.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
Language: Java


import java.io.BufferedReader;
import java.io.InputStreamReader;


public class abc117_b {
    public static void main(String[] args) {
        abc117_b main = new abc117_b();
        main.solve(args);
    }

    public void solve(String[] args) {
        MyScanner scanner = new MyScanner();
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int k = scanner.nextInt();
        int max = 0;
        int sum = 0;
        int count = 0;
      
        if(a < b) {
         max = a;
        }else{
         max = b;
        }
        for(int i=max;i>1;i--) {
           if(a%i==0 && b%i==0){
             count++;
             if(count == k){
               System.out.println(count);
             }
           }  
        }
    }

    private class MyScanner {
        String[] s;
        int i;
        BufferedReader br;
        String reg = " ";
        MyScanner () {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        public String next() {
            try {
                if (i < s.length) return s[i++];
                String line = br.readLine();
                while (line.equals("")) {line = br.readLine();}
                s = line.split(reg, 0);
                i = 0;return s[i++];
            } catch (Exception e) {e.printStackTrace();}
            return null;
        }
        public int nextInt() {
            try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public double nextDouble() {
            try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public long nextLong()  {
            try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
    }
}




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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();        
        int K = sc.nextInt();		

        int S [] = {A,B};
        Arrays.sort(S);
        int L [] = S;
        
        for(int n = 0; n == K ;n++) ;
       	
               int p = 1;
               p++;
               
        System.out.println(L[p]);
	    	
	    }
	}


Compiler output:
Main.java:12: error: cannot find symbol
        Arrays.sort(S);
        ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
  int A, B, K;
  cin >> A >> B >> K;
  int i = 1,num = 0;
  while(ture){
    if(A % i == 0 && B % i ==0){
      num++;
    }
    if(num >= K)break;
  }
  cout << i << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ture' was not declared in this scope
    8 |   while(ture){
      |         ^~~~
Language: C++

#include<iostream>

int main(){
  int A, B, K;
  cin >> A >> B >> K;
  int i = 1,num = 0;
  while(ture){
    if(A % i == 0 && B % i ==0){
      num++;
    }
    if(num >= K)break;
  }
  cout << i << 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 >> K;
      |   ^~~
      |   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:7:9: error: 'ture' was not declared in this scope
    7 |   while(ture){
      |         ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << i << 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:13:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << i << 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>
using namespace std;

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

   vector<int> x(k);
   x.at(0)=1;

   for (int i=1; i < k; i++){
       for (int j=x.at(i-1)+1;;j++){
           if(a%j=0 && b%j=0){
               x.at(i)=j;
               break;
           }
       }
   }
   cout << x.at(k-1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: lvalue required as left operand of assignment
   13 |            if(a%j=0 && b%j=0){
      |                   ~~^~~~~~
Language: C++

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

int main() {
int A, B, K; 
cin >> A >> B >> K;
for (int i = min(A, B); i >= 1; i--) {
if (A % i == 0 && B % i == 0) {
K--;
if (K == 0) {
cout << i << endl;
}
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
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,n,c=0;
    cin>>a>>b>>n;
    int big=max(a,b)-1;
    vector<int>com(50);
    for(int i=0;i=<big/2+1;i++){
        if(a%(i+1)==0 && b%(i+1)==0){
                com[c]=i+1;c++;
        }
    }
    cout<<com[c-n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before '<' token
    9 |     for(int i=0;i=<big/2+1;i++){
      |                   ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int A, B, K, M;
  
  cin >> A >> B >> K;
  
  if(A > B)`{
    M = B;
  }
  else{
    M = A;
  }
  
  int a[20] = {};
  int k = 0;
  
  for(int i = 1; i <= M; i++){
    if(A % i == 0 && B % i == 0){
      a[k] = i;
      k += 1;
    }
  }
  
  cout << a[K-1] << endl;
  
  return 0;
}
      


Compiler output:
a.cc:9:12: error: stray '`' in program
    9 |   if(A > B)`{
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int A, B, K, M;
  
  cin >> A >> B >> K;
  
  if(A > B)`{
    M = B;
  }
  else{
    M = A;
  }
  
  int a[20] = {};
  
  for(int i = 1; i <= M; i++){
    if(A % i == 0 && B % i == 0){
      a[k] = i;
    }
  }
  
  cout << a[K+1] << endl;
  
  return 0;
}
      


Compiler output:
a.cc:9:12: error: stray '`' in program
    9 |   if(A > B)`{
      |            ^
a.cc: In function 'int main()':
a.cc:20:9: error: 'k' was not declared in this scope
   20 |       a[k] = i;
      |         ^
Language: C++

using namespace std;
int main(){
    int A,B,K,j=0;
    cin>>A>>B>>K;
    vector<int> vec(100);
    for(int i=1;i<100;i++){
        if(A%i==0&&B%i==0||A%i!=0&&i%(A%i)==0&&B%i==0){
            vec.at(j)=i;
            j++;
        }
    }
    cout<<vec.at(K-1)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>A>>B>>K;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> vec(100);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> vec(100);
      |            ^~~
a.cc:8:13: error: 'vec' was not declared in this scope
    8 |             vec.at(j)=i;
      |             ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<vec.at(K-1)<<endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:11: error: 'vec' was not declared in this scope
   12 |     cout<<vec.at(K-1)<<endl;
      |           ^~~
a.cc:12:24: error: 'endl' was not declared in this scope
   12 |     cout<<vec.at(K-1)<<endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main(){
  int A,B,K;
  cin>>A>>B>>K;


  for(int i=min(A,B);i>=1;--i){
    if((A%i==0)&&(B%i==0)){
      div[k]=i;
      --K;
      if(K==0){
        cout<<i<<endl;
        return 0;
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'k' was not declared in this scope
   14 |       div[k]=i;
      |           ^
Language: C++

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

int main() {
    int A, B, K;
    int ans;
    cin >> A >> B >> K;
    for(int i = min(A,B); i >= 1; i--)
    {
        if(A&i == 0 && B&i == 0) {
            K--;
            if(K == 0) {
                cout << i << endl;
                return 0;
            }
        }

    }
    assert(false);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'assert' was not declared in this scope
   21 |     assert(false);
      |     ^~~~~~
a.cc:2:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    1 | #include <iostream>
  +++ |+#include <cassert>
    2 | //#include <vector>
Language: C++

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

#define ll long long int
#define Mod 1000000007

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n,m; cin>>n>>m;
    int a=__gcd(n,m);
    for(int i=a;i>=1;i--)
    {
        if(a%i==0)
        k--;
        if(k==0)
        {
            cout<<i;
            break;
        }
        
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'k' was not declared in this scope
   17 |         k--;
      |         ^
a.cc:18:12: error: 'k' was not declared in this scope
   18 |         if(k==0)
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b,k,count=0,i,j;
  	cin>>a>>b>>k;
  	
  	for(i=max{(a,b)};i>0;i-=1){
		if(a%i==0 && b%i==0){
          count++;
        }
      	if(count==k){	
          break;
        }
    }
  
  	cout<<i<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    7 |         for(i=max{(a,b)};i>0;i-=1){
      |               ^~~
a.cc:7:29: error: expected ')' before ';' token
    7 |         for(i=max{(a,b)};i>0;i-=1){
      |            ~                ^
      |                             )
a.cc:7:34: error: expected ';' before ')' token
    7 |         for(i=max{(a,b)};i>0;i-=1){
      |                                  ^
      |                                  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b,k,count=0;
  	cin>>a>>b>>k;
  	
  	for(int i=1;i<100;i++){
		if(a%i==0 && b%i==0){
          count++;
        }
      	if(count==k){
			break;
        }
    }
  
  	cout<<i<<endl;
}

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

#include<bits/stdc++.h>

using namespace std;

int main(){
	
  int a,b,k;cin >> a >> b >> k;
  int cnt=0,ans=1;
  for(int i=1;;i++){
  	if(a%i == 0 && b%i == 0) cnt++;
    if(cnt == k) ans = i,break;
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected primary-expression before 'break'
   11 |     if(cnt == k) ans = i,break;
      |                          ^~~~~
Language: C++

#include <bits/stdc++.h>
#include <unistd.h>

using namespace std;

#define DEBUG(x) cerr<<#x<<": "<<x<<endl;
#define DEBUG_VEC(v) cerr<<#v<<":";for(int i=0;i<v.size();i++) cerr<<" "<<v[i]; cerr<<endl
#define DEBUG_MAT(v) cerr<<#v<<endl;for(int i=0;i<v.size();i++){for(int j=0;j<v[i].size();j++) {cerr<<v[i][j]<<" ";}cerr<<endl;}


typedef long long ll;
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
#define pll pair<ll,ll>
template<class S, class T> pair<S, T> operator+(const pair<S, T> &s, const pair<S, T> &t) { return pair<S, T>(s.first + t.first, s.second + t.second); }
template<class S, class T> pair<S, T> operator-(const pair<S, T> &s, const pair<S, T> &t) { return pair<S, T>(s.first - t.first, s.second - t.second); }
template<class S, class T> ostream& operator<<(ostream& os, pair<S, T> p) { os << "(" << p.first << ", " << p.second << ")"; return os; }
#define X first
#define Y second
#define rep(i,n) for(int i=0;i<(n);i++)
#define rep1(i,n) for(int i=1;i<=(n);i++)
#define rrep(i,n) for(int i=(n)-1;i>=0;i--)
#define rrep1(i,n) for(int i=(n);i>0;i--)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define in(x, a, b) (a <= x && x < b)
#define all(c) c.begin(),c.end()
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a = b; return 1; } return 0; }
#define UNIQUE(v) v.erase(std::unique(v.begin(), v.end()), v.end());
const ll inf = 1000000001;
const ll INF = (ll)1e18 + 1;
const ll MOD = 1000000007;
//const ll MOD = 998244353;
const double pi = 3.14159265358979323846;
#define Sp(p) cout<<setprecision(15)<< fixed<<p<<endl;
int dx[4] = { 1,0, -1,0 }, dy[4] = { 0,1,0,-1 };
int dx2[8] = { 1,1,0,-1,-1,-1,0,1 }, dy2[8] = { 0,1,1,1,0,-1,-1,-1 };
#define fio() cin.tie(0); ios::sync_with_stdio(false);
//#define mp make_pair



int main() {
  int a, b, k;
  cin >> a >> b >> k;
  vi div;
  rep1 (i, 100) {
    if (a % i == 0 && b % i == 0) div.push_back(i);
  }
  reverse(all(i));
  cout << div[k - 1] << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:56:15: error: 'i' was not declared in this scope
   56 |   reverse(all(i));
      |               ^
a.cc:32:16: note: in definition of macro 'all'
   32 | #define all(c) c.begin(),c.end()
      |                ^
Language: C++

#include "bits/stdc++.h"

using namespace std;

#define ll long long
#define vi  vector<int>
#define vvi vector<vi>
#define pi  pair<int,int>
#define mp  make_pair
#define pb  push_back
#define MOD 1e9 + 7
#define PAI  3.1415
#define all(x) (x).begin(),(x).end()
#define chmax(x,y) x = max(x,y)
#define chmin(x,y) x = min(x,y)
#define pr(x) cout << x << endl
#define Endl endl
#define rep(i,n) for(int i = 0 ; i < n; i++)

const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
const int ddx[8] = {-1,0,1,-1,1,-1,0,1};
const int ddy[8] = {-1,-1,-1,0,0,1,1,1};
const int inf = 99999999;
const ll linf = 1LL << 62;

ll gcd(ll a,ll b){
  if(a < b)swap(a , b);
  if(a % b == 0) return b;
  else gcd(b, a%b);
}

ll lcm(ll a,ll b){
  if(a < b)swap(a , b);
  return (a/gcd(a , b))*b;
}

struct UnionFind {
  vi par; //par[i] : iの親番号（例）par[3] = 2 : 3の親は2

  UnionFind(int N) : par(N) { //最初は全てが根として初期化
    rep(i,N) par[i] = i;
  }

  int root(int x){ //データxが属する木の根を再帰で得る : root(x) = {xの木の根}
    if(par[x] == x)return x;
    return par[x] = root(par[x]);
  }

  void unite(int x, int y){ //xとyの木を併合
    int rx = root(x); //xの根をrx
    int ry = root(y); //yの根をry
    if(rx == ry)return; //xとyの根が同じ
    par[rx] = ry; //xとyの根が同じでない時、xの根rxをyの根にryにつける。
  }

  bool same(int x, int y){//2つのデータx，yが属する木が同じならtrueを返す
    int rx = root(x);
    int ry = root(y);
    return rx == ry;
  }
};


int main(){

  int A, B, K; cin >> A >> B >> K;

  vi ans(100);

  for(int i = 1; i <= min(A,B); i++)
  {
    if (A % i == 0 and B % i == 0)
      ans.pb(i);
  }

  pr(pb[K - 1]);

 return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'push_back' was not declared in this scope
   10 | #define pb  push_back
      |             ^~~~~~~~~
a.cc:16:23: note: in definition of macro 'pr'
   16 | #define pr(x) cout << x << endl
      |                       ^
a.cc:77:6: note: in expansion of macro 'pb'
   77 |   pr(pb[K - 1]);
      |      ^~
a.cc: In function 'long long int gcd(long long int, long long int)':
a.cc:30:11: warning: control reaches end of non-void function [-Wreturn-type]
   30 |   else gcd(b, a%b);
      |        ~~~^~~~~~~~
Language: C++

#include "bits/stdc++.h"

using namespace std;

#define ll long long
#define vi  vector<int>
#define vvi vector<vi>
#define pi  pair<int,int>
#define mp  make_pair
#define pb  push_back
#define MOD 1e9 + 7
#define PAI  3.1415
#define all(x) (x).begin(),(x).end()
#define chmax(x,y) x = max(x,y)
#define chmin(x,y) x = min(x,y)
#define pr(x) cout << x << endl
#define Endl endl
#define rep(i,n) for(int i = 0 ; i < n; i++)

const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
const int ddx[8] = {-1,0,1,-1,1,-1,0,1};
const int ddy[8] = {-1,-1,-1,0,0,1,1,1};
const int inf = 99999999;
const ll linf = 1LL << 62;

ll gcd(ll a,ll b){
  if(a < b)swap(a , b);
  if(a % b == 0) return b;
  else gcd(b, a%b);
}

ll lcm(ll a,ll b){
  if(a < b)swap(a , b);
  return (a/gcd(a , b))*b;
}

struct UnionFind {
  vi par; //par[i] : iの親番号（例）par[3] = 2 : 3の親は2

  UnionFind(int N) : par(N) { //最初は全てが根として初期化
    rep(i,N) par[i] = i;
  }

  int root(int x){ //データxが属する木の根を再帰で得る : root(x) = {xの木の根}
    if(par[x] == x)return x;
    return par[x] = root(par[x]);
  }

  void unite(int x, int y){ //xとyの木を併合
    int rx = root(x); //xの根をrx
    int ry = root(y); //yの根をry
    if(rx == ry)return; //xとyの根が同じ
    par[rx] = ry; //xとyの根が同じでない時、xの根rxをyの根にryにつける。
  }

  bool same(int x, int y){//2つのデータx，yが属する木が同じならtrueを返す
    int rx = root(x);
    int ry = root(y);
    return rx == ry;
  }
};


int main(){

  int A, B, K; cin >> A >> B >> K;

  vi ans(100);

  for(int i = 1; i <= min(A,B); i++)
  {
    if (A % i == 0 and B % i == 0)
      ans.pb(i);
  }

  pr(pb(K - 1));

 return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'push_back' was not declared in this scope
   10 | #define pb  push_back
      |             ^~~~~~~~~
a.cc:16:23: note: in definition of macro 'pr'
   16 | #define pr(x) cout << x << endl
      |                       ^
a.cc:77:6: note: in expansion of macro 'pb'
   77 |   pr(pb(K - 1));
      |      ^~
a.cc: In function 'long long int gcd(long long int, long long int)':
a.cc:30:11: warning: control reaches end of non-void function [-Wreturn-type]
   30 |   else gcd(b, a%b);
      |        ~~~^~~~~~~~
Language: C

#include <stdio.h>
int main(void){
  int A,B,K,a;
  scanf("%d %d %d",&A,&B,&K);
  if(A>=B){
    a=B;
  }
  a=A;
  for(int i=a;i>=1;--i){
    if(A%i==0 && B%i==0){
      --K;
      if(K==0){
        printf("%d",i);
        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>
using namespace std;
int main(){
	int a,b,k;
  cin>>a>>b>>k;
  int end=a>b? b:a;
  int count=0;
  for(int i=end;i>0;i--){
    if( !(b%i) && !(a%i))
      count++;
    if (count==k)
      return i;
  }

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected ';' before 'i'
    8 | for(i=100; i>1 i++){
      |               ^~
      |               ;
main.c:10:15: error: expected ';' before 'return'
   10 | if(count==k) i
      |               ^
      |               ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include <iostream>
int main() {
    int A, B, K;
    int count = 0, divide=1;
    cin >> A >> B >> K;
    while (true) {
        if ((A % divide == 0) && (B % divide == 0)) count++;
        if (count == K) break;
        divide++;
    }
    cout << divide << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> A >> B >> K;
      |     ^~~
      |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << divide << 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:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << divide << 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>
    using namespace std;
    int main()
    {
      intA, B, C; 
      cin  >> A >> B >> C;
    int ans = min(B / A, C);
      cout  << ans  << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'intA' was not declared in this scope; did you mean 'int'?
    5 |       intA, B, C;
      |       ^~~~
      |       int
a.cc:5:13: error: 'B' was not declared in this scope
    5 |       intA, B, C;
      |             ^
a.cc:5:16: error: 'C' was not declared in this scope
    5 |       intA, B, C;
      |                ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |       cin  >> A >> B >> C;
      |               ^
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int　A, B, K;
  cin >> A >> B >> K;
  vector<int>by(K);
  int c = 0;
  for(int i = 0; i < max(A, B); i++){
    if(A % i == 0 && B % i == 0){
      by.at(c) = i;
      c++;
      if(c == K-1){
        break;
      }
    }
    
  }
  cout << by.at(K-1) << endl;
}

Compiler output:
a.cc:4:3: error: extended character 　 is not valid in an identifier
    4 |   int　A, B, K;
      |   ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'int\U00003000A' was not declared in this scope
    4 |   int　A, B, K;
      |   ^~~~~~
a.cc:4:11: error: 'B' was not declared in this scope
    4 |   int　A, B, K;
      |           ^
a.cc:4:14: error: 'K' was not declared in this scope
    4 |   int　A, B, K;
      |              ^
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A >> B >> K;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int　A, B, K;
  cin >> A >> B >> K;
  vector<int>by(K);
  int c = 0;
  for(int i = 0; i < max(A, B); i++){
    if(A % i == 0 && b % I == 0){
      by.at(c) = i;
      c++;
      if(c == K-1){
        break;
      }
    }
    
  }
  cout << by.at(K-1) << endl;
}

Compiler output:
a.cc:4:3: error: extended character 　 is not valid in an identifier
    4 |   int　A, B, K;
      |   ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'int\U00003000A' was not declared in this scope
    4 |   int　A, B, K;
      |   ^~~~~~
a.cc:4:11: error: 'B' was not declared in this scope
    4 |   int　A, B, K;
      |           ^
a.cc:4:14: error: 'K' was not declared in this scope
    4 |   int　A, B, K;
      |              ^
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A >> B >> K;
      |          ^
a.cc:9:22: error: 'b' was not declared in this scope
    9 |     if(A % i == 0 && b % I == 0){
      |                      ^
a.cc:9:26: error: 'I' was not declared in this scope
    9 |     if(A % i == 0 && b % I == 0){
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int　A, B, K;
  cin >> A >> B >> K;
  vector<int>by(K);
  int c = 0;
  for(int i = 0; i < max(A, B), i++){
    if(A % i == 0 && b % I == 0){
      by.at(c) = i;
      c++;
      if(c == k-1){
        break;
      }
    }
    
  }
  cout << by.at(k-1) << endl;
}

Compiler output:
a.cc:4:3: error: extended character 　 is not valid in an identifier
    4 |   int　A, B, K;
      |   ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'int\U00003000A' was not declared in this scope
    4 |   int　A, B, K;
      |   ^~~~~~
a.cc:4:11: error: 'B' was not declared in this scope
    4 |   int　A, B, K;
      |           ^
a.cc:4:14: error: 'K' was not declared in this scope
    4 |   int　A, B, K;
      |              ^
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A >> B >> K;
      |          ^
a.cc:8:36: error: expected ';' before ')' token
    8 |   for(int i = 0; i < max(A, B), i++){
      |                                    ^
      |                                    ;
a.cc:9:22: error: 'b' was not declared in this scope
    9 |     if(A % i == 0 && b % I == 0){
      |                      ^
a.cc:9:26: error: 'I' was not declared in this scope
    9 |     if(A % i == 0 && b % I == 0){
      |                          ^
a.cc:12:15: error: 'k' was not declared in this scope
   12 |       if(c == k-1){
      |               ^
a.cc:18:17: error: 'k' was not declared in this scope
   18 |   cout << by.at(k-1) << endl;
      |                 ^
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(){
  int a,b,k;
  int i;
  scanf("%d %d %d",&a,&b,&k);
  int *sosuu;
  sosuu=malloc(k*sizeof(int));
  int count=0;
  
  for(i=1;i<max;i++){
    if(a%i==0&&b%i==0)
      sosuu[count++]=i;
    if(count==k)
      break;
  }
  printf("%d",sosuu[k-1]);
    	
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: 'max' undeclared (first use in this function)
   11 |   for(i=1;i<max;i++){
      |             ^~~
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(){
  int a,b,k;
  int i;
  scanf("%d %d %d",&a,&b,&k);
  int *sosuu;
  sosuu=malloc(k*sizeof(int));
  int max;
  if(a>b)
    max=a;
  else
    max=b;
  int count=0;
  for(i=1;i<max;i++){
    if(a%i==0&&b%i==0)
      sosuu[count++]=i;
    if(count==c)
      break;
  }
  printf("%d",sosuu[count-1]);
    	
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:15: error: 'c' undeclared (first use in this function)
   18 |     if(count==c)
      |               ^
main.c:18:15: note: each undeclared identifier is reported only once for each function it appears in