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

#include <stdio.h>

#define LOOP_END 0
#define EXIT_SUCCESS 0

int main(void)
{
	unsigned long long ullW_Dtc_x;				/*???????????±??????X*/
	unsigned long long ullW_Dtc_y;				/*???????????±??????Y*/
	unsigned long long ullW_Dcalc;				/*????\???¨?????°*/
	unsigned long long ullW_Dgcd;				/*?????§??¬?´???°*/
	
	scanf("%d %d", &ullW_Dtc_x, &ullW_Dtc_y);	/*???????????±????????\???*/
	if( ullW_Dtc_x < ullW_Dtc_y ){
		ullW_Dcalc = ullW_Dtc_x;
		ullW_Dtc_x = ullW_Dtc_y;
		ullW_Dtc_y = ullW_Dcalc;
	}
	while(ullW_Dtc_y > LOOP_END){
		ullW_Dcalc = ullW_Dtc_x % ullW_Dtc_y;
		ullW_Dtc_x = ullW_Dtc_y;
		ullW_Dtc_y = ullW_Dtc_r;
	}
	ullW_Dgcd = ullW_Dtc_x;
	printf("%lld\n", ullW_Dgcd);
	return EXIT_SUCCESS;
}

Compiler output:
main.c: In function 'main':
main.c:22:30: error: 'ullW_Dtc_r' undeclared (first use in this function); did you mean 'ullW_Dtc_y'?
   22 |                 ullW_Dtc_y = ullW_Dtc_r;
      |                              ^~~~~~~~~~
      |                              ullW_Dtc_y
main.c:22:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#define INF_LOOP 1

int main(void)
{
	unsigned long long ullW_Dtc_x;				/*???????????±??????X*/
	unsigned long long ullW_Dtc_y;				/*???????????±??????Y*/
	unsigned long long ullW_Dcalc;				/*????\???¨?????°*/
	unsigned long long ullW_Dgcd;				/*?????§??¬?´???°*/
	
	scanf("%d %d", &ullW_Dtc_x, &ullW_Dtc_y);	/*???????????±????????\???*/
	if( ullW_Dtc_x < ullW_Dtc_y ){
		ullW_Dcalc = ullW_Dtc_x;
		ullW_Dtc_x = ullW_Dtc_y;
		ullW_Dtc_y = ullW_Dcalc;
	}
	while( INF_LOOP ){
		ullW_Dcalc = ullW_Dtc_x % ullW_Dtc_y;
		if( ullWDcalc == LOOP_END ){
			break;
		}
		ullW_Dtc_x = ullW_Dtc_y;
		ullW_Dtc_y = ullW_Dcalc;
	}
	ullW_Dgcd = ullW_Dtc_x;
	printf("%lld\n", ullW_Dgcd);
	return EXIT_SUCCESS;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |         scanf("%d %d", &ullW_Dtc_x, &ullW_Dtc_y);       /*???????????±????????\???*/
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define INF_LOOP 1
main.c:10:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |         scanf("%d %d", &ullW_Dtc_x, &ullW_Dtc_y);       /*???????????±????????\???*/
      |         ^~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:18:21: error: 'ullWDcalc' undeclared (first use in this function); did you mean 'ullW_Dcalc'?
   18 |                 if( ullWDcalc == LOOP_END ){
      |                     ^~~~~~~~~
      |                     ullW_Dcalc
main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:34: error: 'LOOP_END' undeclared (first use in this function)
   18 |                 if( ullWDcalc == LOOP_END ){
      |                                  ^~~~~~~~
main.c:25:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   25 |         printf("%lld\n", ullW_Dgcd);
      |         ^~~~~~
main.c:25:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:25:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:16: error: 'EXIT_SUCCESS' undeclared (first use in this function)
   26 |         return EXIT_SUCCESS;
      |                ^~~~~~~~~~~~
main.c:1:1: note: 'EXIT_SUCCESS' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
  +++ |+#include <stdlib.h>
    1 | #define INF_LOOP 1
Language: C

#include<stdio.h>gcd(int a,int b){
	
	int r;
	if(a<b){
		int t = a;
		a = b;
		b = t;
	}
	
	for(;;){
		
		r=a%b;
		//printf("%d=%d??%d+%d\n",a,a/b,b,r);
		
		a = b;
		b = r;
		
		if(r==0)break;
	}
	
	return a;
}


int main (void){

	int a,b;
	
	scanf("%d %d",&a,&b);
	
	printf("%d\n",gcd(a,b));
	
return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>gcd(int a,int b){
      |                  ^~~
main.c:4:9: error: expected identifier or '(' before 'if'
    4 |         if(a<b){
      |         ^~
main.c:10:9: error: expected identifier or '(' before 'for'
   10 |         for(;;){
      |         ^~~
main.c:10:15: error: expected identifier or '(' before ')' token
   10 |         for(;;){
      |               ^
main.c:21:9: error: expected identifier or '(' before 'return'
   21 |         return a;
      |         ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
main.c: In function 'main':
main.c:31:23: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   31 |         printf("%d\n",gcd(a,b));
      |                       ^~~
Language: C

#include<stdio.h>gcd(int a,int b){
	
	int r;
	if(a<b){
		int t = a;
		a = b;
		b = t;
	}
	
	for(;;){
		
		r=a%b;
		//printf("%d=%d??%d+%d\n",a,a/b,b,r);
		
		a = b;
		b = r;
		
		if(r==0)break;
	}
	
	return a;
}


int main (void){

	int a,b;
	
	scanf("%d %d",&a,&b);
	
	printf("%d\n",gcd(a,b));
	
return 0;
}

/*??? ????????¬?????°????¬??????????
??? ?????±????????????????????????????¨?????????£?¶????????????????????????¬?????°?????????
?¬?????????????????????????????????¬??????????????¬?????°????¬????????????¨?????¶???
??? ??????3?????§??? 0?????£?¶?????????????????????????????????¬?????°????¬??????§?????????
?????±????????? 1, 01, 001, 000 ??????????????? 0???????????? 0, 1, 2, 3 ??§?????????
??? ????????¬?????°????????????????????????????¬?????????????????????????
????????¬?????°????????????????¬????????????¨?????¶???
????????¬?????°????¬????????????????????¬??????????
???????????\??????????????????????????????
1, 0??????????¢??????? p, 1???p (p???1???p )???
????¨???¶?????±???????????????????????????????????¨??????
N???1?????§??? 0 ???????????¬?????°???????¬???????
???????????¨???????????????
???????????????????????¨????????????????????????N??????
?????±????????????????¬???????????????????
*/

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>gcd(int a,int b){
      |                  ^~~
main.c:4:9: error: expected identifier or '(' before 'if'
    4 |         if(a<b){
      |         ^~
main.c:10:9: error: expected identifier or '(' before 'for'
   10 |         for(;;){
      |         ^~~
main.c:10:15: error: expected identifier or '(' before ')' token
   10 |         for(;;){
      |               ^
main.c:21:9: error: expected identifier or '(' before 'return'
   21 |         return a;
      |         ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
main.c: In function 'main':
main.c:31:23: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   31 |         printf("%d\n",gcd(a,b));
      |                       ^~~
Language: C

#include <stdio.h>

int main(int argc, char* argv[])
{
	int x = 0, y = 0;
	scanf("%d %d", &x, &y);

	if (x > y) {
		int tmp = x;
		x = y;
		y = tmp;
	}

	bool loop = true;
	while (loop) {
		int mod = x % y;
		if (mod == 0) {
			break;
		} else {
			x = y;
			y = mod;
		}
	}
	printf("%d\r\n", y);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: unknown type name 'bool'
   14 |         bool loop = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:14:21: error: 'true' undeclared (first use in this function)
   14 |         bool loop = true;
      |                     ^~~~
main.c:14:21: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int gcd(int c, int d)
{
	int i, gcd;
	gcd = 0;
	for (i = 0; i < sqrt(c); i++) {
		if (v % i == 0) {
			if (d % i == 0) {
				gcd = i;
			}
		}
	}
	return gcd
}

int main(int argc, char** argv)
{
	int a, b, result;

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

	if (a >= b) {
		result = gcd(a % b, b);
	}
	else {
		result = gcd(b % a, a);
	}

	printf("%d\n", result);
	return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:9:21: error: 'v' undeclared (first use in this function)
    9 |                 if (v % i == 0) {
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: expected ';' before '}' token
   15 |         return gcd
      |                   ^
      |                   ;
   16 | }
      | ~
Language: C

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

int gcd(int c, int d)
{
	int i, gcd;
	gcd = 0;
	for (i = 0; i < sqrt(c); i++) {
		if (c % i == 0) {
			if (d % i == 0) {
				gcd = i;
			}
		}
	}
	return gcd
}

int main(int argc, char** argv)
{
	int a, b, result;

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

	if (a >= b) {
		result = gcd(a % b, b);
	}
	else {
		result = gcd(b % a, a);
	}

	printf("%d\n", result);
	return 0;
}

Compiler output:
main.c: In function 'gcd':
main.c:15:19: error: expected ';' before '}' token
   15 |         return gcd
      |                   ^
      |                   ;
   16 | }
      | ~
Language: C

d",&x,&y);
 
  if(x>y){
    keep=x;
    x=y;
    y=keep;
  }

  for(i=1;i<=x;i++){
    if(x%i==0&&y%i==0){
      result=i;
    }
  }
  printf("%d\n",result);

  return 0;
}

Compiler output:
main.c:1:2: warning: missing terminating " character
    1 | d",&x,&y);
      |  ^
main.c:1:2: error: missing terminating " character
    1 | d",&x,&y);
      |  ^~~~~~~~~
main.c:3:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    3 |   if(x>y){
      |   ^~
main.c:9:3: error: expected identifier or '(' before 'for'
    9 |   for(i=1;i<=x;i++){
      |   ^~~
main.c:9:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    9 |   for(i=1;i<=x;i++){
      |            ^~
main.c:9:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    9 |   for(i=1;i<=x;i++){
      |                 ^~
main.c:14:10: error: expected declaration specifiers or '...' before string constant
   14 |   printf("%d\n",result);
      |          ^~~~~~
main.c:14:17: error: unknown type name 'result'
   14 |   printf("%d\n",result);
      |                 ^~~~~~
main.c:16:3: error: expected identifier or '(' before 'return'
   16 |   return 0;
      |   ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

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

    if(a < b){
      swap(a,b);
    }
 
    while((n = a % b)!= 0) {
      a = b;
      b = n;
    }
  printf( "%d\n",b);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:7: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    9 |       swap(a,b);
      |       ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
main()
{
  int a, b, n;
 
  scanf("%d%d",&a,&b);

    if(a < b){
      swap(a,b);
    }
 
    while((n = a % b)!= 0) {
      a = b;
      b = n;
    }
  printf( "%d\n",b);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:10:7: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   10 |       swap(a,b);
      |       ^~~~
Language: C

#include <stdio.h>
#include <string.h>
main()
{
  int a, b, n;
 
  scanf("%d%d",&a,&b);

    if(a < b){
      swap(a,b);
    }
 
    while((n = a % b)!= 0) {
      a = b;
      b = n;
    }
  printf( "%d\n",b);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:10:7: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   10 |       swap(a,b);
      |       ^~~~
Language: C

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

  int a, b, tmp;
  scanfb;
    b = tmp;
  }

  while(b != 0){
    tmp = b;
    b = a % b;
    a = tmp;
  }
  printf("%d", a);

  return 0;
}("%d%d", &a, &b);
  if(a < b){
    tmp = a;
    a = 

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'scanfb' undeclared (first use in this function); did you mean 'scanf'?
    5 |   scanfb;
      |   ^~~~~~
      |   scanf
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:9:3: error: expected identifier or '(' before 'while'
    9 |   while(b != 0){
      |   ^~~~~
main.c:14:10: error: expected declaration specifiers or '...' before string constant
   14 |   printf("%d", a);
      |          ^~~~
main.c:14:16: error: unknown type name 'a'
   14 |   printf("%d", a);
      |                ^
main.c:16:3: error: expected identifier or '(' before 'return'
   16 |   return 0;
      |   ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }("%d%d", &a, &b);
      | ^
main.c:17:3: error: expected identifier or '(' before string constant
   17 | }("%d%d", &a, &b);
      |   ^~~~~~
main.c:18:3: error: expected identifier or '(' before 'if'
   18 |   if(a < b){
      |   ^~
Language: C

#include <stdio.h>

int main() {
  int i, x, y;
  scanf("%d%d",&x,&y);
  
　// x changed greater number
  if(y > x) {
    i = x;
    x = y;
    y = i;
  }
  for(i = y;i > 0;i--) 
    if(x % i ==0 && y % i == 0) break; 

  printf("%d\n",i);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: stray '\343' in program
    7 | <U+3000>// x changed greater number
      | ^~~~~~~~
Language: C

#include <stdio.h>

int main(){

  int x,y,i,d;

  /* Using loop to check input numbers are in constrants or not */
  while(1){
    scanf("%d %d", &x,&y);
    if(x>=1 && y<=1000000000)break;
    else printf("error!"\n);
  }

  /* make three situations x>y, x<y and x=y */
  if(x>y){
    d=x%y;
    for(i=d ; i>0 ; i--){
      if(y%i==0 && d%i==0)break;
    }
  }
  else if(x<y){
    d=y%x;
    for(i=d ; i>0 ; i--){
      if(x%i==0 && d%i==0) break;
    }
  }
  else i=x;

  /* output the greatest common divisor */
  printf("%d\n", i);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:25: error: stray '\' in program
   11 |     else printf("error!"\n);
      |                         ^
main.c:11:25: error: expected ')' before 'n'
   11 |     else printf("error!"\n);
      |                ~        ^~
      |                         )
Language: C

#Include<stdio.h>

int main(){
  int a, b, temp;

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

  while(b > 0){
    temp = a % b;
    a = b;
    b = temp;
  }
    
  printf("%d\n", a);

  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #Include<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:20:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   20 |   printf("%d\n", a);
      |   ^~~~~~
main.c:20:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:20:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main()
{
  int x,y,r;
  scanf("%d%d",x,y);  
if(x<y)
  {
    r=x;
    x=y;
    y=r;
  }
 while(1)
   {
     r=x%y;
     x=y;
     y=r;
     if(y=0) break;
  }
}
return 0

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

#include<stdio.h>

int main(){

  int x,y,tmp,r;

  scanf("%d%d",&x,&y);
  
  if(x < y){
  
    tmp = x;
    x = y; 
    y = tmp;
   
  }

  r = x % y; 
  while(r!=0){
    x = y;
    y = r;
    r = x % y;
  }

  printf("%d \n",y);
 
  return 0;

}#include<stdio.h>

int main(){

  int x,y,tmp,r;

  scanf("%d%d",&x,&y);
  
  if(x < y){
  
    tmp = x;
    x = y; 
    y = tmp;
   
  }

  r = x % y; 
  while(r!=0){
    x = y;
    y = r;
    r = x % y;
  }

  printf("%d\n",y);
 
  return 0;

}

Compiler output:
main.c:28:2: error: stray '#' in program
   28 | }#include<stdio.h>
      |  ^
main.c:28:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   28 | }#include<stdio.h>
      |          ^
Language: C

#include <stdio.h>
int main(){
  int x,y,smo,big,arr;
  scanf("%d,%d",&x,&y);
  if(x=>y){
    smo=y;
    big=x;
    {
    else{
      smo=x;
      big=y;
    }
    while(1){
      arr=big%smo;
      if(arr=0)break;
      smo=big;
      arr=smo;
    }
    printf("%d\n",smo);
    return 0;

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected expression before '>' token
    5 |   if(x=>y){
      |        ^
main.c:9:5: error: 'else' without a previous 'if'
    9 |     else{
      |     ^~~~
main.c:20:5: error: expected declaration or statement at end of input
   20 |     return 0;
      |     ^~~~~~
main.c:20:5: error: expected declaration or statement at end of input
main.c:20:5: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main(){
  int x,y,smo,big,arr=1,ans;
  scanf("%d%d",&x&y);
  if(x>=y){
    smo=y;
    big=x;
  }
    else{
      smo=x;
      big=y;
    }
    while(1){
      arr=big%smo;
      if(arr==0){
	ans=smo;
	break;
      }
      smo=big;
      arr=smo;
    }
    printf("%d\n",ans);
    return 0;
}

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

//?????§??¬?´???°
#include<stdio.h>

#define swap(type, x, y)        do{type t = x; x = y; y = t;} while(0)


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



int main(void){
    long x;
    long y;
    long ans;
    scanf("%ld", &x);
    scanf("%ld", &y);
    
    if(x < y) swap(long, x, y);
    
    ans = gcd(x, y);
    
    printf("%ld\n", ans);
    
    

Compiler output:
main.c: In function 'main':
main.c:27:5: error: expected declaration or statement at end of input
   27 |     printf("%ld\n", ans);
      |     ^~~~~~
Language: C

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

int N;
int A[1000];

int insertion(int a, int b);
int print(int d[], int c);

int main(){

	int i = 0;
	int ab, cd;
   
	scanf("%d %d", &ab, &cd);
	//printf("%d %d", ab,cd);


	printf("%d", insertion(ab, cd));

	return 0;

}

int insertion(int a, int b){
	int v;
	int i;
	int j;
	int y;

	//printf("OK");
	
	if (a <= b){
		v = a;
		a = b;
		b = a;
	}

	while (b > 0){
		j = b;
		b = a % b;
		a = j;
	}

	
	for (j = 0; j <= b; j++){
		if (b == 0 && j == 0){
			y = a;
			return y;
		}

		if ((a%j) == 0 && (b%j) == 0){
			y = j;
			return y;
		}
	}

}

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

#include <stdio.h>


int N;
int A[1000];

int insertion(int a, int b);
int print(int d[], int c);

int main(){

	int i = 0;
	int ab, cd;
   
	scanf("%d %d", &ab, &cd);
	
	printf("%d", insertion(ab, cd));

	return 0;

}

int insertion(int a, int b){
	int v;
	int i;
	int j;
	int y;
	
	if (a <= b){
		v = a;
		a = b;
		b = a;
	}

	while (b > 0){
		j = b;
		b = a % b;
		a = j;
	}

	
	for (j = 0; j <= b; j++){
		if (b == 0 && j == 0){
			y = a;
			return y;
		}

		if ((a%j) == 0 && (b%j) == 0){
			y = j;
			return y;
		}
	}

???return y;

}

Compiler output:
main.c: In function 'insertion':
main.c:54:1: error: expected expression before '?' token
   54 | ???return y;
      | ^
Language: C

#include <stdio.h>


int N;
int A[1000];

int insertion(int a, int b);
int main(){

	int i = 0;
	int ab, cd;
   
	scanf("%d %d", &ab, &cd);
	
	printf("%d", insertion(ab, cd));

	return 0;

}

int insertion(int a, int b){
	int v;
	int i;
	int j;
	int y;
	
	if (a <= b){
		v = a;
		a = b;
		b = a;
	}

	while (b > 0){
		j = b;
		b = a % b;
		a = j;
	}

	
	for (j = 0; j <= b; j++){
		if (b == 0 && j == 0){
			y = a;
			return y;
		}

		if ((a%j) == 0 && (b%j) == 0){
			y = j;

		}
	}

???return y;

}

Compiler output:
main.c: In function 'insertion':
main.c:52:1: error: expected expression before '?' token
   52 | ???return y;
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'tmp' undeclared (first use in this function); did you mean 'temp'?
    8 |                 tmp=a;
      |                 ^~~
      |                 temp
main.c:8:17: 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, i, c, d, e, f;
    e = 0;
    
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }

    scanf("%d %d", a, b);
    for(i = 1; i < a; i++) {
        if(a % i == 0) {
            c = i;
         }
        if(b % i == 0) {
            d = i;
        }
        if(c == d) {
            e == c;
        }
    }

    printf("%d", e);
}

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

#include <stdio.h>

int main(){
     int a, b, d, n;
     scanf("%d %d", &a, &b);
     for(n=1;n<a;n++){
          if((a%n==0)&&(b%n==0){
               d=n;
          }
     }
     printf("%d\n", d);

     return 0;
}

     

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ')' before '{' token
    7 |           if((a%n==0)&&(b%n==0){
      |             ~                  ^
      |                                )
main.c:10:6: error: expected expression before '}' token
   10 |      }
      |      ^
Language: C

include <stdio.h>
int main(void) {
    int a, b, i, c, d, e, f;
    e = 0;
    
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }

    scanf("%d %d", a, b);
    for(i = 1; i < a; i++) {
        if(a % i == 0) {
            c = i;
         }
        if(b % i == 0) {
            d = i;
        }
        if(c == d) {
            e == c;
        }
    }

    printf("%d", e);
    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) {
    int a, b, i, c, d, e, f;
    e = 0;
    
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }

    scanf("%d %d", a, b);
    for(i = 1; i < a; i++) {
        if(a % i == 0) {
            c = i;
         }
        if(b % i == 0) {
            d = i;
        }
        if(c == d) {
            e == c;
        }
    }

    printf("%d", e);
    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) {
    int a, b, i, c, d, e, f;
    e = 0;
    


    scanf("%d %d", a, b);
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }


    for(i = 1; i < a; i++) {
        if(a % i == 0) {
            c = i;
         }
        if(b % i == 0) {
            d = i;
        }
        if(c == d) {
            e == c;
        }
    }

    printf("%d", e);
    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()
{
  int a, b, x, y;    
 
  scanf("%d %d ", &a, &b);
 
  for( int i = a; i > 0; i--) {
    x = a % i;
    y = b % i;
    if (x == 0 && y == 0) {
      break;
    }
  }

  printf ("%d \n", i);
 
  return 0;
}

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

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

  printf ("%d\n", i);
 
  return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:10: error: 'c' undeclared (first use in this function)
   10 |          c = a % b;
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:15: warning: missing terminating " character
   21 |       printf ("%d, b)
      |               ^
main.c:21:15: error: missing terminating " character
   21 |       printf ("%d, b)
      |               ^~~~~~~
main.c:22:4: error: expected expression before '}' token
   22 |    }
      |    ^
main.c:21:15: error: expected ';' before '}' token
   21 |       printf ("%d, b)
      |               ^
      |               ;
   22 |    }
      |    ~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:22:15: warning: missing terminating " character
   22 |       printf ("%d, b);
      |               ^
main.c:22:15: error: missing terminating " character
   22 |       printf ("%d, b);
      |               ^~~~~~~~
main.c:23:4: error: expected expression before '}' token
   23 |    }
      |    ^
main.c:22:15: error: expected ';' before '}' token
   22 |       printf ("%d, b);
      |               ^
      |               ;
   23 |    }
      |    ~
Language: C

#include<stdio.h>
int main()

    int x, y, z;

    do {
        if (x < y) y = y % x ;
        if (x >= y) x = x % y ;
    } while ( x % y == 0 || y % x = 00);

    if (x <= y) printf ("%d\n", x);
    if (y < x) printf ("%d\n", y);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected declaration specifiers before 'do'
    6 |     do {
      |     ^~
main.c:9:7: error: expected declaration specifiers before 'while'
    9 |     } while ( x % y == 0 || y % x = 00);
      |       ^~~~~
main.c:11:5: error: expected declaration specifiers before 'if'
   11 |     if (x <= y) printf ("%d\n", x);
      |     ^~
main.c:12:5: error: expected declaration specifiers before 'if'
   12 |     if (y < x) printf ("%d\n", y);
      |     ^~
main.c:14:5: error: expected declaration specifiers before 'return'
   14 |     return 0;
      |     ^~~~~~
main.c:15:1: error: expected declaration specifiers before '}' token
   15 | }
      | ^
main.c:4:15: error: declaration for parameter 'z' but no such parameter
    4 |     int x, y, z;
      |               ^
main.c:4:12: error: declaration for parameter 'y' but no such parameter
    4 |     int x, y, z;
      |            ^
main.c:4:9: error: declaration for parameter 'x' but no such parameter
    4 |     int x, y, z;
      |         ^
main.c:16: error: expected '{' at end of input
Language: C

#include<stdio.h>
int main() {
 
    int x, y, z;
 
    do {
        if (x < y) y = y % x ;
        if (x >= y) x = x % y ;
    } while ( x % y == 0 || y % x = 00);
 
    if (x <= y) printf ("%d\n", x);
    if (y < x) printf ("%d\n", y);
 
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:35: error: lvalue required as left operand of assignment
    9 |     } while ( x % y == 0 || y % x = 00);
      |                                   ^
Language: C

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

    if (a=<b) {
      for (i = 1;i <= a;i++) {
        if (a%i == 0 && b%i == 0)
          c = i;
        }
    }
    else {
      for (i = 1;i <= b;i++) {
        if (a%i == 0 && b%i == 0)
          c = i;
        }
    }

    printf("%d\n",c);

    return 0;
}
      

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected expression before '<' token
    6 |     if (a=<b) {
      |           ^
Language: C

#include<stdio.h>
 
int main(){
  int x ,y ,max ,min ,newmax ,ans;
  if(x>y){
   max=x;
   min=y;
  }
  else{
   max=y;
   min=x;
  }
   while(max!=min){
    newmax=min;
    min=max%min;
    max=newmax;
  }
   	printf("%d\n" ,max);

Compiler output:
main.c: In function 'main':
main.c:18:9: error: expected declaration or statement at end of input
   18 |         printf("%d\n" ,max);
      |         ^~~~~~
Language: C

#include<stdio.h>

int main(void) 
{

	int x, y,z;
	
	scanf ("%d %d" ,&x ,&y);

	gcd (x,y) = z;

	printf ("%d\n" ,z);

	return 0;
}
	

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   10 |         gcd (x,y) = z;
      |         ^~~
main.c:10:19: error: lvalue required as left operand of assignment
   10 |         gcd (x,y) = z;
      |                   ^
Language: C

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

    if (a =< b) {
      for (i = 1; i <= a; i++) {
        if (a % i == 0 && b % i == 0)
          c = i;
        }
    }
    else {
      for (i = 1; i <= b; i++) {
        if (a % i == 0 && b % i == 0)
          c = i;
        }
    }

    printf("%d\n",c);

    return 0;
}
      

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected expression before '<' token
    6 |     if (a =< b) {
      |            ^
Language: C

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     for (i = 1; i <= a; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   else (b > a) {
     for (i = 1; i <= b; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   printf("%d\n", x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: invalid operands to binary & (have 'int *' and 'int')
    5 |    scanf("%d %d", &a &b);
      |                   ~~ ^
      |                   |
      |                   int *
main.c:8:11: error: 'i' undeclared (first use in this function)
    8 |      for (i = 1; i <= a; i++) {
      |           ^
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:16: error: expected ';' before '{' token
   15 |    else (b > a) {
      |                ^~
      |                ;
Language: C

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     for (i = 1; i <= a; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   else (b > a) {
     for (i = 1; i <= b; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   printf("%d\n", x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: 'i' undeclared (first use in this function)
    8 |      for (i = 1; i <= a; i++) {
      |           ^
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:16: error: expected ';' before '{' token
   15 |    else (b > a) {
      |                ^~
      |                ;
Language: C

#include<stdio.h>
int main(void){
   int x,y,r;
   scanf("%d %d",&x,&y);
   if(x<y)
      swap(x,y);
   while(y>0)
      r=x%y;
      x=y;
      y=r;
   printf("%d",x);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    6 |       swap(x,y);
      |       ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected ';' before 'b'
    7 |      c = b
      |           ^
      |           ;
    8 |      b = a%c;
      |      ~     
main.c:10:22: error: expected ';' before 'printf'
   10 |      } while (b == 0)
      |                      ^
      |                      ;
   11 |      printf ("%d\n", c);
      |      ~~~~~~
Language: C

#include<stdio.h>
int main(void){
   int x,y,r;
   scanf("%d %d",&x,&y);
   if(x<y)
      swap(x,y)
   while(y>0)
      r=x%y;
      x=y;
      y=r;
   printf("%d",x);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    6 |       swap(x,y)
      |       ^~~~
main.c:6:16: error: expected ';' before 'while'
    6 |       swap(x,y)
      |                ^
      |                ;
    7 |    while(y>0)
      |    ~~~~~
Language: C

#include<stdio.h>
int main(void){
   int a,bx,y,r;
   scanf("%d %d",&a,&b);
   if(a<b)
      x=b;y=a;
   else if(a>b)
      x=a;y=b;
      
   while(y>0)
      r=x%y;
      x=y;
      y=r;
   printf("%d",x);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: 'b' undeclared (first use in this function)
    4 |    scanf("%d %d",&a,&b);
      |                      ^
main.c:4:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: 'x' undeclared (first use in this function)
    6 |       x=b;y=a;
      |       ^
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else if(a>b)
      |    ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else if(a>b)
      |    ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected ';' before 'b'
    7 |      c = b
      |           ^
      |           ;
    8 |      b = a%c;
      |      ~
Language: C

#include <stdio.h>
int main(){
  int x, y, m, n, d;
  scanf("%d %d", &x, &y);

  if (x>y) {m=x; n=y;}
  else if(x<y) {m=y; n=x;}
  else d=x;

  do{
  d = m % n;
  m=n; n=d;
  }while(d!=0)

  printf("%d\n", d);
}

Compiler output:
main.c: In function 'main':
main.c:13:15: error: expected ';' before 'printf'
   13 |   }while(d!=0)
      |               ^
      |               ;
   14 | 
   15 |   printf("%d\n", d);
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else
      |    ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected ';' before 'b'
    7 |      c = b
      |           ^
      |           ;
    8 |      b = a%c;
      |      ~
Language: C

#include<stdio.h>

int main(void) 
{

	int x, y, a, b, c, d;
	
	scanf ("%d %d" ,&x ,&y);
	if (x > y){
	x = a;
	y = b;
	} else {
	x = b;
	y = a;
}
	while {
	d=1;
	if (a % d == 0 && b % d == 0)
	d = c;
	} (d == a)

	printf("%d \n" ,c);

	return 0;
}
	

Compiler output:
main.c: In function 'main':
main.c:16:15: error: expected '(' before '{' token
   16 |         while {
      |               ^
      |               (
main.c:20:19: error: expected ';' before 'printf'
   20 |         } (d == a)
      |                   ^
      |                   ;
   21 | 
   22 |         printf("%d \n" ,c);
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else
      |    ^~~~
Language: C

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     for (i = 1; i <= b; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   else (b > a) {
     for (i = 1; i <= a; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   printf("%d\n", x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: 'i' undeclared (first use in this function)
    8 |      for (i = 1; i <= b; i++) {
      |           ^
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:16: error: expected ';' before '{' token
   15 |    else (b > a) {
      |                ^~
      |                ;
Language: C

#include<stdio.h>

int main(){

	int x,y,temp,gcd;

	scanf("%d %d",&x,&y);

	if(x>=y){
		while(x==y){
			x=x%y;
			temp=x;
			x=y;
			y=temp;
		}
	}else if(y>=x){
		while(x==y){
			y=y%x;
			temp=x;
			x=y;
			y=temp;
		}

	printf("%d\n"x);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:22: error: expected ')' before 'x'
   24 |         printf("%d\n"x);
      |               ~      ^
      |                      )
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else if(a>b)
      |    ^~~~
Language: C

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

     printf ("%d\n", c);
 
     return 0;
}
 

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

#include<stdio.h>

int main(){

	int x,y,temp,gcd;

	scanf("%d %d",&x,&y);

	if(x>=y){
		while(x==y){
			x=x%y;
			temp=x;
			x=y;
			y=temp;
		}
	}else if(y>x){
		while(x==y){
			y=y%x;
			temp=x;
			x=y;
			y=temp;
		}

	printf("%d\n",x);

	return 0;
}

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

#include <stdio.h>
int main(void) {
    int a, b, i, c, d, e, f, g;
    e = 1;
    
    

    scanf("%d %d", &a, &b);
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }
    if(b % a == 0) {
       e = a
        }
    else if{
    g = b % a;

    for(i = 1; i <= g; i++) {
        if(g % i == 0) {
            c = i;
        
        if(b % i == 0) {
            d = i;
        }
    }
        if(c == d) {
            e = c;
        }
    }
}

    printf("%d\n", e);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected ';' before '}' token
   15 |        e = a
      |             ^
      |             ;
   16 |         }
      |         ~    
main.c:17:12: error: expected '(' before '{' token
   17 |     else if{
      |            ^
      |            (
Language: C

#include <stdio.h>
int main(void) {
    int a, b, i, c, d, e, f, g;
    e = 1;
    
    

    scanf("%d %d", &a, &b);
    if(a > b) {
        f = a;
        a = b;
        b = f;
    }
    if(b % a == 0) {
       e = a
        }
    else {
    g = b % a;

    for(i = 1; i <= g; i++) {
        if(g % i == 0) {
            c = i;
        
        if(b % i == 0) {
            d = i;
        }
    }
        if(c == d) {
            e = c;
        }
    }
}

    printf("%d\n", e);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected ';' before '}' token
   15 |        e = a
      |             ^
      |             ;
   16 |         }
      |         ~
Language: C

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a > b) {
     for (i = 1; i <= b; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   else (b > a) {
     for (i = 1; i <= a; i++) {
       if (a % i == 0 && b % i ==0) {
         x = i;
       }
     }
   }

   printf("%d\n", x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: 'i' undeclared (first use in this function)
    8 |      for (i = 1; i <= b; i++) {
      |           ^
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:16: error: expected ';' before '{' token
   15 |    else (b > a) {
      |                ^~
      |                ;
Language: C

#include<stdio.h>

int main(){

	int x,y,temp,gcd;

	scanf("%d %d",&x,&y);

	if(x>=y){
		while(x%y){
			x=x%y;
			temp=x;
			x=y;
			y=temp;
		}
		gcd=y;
	}else if(y>x){
		while(x%y){
			y=y%x;
			temp=x;
			x=y;
			y=temp;
		}
		gcd=x
	}
	printf("%d\n",gcd);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:22: error: expected ';' before '}' token
   24 |                 gcd=x
      |                      ^
      |                      ;
   25 |         }
      |         ~
Language: C

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

    if (a < b) {
      while (a!=0) {
        x = a % b;
        a = b;
        b = x;
        }
    }
    else {
      while (b!=0){
        x = b % a;
        b = a;
        a = x;
    }

    printf("%d\n",b);

    return 0;
}

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

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     while (b != 0) {
       x = a % b;
       a = b;
       b = x;
     }
    printf ("%d\n", a)
   }

   else (b > a) {
     while (a != 0) {
       x = b % a;
       b = a;
       a = x;
     }
    printf ("%d\n", b)
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:23: error: expected ';' before '}' token
   13 |     printf ("%d\n", a)
      |                       ^
      |                       ;
   14 |    }
      |    ~                   
main.c:16:16: error: expected ';' before '{' token
   16 |    else (b > a) {
      |                ^~
      |                ;
Language: C

#include <stdiop.h>
int mian(){
  int x, y, z, m, n, d;
  scanf("%d %d", &x, &y);
 
  if(x>y) {m=x; n=y;}
  else if(x<y)  {m=y; n=x;}
  else d=x;

  do{
    d=m%n;
    m=n; n=d;
  }while (d != 0);

  printf("%d",m;

  return 0;
}

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

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     while (b != 0) {
       x = a % b;
       a = b;
       b = x;
     }
    printf ("%d\n", a)
   }

   if (b > a) {
     while (a != 0) {
       x = b % a;
       b = a;
       a = x;
     }
    printf ("%d\n", b)
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:23: error: expected ';' before '}' token
   13 |     printf ("%d\n", a)
      |                       ^
      |                       ;
   14 |    }
      |    ~                   
main.c:22:23: error: expected ';' before '}' token
   22 |     printf ("%d\n", b)
      |                       ^
      |                       ;
   23 |    }
      |    ~
Language: C

#include <stdiop.h>
int mian(){
  int x, y, m, n, d;
  scanf("%d %d", &x, &y);
 
  if(x>y) {m=x; n=y;}
  else if(x<y)  {m=y; n=x;}
  else d=x;

  do{
    d=m%n;
    m=n; n=d;
  }while (d != 0);

  printf("%d",m;

  return 0;
}

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

#include <stdiop.h>
int main(){
  int x, y, m, n, d;
  scanf("%d %d", &x, &y);
 
  if(x>y) {m=x; n=y;}
  else if(x<y)  {m=y; n=x;}
  else d=x;

  do{
    d=m%n;
    m=n; n=d;
  }while (d != 0);

  printf("%d",m;

  return 0;
}

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

 #include <stdio.h>
 int main () {
   int a, b, x;

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

   if (a >= b) {
     while (b != 0) {
       x = a % b;
       a = b;
       b = x;
     }
    printf ("%d\n", a);
   }

   else (b > a) {
     while (a != 0) {
       x = b % a;
       b = a;
       a = x;
     }
    printf ("%d\n", b);
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:16: error: expected ';' before '{' token
   16 |    else (b > a) {
      |                ^~
      |                ;
Language: C

#include <stdiop.h>
int main(){
  int x, y, m, n, d;
  scanf("%d %d", &x, &y);
 
  if(x>y) {m=x; n=y;}
  else if(x<y)  {m=y; n=x;}
  else d=x;

  do{
    d=m%n;
    m=n; n=d;
  }while (d != 0);

  printf("%d\n",m);

  return 0;
}

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

#include <stdiop.h>
int main(){
  int x, y, m, n, d;
  scanf("%d %d", &x, &y);
 
  if(x>y) {m=x; n=y;}
  else if(x<y) {m=y; n=x;}
  else d=x;

  do {
    d=m%n;
    m=n; n=d;
  }while (d != 0);

  printf("%d\n",m);

  return 0;
}

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