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

#include<stdio.h>
 
int main()
{
	__int64 a,b,m,n,x,gcd,lcm;
	
	while(scanf("%I64u %I64u",&a,&b)==2)
	{
		m=a;
		n=b;
		while(1){
			if(!(x=m%n)){
				gcd=n;
				break;
			}
			m=n;
			n=x;
		}
		lcm=a*b/gcd;
		printf("%I64u %I64u\n",gcd,lcm);
	}
	return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    5 |         __int64 a,b,m,n,x,gcd,lcm;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>

int main(void){
	__int64 a,b;
	__int64 data;
	__int64 max,min,high,low;	//max=Ååöñ,min=Å¬ö{
	
	while(scanf("%I64u %I64u",&a,&b)==2){
		printf("\n%I64u %I64u\n",a,b);
		if(a<b){
			data=a;
			a=b;
			b=data;
		}
		if(b==0) max=a;
		else{
			data=a%b;
			low=b;
			while(data!=0){
				high=low;
				low=data;
				data=high%low;
			}
			max=low;
		}
		min=a*b/max;
		
		printf("%I64u %I64u\n",max,min);
	}
	
	return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |         __int64 a,b;
      |         ^~~~~~~
      |         __int64_t
main.c:5:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    5 |         __int64 data;
      |         ^~~~~~~
      |         __int64_t
main.c:6:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 |         __int64 max,min,high,low;       //max=Ååöñ,min=Å¬ö{
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<cstdio>

using namespace std;

int gcd(int a,int b){
	if(!b) return a;
	else return gcd(b,a%b);
}

int main(void){
	int a,b;
	int g;

	for(;scanf("%d%d",&a,&b)==2;){
		g=gcd(a,b);
		printf("%d %d\n",g,a/g*b);
	}

	return 0;
}

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

#include<stdio.h>
int a,b,c,i,j,lcm,x,y,n,m,z;
long o[2000000000],p[2000000000];
int main(void){
    while(scanf("%d%d",&a,&b) != EOF){
    if(a>=b){
    c=a;
    a=b;
    b=c;
        }
    for(x=a;x>=1;x=x-1){
        if(a%x==0){
            m=a/x;
            o[m]=a/x;

        /*printf("%d\n",o[m]);*/

        }
    }

    for(y=b;y>=1;y--){
        if(b%y==0){
            n=b/y;
            p[n]=b/y;

           /* printf("%d\n",p[n]);*/
            for(i=0;i<=b;i++){
                if(o[i]==p[n]){
                    z=n;
                    /*printf("--%d\n",p[z]);*/


                }
            }
        }
    }
     j=a*b/p[z];
    /*printf("G.C.D=%d\n",p[z]);
    printf("L.C.M=%d\n",j);*/
    printf("%d %d\n",p[z],j);
}
    return 0;
}

Compiler output:
/tmp/cc2AWae3.o: in function `main':
main.c:(.text+0x123): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cc2AWae3.o
main.c:(.text+0x165): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cc2AWae3.o
main.c:(.text+0x1df): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cc2AWae3.o
main.c:(.text+0x20b): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cc2AWae3.o
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
int a,b,c,i,j,lcm,x,y,n,m,z;
int o[2000000000],p[2000000000];
int main(void){
    while(scanf("%d%d",&a,&b) != EOF){
    if(a>=b){
    c=a;
    a=b;
    b=c;
        }
    for(x=a;x>=1;x=x-1){
        if(a%x==0){
            m=a/x;
            o[m]=a/x;

        /*printf("%d\n",o[m]);*/

        }
    }

    for(y=b;y>=1;y--){
        if(b%y==0){
            n=b/y;
            p[n]=b/y;

           /* printf("%d\n",p[n]);*/
            for(i=0;i<=b;i++){
                if(o[i]==p[n]){
                    z=n;
                    /*printf("--%d\n",p[z]);*/


                }
            }
        }
    }
     j=a*b/p[z];
    /*printf("G.C.D=%d\n",p[z]);
    printf("L.C.M=%d\n",j);*/
    printf("%d %d\n",p[z],j);
}
    return 0;
}

Compiler output:
/tmp/cciG6v8r.o: in function `main':
main.c:(.text+0x122): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cciG6v8r.o
main.c:(.text+0x162): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cciG6v8r.o
main.c:(.text+0x1d8): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cciG6v8r.o
main.c:(.text+0x201): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/cciG6v8r.o
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int gcd(long long int a, long long int b);
int max(long long int a, long long int b);

int main()
{
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF) printf("%d %d\n", gcd(a, b), a * (b / gcd(a, b)));
	return 0;
}

int gcd(long long int a, long long int b)
{
	while(a * b) {
		if(a < b) b %= a;
		else a %= b;
	}
	return max(a, b);
}

int max(int a, int b)
{
	if(a >= b) return a;
	else return b;
}

Compiler output:
main.c:22:5: error: conflicting types for 'max'; have 'int(int,  int)'
   22 | int max(int a, int b)
      |     ^~~
main.c:4:5: note: previous declaration of 'max' with type 'int(long long int,  long long int)'
    4 | int max(long long int a, long long int b);
      |     ^~~
Language: C

#include<stdio.h>

int main(void)
{
	long long a, b, sum, temp;
	while(scanf("%lld %lld",&a,&b)
	{
		if(a < b){
			temp = a;
			a = b;
			b = temp;
		}
		sum = a * b;
		while(b != 0)
		{
			a %= b;
			temp = a;
			a = b;
			b = temp;
		}
		printf("%lld %lld\n",a,sum/a);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:39: error: expected ')' before '{' token
    6 |         while(scanf("%lld %lld",&a,&b)
      |              ~                        ^
      |                                       )
    7 |         {
      |         ~                              
main.c:24:1: error: expected expression before '}' token
   24 | }
      | ^
Language: C

#include<stdio.h>
int max(int,int);
int min(int,int);
int main(){
  int n,m;
  while(scanf("%d %d",&n,&m)!=EOF){
    printf("%d %d\n",max(n,m),min(n,m));
  }
   return 0;
}
int max(int n,int m){
  int tmp,i,j,num=0;
  if(n>m){
    tmp=n;
    n=m;
    m=tmp;
  }
  for(i=2;i<n;i++){
    if(n%i==0&&m%i==0){
      num=i;
    }
  }
  return num;
}
int min(int n,int m){
  int i,j=1,num=0,tmp;
  for(i=1;;i++){
    for(j;;j++){
      if(i*m==j*n){
	num=i*m;
      }
      if(m*i<n*j){
	break;
      }
    }
    if(num!=0){
      break;
    }
  }
  return num;

Compiler output:
main.c: In function 'min':
main.c:40:3: error: expected declaration or statement at end of input
   40 |   return num;
      |   ^~~~~~
Language: C

#include <stdio.h>

int gcd(int n1, int n2)
{
  int n3;

  while (n1 != 0){
    n3 = n2;
    n2 = n1;
    n1 = n3 % n2;
  }

  return n2;
}

int main(void)
{
  int a[1000], b[1000];
  int i;

  i = 0;
  while (scanf("%d%d", &a[i], &b[i]) != EOF){
    i++;
  }

  for (j = 0; j < i; j++){
    printf("%d %d\n", gcd(a[j], b[j]), (a[j] * b[j] /gcd(a[j], b[j])));
  }
  return 0;
}

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

#include<stdio.h>

int gcd(long long, long long);
int gcd(long long a, long long b) {
  if(b == 0) {
    return a;
  } else {
    return gcd(b, a % b);
  };
}

int main(0 {
  long long a, b, temp, gcdr, lcmr;

  scanf("%lld %lld", &a, &b);
  if(a < b) {
    temp = b;
    b = a;
    a = temp;
  };

  gcdr = gcd(a , b);
  lcmr = a * b / gcdr;

  printf("%lld %lld", gcdr, lcmr);

  return 0;
}

Compiler output:
main.c:12:10: error: expected declaration specifiers or '...' before numeric constant
   12 | int main(0 {
      |          ^
Language: C

#include <stdio.h>
#include <math.h>

int GCD(int x, int y){
    int temp;
    if(x <= y){
        temp = x;
        x = y;
        y = temp;
    }
    
    if(y == 0) return x;
    else{
        temp = y;
        y = x % y;
        x = temp;
        return GCD(x, y);
    }
}

int LCM(int x, int y, int gcd){
    return x * y / gcd;
}
        
int main(void){
  
    //int n, i;
    int a, b;
    
    while(scanf("%d %d", &a, &b) == 2){
        printf("%d %d\n", GCD(a, b), LCM(a, b, GCD(a,b)));
    }
    return 0;
    

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

#include <iostream>
using namespace std;

int GCD(int a, int b)
{
    int temp;
    while(temp!=0)
    {
      temp=a%b;
      a=b;
      b=temp;
    }
    return a;
}
int main()
{
    int a,b,lcm,gcd;
    while(1)
    {
    cin>>a>>b
    gcd=GCD(a,b);
    lcm=a*b/gcd;
    cout<<gcd<<" "<<lcm<<"\n";
    }
    return 0;
}

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

#include<stdio.h>
int main()
{
	long m,n,t,h;
	while(scanf("%d%d",&m,&n)!=EOF)
	{
		t=gcd(m,n);
	    h=m*(n/t);
	    printf("%d %d\n",t,h);
	}
	return 0;
}
long gcd(int a,int b)
{
	long g;
	if(!b)g=a;
	else g=gcd(b,a%b);
	return g;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
    7 |                 t=gcd(m,n);
      |                   ^~~
main.c: At top level:
main.c:13:6: error: conflicting types for 'gcd'; have 'long int(int,  int)'
   13 | long gcd(int a,int b)
      |      ^~~
main.c:7:19: note: previous implicit declaration of 'gcd' with type 'int()'
    7 |                 t=gcd(m,n);
      |                   ^~~
Language: C

#include <stdio.h>

int cmp_max(int a, int b){
  if(a < b){
    return (b);
  }else{
    return (a);
  }
}

int cmp_min(int a, int b){
  if(a < b){
    return (a);
  }else{
    return (b);
  }
}
int main(){
  long long int a, b,t;
  long long int result1, result2;
  long long int min, max;
  while(scanf("%lld %lld", &a, &b) != EOF){
    result1 = result2 = 0;
    min = cmp_min(a, b);
    max = cmp_max(a, b);
    while((max % min) != 0){
      t = min
      min = max % min;
      max = t;
    }
    result1 = min;
    result2 = a*b/result1;
    printf("%lld %lld\n", result1, result2);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:14: error: expected ';' before 'min'
   27 |       t = min
      |              ^
      |              ;
   28 |       min = max % min;
      |       ~~~
Language: C

#include<stdio.h>

int create_gcd(int,int);

int main(){
  int a,b,ab,gcd,lcm;

  while(scanf("%11d %11d",&a,&b) != EOF){
    ab=a*b;
    gcd=create_gcd(a,b);
    lcm=ab/gcd;
    printf("%11d %11d\n",gcd,lcm);
  }

  return 0;
  }
}

int create_gcd(int a, int b){
  int tmp;
  int gcd=0;

  if(a<=b){
    while(1){
      tmp=b%a;
      if(tmp==0){
        gcd=a;
        break;
      }
      b=a;
      a=tmp;
    }
  }else if(a>b){
    while(1){
      tmp=a%b;
      if(tmp==0){
        gcd=b;
        break;
      }
      a=b;
      b=tmp;
    }
  }
  return gcd;
}

Compiler output:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>

int create_gcd(int,int);

int main(){
  int a,b,ab,gcd,lcm;

  while(scanf("%11d %11d",&a,&b) != EOF){
    ab=a*b;
    gcd=create_gcd(a,b);
    lcm=ab/gcd;
    printf("%11d %11d\n",gcd,lcm);
  }

  return 0;
}

int create_gcd(int a, int b){
  int tmp;
  if(a<b){
    tmp=a;
    a=b;
    b=tmp;
  } 

  if(b==0) return a;
  else return gcd(b,a%b);
}

Compiler output:
main.c: In function 'create_gcd':
main.c:27:15: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   27 |   else return gcd(b,a%b);
      |               ^~~
Language: C

#include<stdio.h>

int create_gcd(int,int);

int main(){
  int a,b;

  while(scanf("%d %d",&a,&b) != EOF){
    printf("%d %d\n",create_gcd(a,b),a/gcd(a,b)*b);
  }

  return 0;
}

int create_gcd(int a, int b){
  int tmp;
  if(a<b){
    tmp=a;
    a=b;
    b=tmp;
  } 

  if(b==0) return a;
  else return create_gcd(b,a%b);
}

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

#include <stdio.h>

int gcd(int a,int b)
{
	int t;
	
	if(a<b){
			t=a;a=b;b=t;
		}
		while(b!=0){
			r=a%b;
			a=b;
			b=r;
		}
		
		return a;
}

int lcm(int a,int b)
{
	int i,t;
	
	if(a<b){
		t=a;a=b;b=t;
	}
	for(i=1;;i++){
		if((a*i)%b==0){
			return a*i;
		}
	}
}

int main()
{
	int a,b;
	
	while(scanf("%d %d",&a,&b)!=EOF){
		printf("%d %d\n",gcd(a,b),lcm(a,b));
	}
	return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:11:25: error: 'r' undeclared (first use in this function)
   11 |                         r=a%b;
      |                         ^
main.c:11:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>

int main(){
	unsigned long long int a, b, c, d;
	unsigned long long int i, j;
	if(a > b){
		d = a;
		a = b;
		b = d;
	}
	while(scanf("%lld %lld", &a, &b) != EOF){
		for(i = a; i < 200000000; i += a){
			if(i < b) continue;
			if(i % b == 0){
				d = i;
				break;
			}
		}
		for(i = a; i >= 1; i--){
			if(a % i != 0 || b % i |= 0) continue;
			else c = i;
		}
		printf("%lld %lld\n", c, d);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:48: error: lvalue required as left operand of assignment
   21 |                         if(a % i != 0 || b % i |= 0) continue;
      |                                                ^~
Language: C

#include<stdio.h>
#include<math.h>

int main(){
	unsigned long long int a, b, c, d;
	unsigned long long int i, j;
	if(a > b){
		d = a;
		a = b;
		b = d;
	}
	while(scanf("%lld %lld", &a, &b) != EOF){
		for(i = a; i < 200000000; i += a){
			if(i < b) continue;
			if(i % b == 0){
				d = i;
				break;
			}
		}
		for(i = a; i >= 1; i--){
			if(a % i != 0 || b % i |= 0){
				continue;
			}else{
				c = i;
			}
		}
		printf("%lld %lld\n", c, d);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:48: error: lvalue required as left operand of assignment
   21 |                         if(a % i != 0 || b % i |= 0){
      |                                                ^~
Language: C

#include <stdio.h>
/* 二つの整数x,yの最大公約数を求める関数(x>=y) */
unsigned long gcdf(unsinged long vx,unsinged long vy)
{
 return (!vy) ? vy : gcdf(vy,vx%vy);
}

/* 二つの整数x,yの最大公約数を求める関数(大きいほうを自動的に取り出すようにする。 */
unsigned long gcd(unsigned long vx,unsigned long vy)
{
 return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
}
 
int main()
{
  unsigned long x,y;
  while(scanf("%lu %lu",&x,&y)!=EOF){
  printf("%lu %lu\n",gcd(x,y),x*y/(gcd(x,y)));
  }
  return 0;
}

Compiler output:
main.c:3:20: error: unknown type name 'unsinged'; did you mean 'unsigned'?
    3 | unsigned long gcdf(unsinged long vx,unsinged long vy)
      |                    ^~~~~~~~
      |                    unsigned
main.c:3:37: error: unknown type name 'unsinged'; did you mean 'unsigned'?
    3 | unsigned long gcdf(unsinged long vx,unsinged long vy)
      |                                     ^~~~~~~~
      |                                     unsigned
main.c: In function 'gcd':
main.c:11:19: error: implicit declaration of function 'gcdf'; did you mean 'gcd'? [-Wimplicit-function-declaration]
   11 |  return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
      |                   ^~~~
      |                   gcd
Language: C

#include <stdio.h>
/* 二つの整数x,yの最大公約数を求める関数(x>=y) */
int gcdf(int vx,int vy)
{
 return (!vy) ? vx : gcdf(vy,vx%vy);
}

/* 二つの整数x,yの最大公約数を求める関数(大きいほうを自動的に取り出すようにする。 */
int gcd(int vx,int vy)
{
 return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
}
 
int main()
{
  int a,b;
  while(scanf("%d %d",&a,&b)!=EOF){
  printf("%d %d\n",gcd(a,b),(a*b)/(gcd(a,b));
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:45: error: expected ')' before ';' token
   18 |   printf("%d %d\n",gcd(a,b),(a*b)/(gcd(a,b));
      |         ~                                   ^
      |                                             )
main.c:18:46: error: expected ';' before '}' token
   18 |   printf("%d %d\n",gcd(a,b),(a*b)/(gcd(a,b));
      |                                              ^
      |                                              ;
   19 |   }
      |   ~
Language: C

#include <stdio.h>
/* 二つの整数x,yの最大公約数を求める関数(x>=y) */
int gcdf(int vx,int vy)
{
 return (!vy) ? vx : gcdf(vy,vx%vy);
}

/* 二つの整数x,yの最大公約数を求める関数(大きいほうを自動的に取り出すようにする。 */
int gcd(int vx,int vy)
{
 return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
}
 
int main()
{
  while(scanf("%d %d",&a,&b)!=EOF)
  int a=0,b=0;
  printf("%d %d\n",gcd(a,b),(a*b)/(gcd(a,b)));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:24: error: 'a' undeclared (first use in this function)
   16 |   while(scanf("%d %d",&a,&b)!=EOF)
      |                        ^
main.c:16:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:27: error: 'b' undeclared (first use in this function)
   16 |   while(scanf("%d %d",&a,&b)!=EOF)
      |                           ^
main.c:17:3: error: expected expression before 'int'
   17 |   int a=0,b=0;
      |   ^~~
Language: C

#include <stdio.h>
/* 二つの整数x,yの最大公約数を求める関数(x>=y)
int gcdf(int vx,int vy)
{
 return (!vy) ? vy : gcdf(vy,vx%vy);
}

/* 二つの整数x,yの最大公約数を求める関数(大きいほうを自動的に取り出すようにする。 */
int gcd(int vx,int vy)
{
 return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
}

int main()
{
  int a,b;
  while(scanf("%d %d",&a,&b)!=EOF)
 {
   printf("%d %d\n",gcd(a,b),(a/gcd(a,b))*b);
  }
  return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:11:19: error: implicit declaration of function 'gcdf'; did you mean 'gcd'? [-Wimplicit-function-declaration]
   11 |  return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
      |                   ^~~~
      |                   gcd
Language: C

#include<stdio.h>
/* 二つの整数x,yの最大公約数を求める関数(x>=y)
int gcdf(int vx,int vy)
{
 return (!vy) ? vx : gcdf(vy,vx%vy);
}

/* 二つの整数x,yの最大公約数を求める関数(大きいほうを自動的に取り出すようにする。 */
int gcd(int vx,int vy)
{
 return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
}

int main()
{
 int a,b;
 while(scanf("%d %d",&a,&b)!=EOF){
          printf("%d %d",gcd(a,b),(a/gcd(a,b))*b);
         }
return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:11:19: error: implicit declaration of function 'gcdf'; did you mean 'gcd'? [-Wimplicit-function-declaration]
   11 |  return (vx>vy) ? gcdf(vx,vy) : gcdf(vy,vx);
      |                   ^~~~
      |                   gcd
Language: C

#include<stdio.h>
int main(void){
    int a,b,i;
    for(scanf("%d%d",&a,&b)!=EOF){
        if(a<b){
            i=a;
            a=b;
            b=i;
        }
        i=b;
        while((a%i)!=0 || (b%i)!=0 || i!=1;){
            i--;
        }
        printf("%d %d\n",i,(a/i)*b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ';' before ')' token
    4 |     for(scanf("%d%d",&a,&b)!=EOF){
      |                                 ^
main.c:4:33: error: expected expression before ')' token
main.c:11:43: error: expected ')' before ';' token
   11 |         while((a%i)!=0 || (b%i)!=0 || i!=1;){
      |              ~                            ^
      |                                           )
Language: C

#include<stdio.h>
int main(void){
    int a,b,i;
    for(scanf("%d%d",&a,&b)!=EOF){
        if(a<b){
            i=a;
            a=b;
            b=i;
        }
        i=b;
        while((a%i)!=0 || (b%i)!=0 || i!=1){
            i--;
        }
        printf("%d %d\n",i,(a/i)*b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ';' before ')' token
    4 |     for(scanf("%d%d",&a,&b)!=EOF){
      |                                 ^
main.c:4:33: error: expected expression before ')' token
Language: C

#include <stdio.h>

int main(){
int a,b;
int x,y,i,j;

while(scanf("%d %d",&a,&b) != EOF){
if(a>=b){
for(i=2;i<=b,i++){
if(a%i==0 && b%i==0){
x=i;
}
}
}
else if(b>a){
for(i=2;i<=a,i++){
if(a%i==0 && b%i==0){
x=i;
}
}
}
if(a>=b){
for(i=1;i<11;i++){
for(j=1;j<11;j++){
if(a*i==b*j){
y=a*i;
break;
}
}
if(a*i==b*j)break;
}
}
else if(b>a){
for(i=1;i<11;i++){
for(j=1;j<11;j++){
if(b*i==a*j){
y=a*i;
break;
}
}
if(a*i==b*j)break;
}
}
printf("%d %d\n",x,y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected ';' before ')' token
    9 | for(i=2;i<=b,i++){
      |                 ^
      |                 ;
main.c:16:17: error: expected ';' before ')' token
   16 | for(i=2;i<=a,i++){
      |                 ^
      |                 ;
Language: C

include <stdio.h>

int main(void){
	int n = 0, m = 0, r = 0, c = 0;
	while (scanf("%d %d",&m,&n) != EOF){
		c = n * m;
		if(n > m){
			r = n;
			n = m;
			m = r;
		}
		while (n > 0){
			r = n;
			n = m % n;
			m = r;
		}
		printf("%d %d\n",m,(c / m));
	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
 
int main (void) {
	unsigned __int64 a , b , c, tmp, r;     
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    4 |         unsigned __int64 a , b , c, tmp, r;
      |                          ^
main.c:4:26: error: 'a' undeclared (first use in this function)
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:30: error: 'b' undeclared (first use in this function)
    4 |         unsigned __int64 a , b , c, tmp, r;
      |                              ^
main.c:4:34: error: 'c' undeclared (first use in this function)
    4 |         unsigned __int64 a , b , c, tmp, r;
      |                                  ^
main.c:4:37: error: 'tmp' undeclared (first use in this function)
    4 |         unsigned __int64 a , b , c, tmp, r;
      |                                     ^~~
main.c:4:42: error: 'r' undeclared (first use in this function)
    4 |         unsigned __int64 a , b , c, tmp, r;
      |                                          ^
Language: C

#include <stdio.h>
 
int main (void) {
	unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;     
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    4 |         unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;
      |                          ^
main.c:4:26: error: 'a' undeclared (first use in this function)
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:33: error: 'b' undeclared (first use in this function)
    4 |         unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;
      |                                 ^
main.c:4:40: error: 'c' undeclared (first use in this function)
    4 |         unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;
      |                                        ^
main.c:4:47: error: 'tmp' undeclared (first use in this function)
    4 |         unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;
      |                                               ^~~
main.c:4:56: error: 'r' undeclared (first use in this function)
    4 |         unsigned __int64 a = 0, b = 0, c = 0, tmp = 0, r = 0;
      |                                                        ^
Language: C

#include <stdio.h>
 
int main (void) {
	unsigned __int64 a;
	unsigned __int64 b;
	unsigned __int64 c;
	unsigned __int64 tmp;
	unsigned __int64 r;
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    4 |         unsigned __int64 a;
      |                          ^
main.c:4:26: error: 'a' undeclared (first use in this function)
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    5 |         unsigned __int64 b;
      |                          ^
main.c:5:26: error: 'b' undeclared (first use in this function)
main.c:6:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |         unsigned __int64 c;
      |                          ^
main.c:6:26: error: 'c' undeclared (first use in this function)
main.c:7:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tmp'
    7 |         unsigned __int64 tmp;
      |                          ^~~
main.c:7:26: error: 'tmp' undeclared (first use in this function)
main.c:8:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r'
    8 |         unsigned __int64 r;
      |                          ^
main.c:8:26: error: 'r' undeclared (first use in this function)
Language: C

#include <stdio.h>
 
int main (void) {
	unsigned __int64 a = 0;
	unsigned __int64 b = 0;
	unsigned __int64 c = 0;
	unsigned __int64 tmp = 0;
	unsigned __int64 r = 0;
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    4 |         unsigned __int64 a = 0;
      |                          ^
main.c:4:26: error: 'a' undeclared (first use in this function)
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    5 |         unsigned __int64 b = 0;
      |                          ^
main.c:5:26: error: 'b' undeclared (first use in this function)
main.c:6:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    6 |         unsigned __int64 c = 0;
      |                          ^
main.c:6:26: error: 'c' undeclared (first use in this function)
main.c:7:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tmp'
    7 |         unsigned __int64 tmp = 0;
      |                          ^~~
main.c:7:26: error: 'tmp' undeclared (first use in this function)
main.c:8:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r'
    8 |         unsigned __int64 r = 0;
      |                          ^
main.c:8:26: error: 'r' undeclared (first use in this function)
Language: C

#include <stdio.h>

unsigned __int64 a = 0;
unsigned __int64 b = 0;
unsigned __int64 c = 0;
unsigned __int64 tmp = 0;
unsigned __int64 r = 0;
int main (void) {
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c:3:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    3 | unsigned __int64 a = 0;
      |                  ^
main.c:4:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 | unsigned __int64 b = 0;
      |                  ^
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    5 | unsigned __int64 c = 0;
      |                  ^
main.c:6:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tmp'
    6 | unsigned __int64 tmp = 0;
      |                  ^~~
main.c:7:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r'
    7 | unsigned __int64 r = 0;
      |                  ^
main.c: In function 'main':
main.c:9:28: error: 'a' undeclared (first use in this function)
    9 |     while ( scanf("%d %d",&a,&b) != EOF ) {
      |                            ^
main.c:9:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:31: error: 'b' undeclared (first use in this function)
    9 |     while ( scanf("%d %d",&a,&b) != EOF ) {
      |                               ^
main.c:10:17: error: 'r' undeclared (first use in this function)
   10 |                 r = a*b;
      |                 ^
main.c:12:9: error: 'tmp' undeclared (first use in this function)
   12 |         tmp = b;
      |         ^~~
main.c:17:9: error: 'c' undeclared (first use in this function)
   17 |         c = b;
      |         ^
Language: C

#include <stdio.h>
 
int main (void) {
	__int64 a = 0;
	__int64 b = 0;
	__int64 c = 0;
	__int64 tmp = 0;
	__int64 r = 0;
    while ( scanf("%d %d",&a,&b) != EOF ) {
		r = a*b;
		if ( b > a ) {
        tmp = b;
        b = a;
        a = tmp;
		}
		while ( b > 0 ) {
        c = b;
        b = a % b;
        a = c;
		}     
        printf("%d %d\n",a,(r / a));
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |         __int64 a = 0;
      |         ^~~~~~~
      |         __int64_t
main.c:5:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    5 |         __int64 b = 0;
      |         ^~~~~~~
      |         __int64_t
main.c:6:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 |         __int64 c = 0;
      |         ^~~~~~~
      |         __int64_t
main.c:7:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    7 |         __int64 tmp = 0;
      |         ^~~~~~~
      |         __int64_t
main.c:8:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    8 |         __int64 r = 0;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string>
#define elif else if
#define ll long long
#define pr printf
#define sc scanf

int gcd(ll int m,ll int n)
{
	return m%n==0? n:gcd(n,m%n);
	
}
int main()
{
	ll int a,b,g,l,m;
	while (scanf("%lld %lld",&a,&b)!=EOF)
	{
		g=gcd(a,b);
		l=a*b/g;
		printf("%lld %lld",g,l);
	}
	return 0; 
} 

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

//GCD and LCM
#include<stdio.h>
__int64 GCD(__int64 m,__int64 n)
{
	__int64 a=m,b=n,c;
	while(1)
	{
		c=a%b;
		if(c==0)
		{
			return b;
		}
		else if(c!=0)
		{
			a=b;
			b=c;
		}
	}
}
__int64 LCM(__int64 m,__int64 n)
{
	return m*n/GCD(m,n);
}
int main()
{
	__int64 a,b;
	while(scanf("%I64d %I64d",&a,&b)!=EOF)
	{
		printf("%I64d %I64d\n",GCD(a,b),LCM(a,b));
	}
	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'?
    3 | __int64 GCD(__int64 m,__int64 n)
      | ^~~~~~~
      | __int64_t
main.c:3:13: error: unknown type name '__int64'; did you mean '__int64_t'?
    3 | __int64 GCD(__int64 m,__int64 n)
      |             ^~~~~~~
      |             __int64_t
main.c:3:23: error: unknown type name '__int64'; did you mean '__int64_t'?
    3 | __int64 GCD(__int64 m,__int64 n)
      |                       ^~~~~~~
      |                       __int64_t
main.c:20:1: error: unknown type name '__int64'; did you mean '__int64_t'?
   20 | __int64 LCM(__int64 m,__int64 n)
      | ^~~~~~~
      | __int64_t
main.c:20:13: error: unknown type name '__int64'; did you mean '__int64_t'?
   20 | __int64 LCM(__int64 m,__int64 n)
      |             ^~~~~~~
      |             __int64_t
main.c:20:23: error: unknown type name '__int64'; did you mean '__int64_t'?
   20 | __int64 LCM(__int64 m,__int64 n)
      |                       ^~~~~~~
      |                       __int64_t
main.c: In function 'main':
main.c:26:9: error: unknown type name '__int64'; did you mean '__int64_t'?
   26 |         __int64 a,b;
      |         ^~~~~~~
      |         __int64_t
main.c:29:40: error: implicit declaration of function 'GCD' [-Wimplicit-function-declaration]
   29 |                 printf("%I64d %I64d\n",GCD(a,b),LCM(a,b));
      |                                        ^~~
main.c:29:49: error: implicit declaration of function 'LCM' [-Wimplicit-function-declaration]
   29 |                 printf("%I64d %I64d\n",GCD(a,b),LCM(a,b));
      |                                                 ^~~
Language: C

#include <stdio.h>
#define FOR(variable,a,b) for(variable=(a);variable<(b);variable++)

int gcd(int m, int n) {
	if((0 == m) || (0 == n)) {
		return 0;
    }
	
	// method by Euclid
	while(m != n) {
		if(m > n) {
            m = m - n;
		} else {
            n = n - m;
        }
	}
	return m;
}

int lcm(int m, int n) {
	if((0 == m) || (0 == n)) {
		return 0;
    }
	
	return ((m / gcd(m, n)) * n); // lcm = m * n / gcd(m,n)
}

int main(){
    // import phase
    int a, b;
    int gcd, lcm;
    
    // calclate phase
    while(scanf("%d %d", &a, %b) != EOF) {
        printf("%d %d\n", gcd(a, b), lcm(a,b));
    }
}

Compiler output:
main.c: In function 'main':
main.c:34:30: error: expected expression before '%' token
   34 |     while(scanf("%d %d", &a, %b) != EOF) {
      |                              ^
main.c:35:27: error: called object 'gcd' is not a function or function pointer
   35 |         printf("%d %d\n", gcd(a, b), lcm(a,b));
      |                           ^~~
main.c:31:9: note: declared here
   31 |     int gcd, lcm;
      |         ^~~
main.c:35:38: error: called object 'lcm' is not a function or function pointer
   35 |         printf("%d %d\n", gcd(a, b), lcm(a,b));
      |                                      ^~~
main.c:31:14: note: declared here
   31 |     int gcd, lcm;
      |              ^~~
Language: C

#include <stdio.h>

int yakusuu(int a,int b);

int main(void){
int a,b,c;
scanf("%d %d",&a,&b);
c=yakusuu(a,b);
printf("%d %d\n",c,(a/c)*(b/c)*c);
retur 0;
}

int yakusuu(int a,int b){
int n=2,c=1;
while(n<a && n<b){
if(a%n==0 && b%n==0){
a/=n;
b/=n;
m*=n;
}
}
return c;
}

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

#include <stdio.h>

int yakusuu(int a,int b);

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

int yakusuu(int a,int b){
int n=2,c=1;
while(n<a && n<b){
if(a%n==0 && b%n==0){
a/=n;
b/=n;
m*=n;
}
}
return c;
}

Compiler output:
main.c: In function 'yakusuu':
main.c:19:1: error: 'm' undeclared (first use in this function)
   19 | m*=n;
      | ^
main.c:19:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int yakusuu(int a,int b);

unsigned int main(void){
	unsigned int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		printf("%d %d\n",yakusuu(a,b),(a*b/yakusuu(a,b)));
	}
	return 0;
}

unsigned int yakusuu(int a,int b){
	unsigned int n=2,c=1;
	while(n<=a && n<=b){
		if(a%n==0 && b%n==0){
			a/=n;
			b/=n;
			c*=n;
		}
		else{
			n++;
		}
	}
	return c;
}

Compiler output:
main.c:13:14: error: conflicting types for 'yakusuu'; have 'unsigned int(int,  int)'
   13 | unsigned int yakusuu(int a,int b){
      |              ^~~~~~~
main.c:3:5: note: previous declaration of 'yakusuu' with type 'int(int,  int)'
    3 | int yakusuu(int a,int b);
      |     ^~~~~~~
Language: C

#include<stdio.h>

long KYK(long);
long KBI(long);

long KYK(long num[2])
{
	long i;
	
	for(i = num[1] ; i >= 1 ; i--)
	{
		if(0 == num[0] % i && 0 == num[1] % i)
		{
			return i;
		}
	}
}

long KBI(long num[2])
{
	long i = 1;
	
	while(1) 
	{
		if(0 ==( num[0] * i ) %  num[1])
		{
			return i;
		}
		
		i++;
	}
}

int main(void)
{
	long  i,kobai,num[2],koyak,escape;
	
	while(scanf("%d %d",&num[0],&num[1]) != EOF )
	{
		kobai = 0;
		koyak = 0;
		
		if(num[0] < num[1])
		{
			escape = num[0];
			num[0] = num[1];
			num[1] = escape;
		}
		
		koyak = KYK(num);
		
		kobai = KBI(num);
		
		printf("%d %ld\n",koyak,kobai);
		
	}
	
	return 0;
}

Compiler output:
main.c:6:6: error: conflicting types for 'KYK'; have 'long int(long int *)'
    6 | long KYK(long num[2])
      |      ^~~
main.c:3:6: note: previous declaration of 'KYK' with type 'long int(long int)'
    3 | long KYK(long);
      |      ^~~
main.c:19:6: error: conflicting types for 'KBI'; have 'long int(long int *)'
   19 | long KBI(long num[2])
      |      ^~~
main.c:4:6: note: previous declaration of 'KBI' with type 'long int(long int)'
    4 | long KBI(long);
      |      ^~~
Language: C

#include<stdio.h>

long KYK(long);
long KBI(long);

long KYK(long num[2])
{
	long i;
	
	for(i = num[1] ; i >= 1 ; i--)
	{
		if(0 == num[0] % i && 0 == num[1] % i)
		{
			return i;
		}
	}
}

long KBI(long num[2])
{
	long i = 1;
	
	while(1) 
	{
		if(0 ==( num[0] * i ) %  num[1])
		{
			return i;
		}
		
		i++;
	}
}

int main(void)
{
	long  i,kobai,num[2],koyak,escape;
	
	while(scanf("%d %d",&num[0],&num[1]) != EOF )
	{
		kobai = 0;
		koyak = 0;
		
		if(num[0] < num[1])
		{
			escape = num[0];
			num[0] = num[1];
			num[1] = escape;
		}
		
		koyak = KYK(num);
		
		kobai = KBI(num);
		
		printf("%ld %ld\n",koyak,kobai);
		
	}
	
	return 0;
}

Compiler output:
main.c:6:6: error: conflicting types for 'KYK'; have 'long int(long int *)'
    6 | long KYK(long num[2])
      |      ^~~
main.c:3:6: note: previous declaration of 'KYK' with type 'long int(long int)'
    3 | long KYK(long);
      |      ^~~
main.c:19:6: error: conflicting types for 'KBI'; have 'long int(long int *)'
   19 | long KBI(long num[2])
      |      ^~~
main.c:4:6: note: previous declaration of 'KBI' with type 'long int(long int)'
    4 | long KBI(long);
      |      ^~~
Language: C

#include<stdio.h>

long kyk(long);
long kbi(long);

long kyk(long num[2])
{
	long i;
	
	for(i = num[1] ; i >= 1 ; i--)
	{
		if(0 == num[0] % i && 0 == num[1] % i)
		{
			return i;
		}
	}
}

long kbi(long num[2])
{
	long i = 1;
	
	while(1) 
	{
		if(0 ==( num[0] * i ) %  num[1])
		{
			return i;
		}
		
		i++;
	}
}

int main(void)
{
	long  i,kobai,num[2],koyak,escape;
	
	while(scanf("%d %d",&num[0],&num[1]) != EOF )
	{
		kobai = 0;
		koyak = 0;
		
		if(num[0] < num[1])
		{
			escape = num[0];
			num[0] = num[1];
			num[1] = escape;
		}
		
		koyak = kyk(num);
		
		kobai = kbi(num);
		
		printf("%ld %ld\n",koyak,kobai);
		
	}
	
	return 0;
}

Compiler output:
main.c:6:6: error: conflicting types for 'kyk'; have 'long int(long int *)'
    6 | long kyk(long num[2])
      |      ^~~
main.c:3:6: note: previous declaration of 'kyk' with type 'long int(long int)'
    3 | long kyk(long);
      |      ^~~
main.c:19:6: error: conflicting types for 'kbi'; have 'long int(long int *)'
   19 | long kbi(long num[2])
      |      ^~~
main.c:4:6: note: previous declaration of 'kbi' with type 'long int(long int)'
    4 | long kbi(long);
      |      ^~~
Language: C

#include<stdio.h>

long kyk(long num[2]);
long kbi(long num[2]);

long kbi(long num[2])
{
	long i = 1;
	
	while(1)
	{
		if(0 ==  % num[1])
		{
			return (num[0] * i);
		}
		
		i++;
	}
}

long kyk(long num[2])
{
	long yak[4];
		
	yak[0] = num[0];
	yak[1] = num[1];
	
	while(1)
	{
		yak[2] = yak[0] % yak[1];
		
		if(0 == yak[2])
		{
			return yak[1];
		}
		
		yak[0] = yak[1];
		yak[1] = yak[2];
		
	}	
}

int main(void)
{
	long  i,kobai,num[2],koyak,escape;
	
	while(scanf("%d %d",&num[0],&num[1]) != EOF )
	{
		kobai = 0;
		koyak = 0;
		
		if(num[0] < num[1])
		{
			escape = num[0];
			num[0] = num[1];
			num[1] = escape;
		}
		
		koyak = kyk(num);
		
		kobai = kbi(num);
		
		printf("%ld %ld\n",koyak,kobai);
		
	}
	
	return 0;
}

Compiler output:
main.c: In function 'kbi':
main.c:12:26: error: expected expression before '%' token
   12 |                 if(0 ==  % num[1])
      |                          ^
Language: C

#include <stdio.h>

int gcd(x, y){
	if (y == 0) return x;
	return gcd(y, x % y);
}

int main(){
	int i, j, n, m;
	while(scanf("%d %d", &n, &m) != EOF)){
		g = gcd(n, m);
		printf("%d %d\n", g, n * m / g);
	}
	return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:3:5: error: type of 'x' defaults to 'int' [-Wimplicit-int]
    3 | int gcd(x, y){
      |     ^~~
main.c:3:5: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c: In function 'main':
main.c:10:45: error: expected statement before ')' token
   10 |         while(scanf("%d %d", &n, &m) != EOF)){
      |                                             ^
main.c:11:17: error: 'g' undeclared (first use in this function)
   11 |                 g = gcd(n, m);
      |                 ^
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int gcd(x, y){
	return y > 0 ? gcd(y, x % y) : x;
}

int main(){
	int n, m, g;
	while(scanf("%d %d", &n, &m) != EOF){
		g = gcd(n, m);
		printf("%d %d\n", g, x / g * y);
	}
	return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:3:5: error: type of 'x' defaults to 'int' [-Wimplicit-int]
    3 | int gcd(x, y){
      |     ^~~
main.c:3:5: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c: In function 'main':
main.c:11:38: error: 'x' undeclared (first use in this function)
   11 |                 printf("%d %d\n", g, x / g * y);
      |                                      ^
main.c:11:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:46: error: 'y' undeclared (first use in this function)
   11 |                 printf("%d %d\n", g, x / g * y);
      |                                              ^
Language: C

#include<stdio.h>

int main(){
	int a,b;
	
	while(scanf("%d %d",&a,&b)!=EOF){
		if(a<b){
			temp=a;
			a=b;
			b=temp;
		}
		
		a0=a;
		b0=b;
		
		while(a%b!=0){
			temp=a0%b0;
			a0=b0;
			b0=temp;
		}
		
		printf("%d %d",b0,a*b/b0);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: 'temp' undeclared (first use in this function)
    8 |                         temp=a;
      |                         ^~~~
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'a0' undeclared (first use in this function); did you mean 'a'?
   13 |                 a0=a;
      |                 ^~
      |                 a
main.c:14:17: error: 'b0' undeclared (first use in this function); did you mean 'b'?
   14 |                 b0=b;
      |                 ^~
      |                 b
Language: C

# include <stdio.h>
_int64 gcd(_int64 a,_int64 b)
{
	_int64 n,temp;
	if (a<b)
	{
		temp=a;
		a=b;
		b=temp;
	}
	n=a%b;
	while (n!=0)
	{
		a=b;
		b=n;
		n=a%b;

	}
	return b;
}
int main(void)
{
	_int64 a,b;
	while (scanf("%I64d %I64d",&a,&b)!=EOF)
	{
		
		printf("%I64d %I64d\n",gcd(a,b),(a*b)/gcd(a,b));
	}
	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name '_int64'; did you mean '__int64_t'?
    2 | _int64 gcd(_int64 a,_int64 b)
      | ^~~~~~
      | __int64_t
main.c:2:12: error: unknown type name '_int64'; did you mean '__int64_t'?
    2 | _int64 gcd(_int64 a,_int64 b)
      |            ^~~~~~
      |            __int64_t
main.c:2:21: error: unknown type name '_int64'; did you mean '__int64_t'?
    2 | _int64 gcd(_int64 a,_int64 b)
      |                     ^~~~~~
      |                     __int64_t
main.c: In function 'main':
main.c:23:9: error: unknown type name '_int64'; did you mean '__int64_t'?
   23 |         _int64 a,b;
      |         ^~~~~~
      |         __int64_t
main.c:27:40: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   27 |                 printf("%I64d %I64d\n",gcd(a,b),(a*b)/gcd(a,b));
      |                                        ^~~
Language: C

# include <stdio.h>

int main()
{
     int n1, n2, prod, gcd, lcm ;
     while(scanf("%d%d",&a,&b)!=EOF)
     {
         prod = n1 * n2 ;
         while(n1 != n2)
         {
            if(n1 > n2)
            n1 = n1 - n2 ;
            if(n2 > n1)
            n2 = n2 - n1 ;
        }
        gcd = n1 ;
        lcm = prod / gcd ;
        printf("%d ", gcd) ;
        printf("%d", lcm);
     }
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: 'a' undeclared (first use in this function)
    6 |      while(scanf("%d%d",&a,&b)!=EOF)
      |                          ^
main.c:6:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:29: error: 'b' undeclared (first use in this function)
    6 |      while(scanf("%d%d",&a,&b)!=EOF)
      |                             ^
Language: C

/*
--GCD and LCM--
*/
#include <stdio.h>

int main(void)
{
    int a;
    int b;
    int i;
    int j;
    int k;

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

    for (i = 2; i <= 2000000000; i++) {
        if (a % i = 0 && b % i = 0) {
            maxc = i;
            break;
        }
    }

    for (j = 1; j < 2000000000; j++) {
        for (k = 0; k < 2000000000; k++) {
            if (a * j = b * k) {
                minc = a * j;
                break;
            }
        }
    }

    printf("%d %d\n", maxc, minc);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:32: error: lvalue required as left operand of assignment
   17 |         if (a % i = 0 && b % i = 0) {
      |                                ^
main.c:18:13: error: 'maxc' undeclared (first use in this function)
   18 |             maxc = i;
      |             ^~~~
main.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:23: error: lvalue required as left operand of assignment
   25 |             if (a * j = b * k) {
      |                       ^
main.c:26:17: error: 'minc' undeclared (first use in this function)
   26 |                 minc = a * j;
      |                 ^~~~
Language: C

//
//GCD and LCM--
//

#include <stdio.h>

int main(void)
{
    int a;
    int b;
    int i;
    int j;
    int k;

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

    for (i = 2; i <= 2000000000; i++) {
        if (a % i = 0 && b % i = 0) {
            maxc = i;
            break;
        }
    }

    for (j = 1; j < 2000000000; j++) {
        for (k = 0; k < 2000000000; k++) {
            if (a * j = b * k) {
                minc = a * j;
                break;
            }
        }
    }

    printf("%d %d\n", maxc, minc);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:32: error: lvalue required as left operand of assignment
   18 |         if (a % i = 0 && b % i = 0) {
      |                                ^
main.c:19:13: error: 'maxc' undeclared (first use in this function)
   19 |             maxc = i;
      |             ^~~~
main.c:19:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:23: error: lvalue required as left operand of assignment
   26 |             if (a * j = b * k) {
      |                       ^
main.c:27:17: error: 'minc' undeclared (first use in this function)
   27 |                 minc = a * j;
      |                 ^~~~