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

#include <stdio.h>

int main(void)
{
  int x,y,r,z;
  scanf("%d %d",&x,&y);

  if(x<y){
    z=x;
    x=y;
    y=z;
    }
  while (r > 0){
        r = x % y;
        x = y;
        y = r;
    }
  }
 
  printf("%d",r);

  return 0;
}

Compiler output:
main.c:20:10: error: expected declaration specifiers or '...' before string constant
   20 |   printf("%d",r);
      |          ^~~~
main.c:20:15: error: unknown type name 'r'
   20 |   printf("%d",r);
      |               ^
main.c:22:3: error: expected identifier or '(' before 'return'
   22 |   return 0;
      |   ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int x,y,r,z;
  scanf("%d %d",&x,&y);

  if(x<y){
    z=x;
    x=y;
    y=z;
    }
  r = x % y;
  while (r > 0){
        x = y;
        y = r;
????????????r = x % y;
    }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected expression before '?' token
   17 | ????????????r = x % y;
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int x,y,r,z;
  scanf("%d %d",&x,&y);

  if(x<y){
    z=x;
    x=y;
    y=z;
    }
  while ((r =x % y)!> 0){
    x = y;
    y = r;
    }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ')' before '!' token
   13 |   while ((r =x % y)!> 0){
      |         ~          ^
      |                    )
Language: C

#include <stdio.h>

int main(void)
{
  int x,y,r,z;
  scanf("%d %d",&x,&y);

  if(x<y){
    z=x;
    x=y;
    y=z;
    }
  r =x % y
  while (r!> 0){
    x = y;
    y = r;
    }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected ';' before 'while'
   13 |   r =x % y
      |           ^
      |           ;
   14 |   while (r!> 0){
      |   ~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int x,y,r,z;
  scanf("%d %d",&x,&y);

  if(x<y){
    z=x;
    x=y;
    y=z;
    }
  r =x % y;
  while (r!> 0){
    x = y;
    y = r;
    }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:11: error: expected ')' before '!' token
   14 |   while (r!> 0){
      |         ~ ^
      |           )
Language: C

#include <stdlib.h>
#include <math.h>
#include <stdio.h>
??
int main(){
int x,y,z,m;

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

if(x<y){
z=x;
x=y;
y=z;
}

while(y>0){
m=x%y;
x=y;
y=m;
}

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

return 0;
}

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

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

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

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

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

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

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

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

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

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

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

#include <stdio.h>
 
int main(void)
{
int x,y,r,tmp;
canf("%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: In function 'main':
main.c:6:1: error: implicit declaration of function 'canf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 | canf("%d %d",&x ,&y);
      | ^~~~
      | scanf
Language: C

include <stdio.h>
 
int main(void)
{
   int x,y,r,tmp;
 
   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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include<cstdio>
int gcd(int a,int b)
{
	return b==0?a:gcd(b,a%b);
}
int main()
{
	int m,n;
	scanf("%d%d",&m,&n);
	printf("%d\n",gcd(m,n));
}

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

#include <stdio.h>
#include <math.h>
/*#include <stdlib.h>*/
int main(int argc, char *argv[])
{		
   int i,j,temp,flag=-1,max;
   scanf("%d %d",&i,&j);
   temp=(i<j?i:j);
   for(max=1;max<temp;max++)
   if(i%max==0&&j%max==0)
   flag=max;
   if(flag==-1)
   flag=1;
   printf("%d",flag);
   printf(" ")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:15: error: expected ';' before 'return'
   15 |    printf(" ")
      |               ^
      |               ;
   16 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>

int main(void){
    
    int num1 =0;　　// 1つ目の数値
    int num2 =0;　　// 2つ目の数値
    int answer =0;　// 算出した最大公約数を入力
    
    
    // 数値取得（空白区切りで2個入力されると、私は信じている。）
    scanf("%d%d", &num1, &num2);
    
    // 最大公約数の算出
    while(1){

        // "大きい値"を"小さい値"で割って余りを取得する。余りがゼロの場合、終了。
        // そうでないなら、"余り"と"小さい値"を使って、次回ループで再度計算する。
        if (num2>=num1)
        {
            num2=num2%num1;
            if(num2==0)
            {
                answer = num1;
                break;
            }
        }
        else
        {
            num1=num1%num2;
            if(num1==0)
            {
                answer = num2;
                break;
            }
        }
    }
    
    // 回答表示
    printf("%d\n",answer);
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:17: error: stray '\343' in program
    5 |     int num1 =0;<U+3000><U+3000>// 1<U+3064><U+76EE><U+306E><U+6570><U+5024>
      |                 ^~~~~~~~
main.c:5:19: error: stray '\343' in program
    5 |     int num1 =0;<U+3000><U+3000>// 1<U+3064><U+76EE><U+306E><U+6570><U+5024>
      |                         ^~~~~~~~
main.c:6:17: error: stray '\343' in program
    6 |     int num2 =0;<U+3000><U+3000>// 2<U+3064><U+76EE><U+306E><U+6570><U+5024>
      |                 ^~~~~~~~
main.c:6:19: error: stray '\343' in program
    6 |     int num2 =0;<U+3000><U+3000>// 2<U+3064><U+76EE><U+306E><U+6570><U+5024>
      |                         ^~~~~~~~
main.c:7:19: error: stray '\343' in program
    7 |     int answer =0;<U+3000>// <U+7B97><U+51FA><U+3057><U+305F><U+6700><U+5927><U+516C><U+7D04><U+6570><U+3092><U+5165><U+529B>
      |                   ^~~~~~~~
Language: C

#include <stdio.h>

int gcd(int max, int min) {
  if (max % min) {
    return gcd(min, max % min)

  } else {
    return min
  }
}

int main() {
  int x, y;

  scanf("%d %d", &x, &y);
  if (x >= y) {
    printf("%d\n", gcd(x, y));

  } else {
    printf("%d\n", gcd(y, x));
  }

  return 0;
}



Compiler output:
main.c: In function 'gcd':
main.c:5:31: error: expected ';' before '}' token
    5 |     return gcd(min, max % min)
      |                               ^
      |                               ;
    6 | 
    7 |   } else {
      |   ~                            
main.c:8:15: error: expected ';' before '}' token
    8 |     return min
      |               ^
      |               ;
    9 |   }
      |   ~
Language: C

include <studio.h> 
int main(void){
    int x,y,z,pass;

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

	 if(x<y){
	  pass=x;
	  x=y;
	  y=pass;
	  }

	 z=x%y;
	 while(z!=0){
	  x=y;
	  y=z;
	  z=x%y;
	 }
	 
	printf("%d\n",y);
	  
	 
	 
}


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

#include<stdio.h>

int main(void){
    int gcd,x,y,tmp;
    
    scanf("%d %d",&x,&y);
    
    if(x<y){
        tmp=x;
        x=y;
        y=tmp;
    }
    
    while((gcd=x%y)!=0){
        x=y;
        y=r;
    }
    printf("%d\n",gcd);
    
    return 0;
}


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

#include<stdio.h>

int main(void){
    int x,y,r;
    scanf("%d",&x);
    scanf("%d",&y);
    
    r=x%y;
    while(r>0){
        x=y%r;
        y=r;
        r=x;
    }
    printf("%d",tmp);
    
    return(0);
}


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

#include<stdio.h>

int main(void){
    int x,y,r,tmp;
    if(x<y){
        tmp=x;
        x=y;
        y=tmp;
    }
    x%y=r
    while(r!=0){
        x=y;
        y=r;
        r=x%y;
    }
    printf("%d\n",y)
    
}


Compiler output:
main.c: In function 'main':
main.c:10:8: error: lvalue required as left operand of assignment
   10 |     x%y=r
      |        ^
main.c:10:10: error: expected ';' before 'while'
   10 |     x%y=r
      |          ^
      |          ;
   11 |     while(r!=0){
      |     ~~~~~
Language: C

#include<stdio.h>

int main(void){
    int x,y,r,tmp;
    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)
    
}


Compiler output:
main.c: In function 'main':
main.c:10:10: error: expected ';' before 'while'
   10 |     r=x%y
      |          ^
      |          ;
   11 |     while(r!=0){
      |     ~~~~~
Language: C

#include<stdio.h>

int main(void){
    int x,y,r,tmp;
    
    scanf("%d",&x);
    scanf("%d",&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)
    
}


Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected ';' before 'while'
   15 |     r=x%y
      |          ^
      |          ;
   16 |     while(r!=0){
      |     ~~~~~
Language: C

#include<stdio.h>

int main(void){
    int x,y,r,tmp;
    
    scanf("%d",&x);
    scanf("%d",&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)
    
}


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

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


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

#include <stdio.h>
int main()
{
    int x, y, ans;

    scanf("%d %d",&x,&y);
    
    if(x < y){
        swap = x;
        y = x;
        x = swap;
    }
    
    while((x%y)!=0){
        swap = x%y;
        x = y;
        y = swap;
    }
    printf("%d\n",x);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'swap' undeclared (first use in this function)
    9 |         swap = x;
      |         ^~~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

x,y = map(int, input().split())
if y < x:
    x,y = y,x
while x%y:
    x,y = y,x%y
print(y)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x,y = map(int, input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | x,y = map(int, input().split())
      |   ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | x,y = map(int, input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | x,y = map(int, input().split())
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if y < x:
      | ^~
Language: C

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

int main (){
  int x,y,i,j,v,sign;
  
  scanf("%d%d",&x,&y);

  if(x < 1 || y < 1 || x > 1000000000 || y > 1000000000){
    printf("Please type 1 to 1000000000.");
    exit(1);
  }
  
  if(x <= y)sign = 1;
  else sign = 0;


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




Compiler output:
main.c: In function 'main':
main.c:34:19: error: expected ';' before 'return'
   34 |   printf("%d\n",v)
      |                   ^
      |                   ;
......
   37 |   return 0;
      |   ~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before ')' token
    5 |     while(){
      |           ^
Language: C

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

int main(){
    int num1, num2;
    scanf("%d %d",&num1,&num2);
    int div1, div2;
    if ( num1 > num2 ){ 
            div1 = num1;
            div2 = num2;
    }else{  div1 = num2;
            div2 = num1;
    }
    do{
        int remainder = div1 % div2;
        div1 = div2;
        div2 = remainder;
    }while( remainder != 0 );
    printf("%d\n",div1);
    
    return EXIT_SUCCESS;
}


Compiler output:
main.c: In function 'main':
main.c:18:13: error: 'remainder' undeclared (first use in this function)
   18 |     }while( remainder != 0 );
      |             ^~~~~~~~~
main.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int x = 0;
  int y = 0;
  int amari = 0;
  int syou = 0;
  int i = 0;

while(1){
scanf("%d%d",&x,&y);
if(1 <= x && y <= 1000000000){
  break;
}


if(x < y){
  while(1){
    amari = y % x;
    if(amari == 0){
      syou = x;
      break;
    }
    else{
      y = x;
      x = amari;
    }
  }
}

if(x > y){
  while(1){
    amari = x % y;
    if(amari == 0){
      syou = y;
      break;
    }
    else{
      x = y;
      y = amari;
    }
  }
}

else if(x == y){
  syou = x;
}
printf("%d",syou);
printf("\n");
return 0;

}



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

#include<stdio.h>

int main(){
  int x,y,n,d;
  
  scanf("%d%d",&x,&y);
  
  if(x==y){
      printf("%d".x);
      return 0;
  }

  if(x>y){
    n=y;
  }else{
    n=x;
  }
  
  for(d=n/2;d>0;d--){
    if(x%d==0&&y%d==0){
      printf("%d\n",d);
      break;
    }
  }
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:18: error: request for member 'x' in something not a structure or union
    9 |       printf("%d".x);
      |                  ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#define LIMITATION 1000000000;

int gcd(int a, int b);
int main(int argc, char** argv) {
    
     printf("Please enter two natural number: \n");

              int a, b;

              int readScan = scanf("%d %d", &a, &b);
              if (readScan == EOF)
              {
                  printf("data not enough! \n");
                  return(EXIT_FAILURE);
              }
              if (readScan != 2)
              {
                  printf("Input data error!\n");
                  return(EXIT_FAILURE);
              }

              if (a < 0 || b < 0)
                printf("Number should be non-negative!\n");
                 return(EXIT_FAILURE);
                 

              if (a > LIMITATION|| b > LIMITATION)   
                printf("Number should be less than 10^9! \n");
                 return(EXIT_FAILURE);
                 
              int greatestCommonDivisor = gcd(a, b);
                 printf(" The greatest divisor of those two number is %d!/n", greatestCommonDivisor );

    return (EXIT_SUCCESS);
}

int gcd(int a, int b) 
{
    while (b != 0)
    {
        a %= b;
        a ^= b;
        b ^= a;
        a ^= b;
    }

    return a;
}



Compiler output:
main.c: In function 'main':
main.c:3:30: error: expected ')' before ';' token
    3 | #define LIMITATION 1000000000;
      |                              ^
main.c:29:23: note: in expansion of macro 'LIMITATION'
   29 |               if (a > LIMITATION|| b > LIMITATION)
      |                       ^~~~~~~~~~
main.c:29:18: note: to match this '('
   29 |               if (a > LIMITATION|| b > LIMITATION)
      |                  ^
Language: C

#include <stdio.h>

int main(void)
{

  int a, b, c, d;


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

  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = c;
  }

  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = d;
    d = a % b;
  }

  /* 最大公約数を出力 */
  printf("%d\n",b);

  return 0;
}



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

#include <stdio.h>

int main(void)
{

  int a, b, c, d;


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

  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = c;
  }

  /* ユークリッドの互除法 */
  d = a % b;
  while(r!=0){
    a = b;
    b = d;
    d = a % b;
  }

  /* 最大公約数を出力 */
  printf("%d\n",b);

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:5: error: 'tmp' undeclared (first use in this function)
   13 |     tmp = a;
      |     ^~~
main.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'r' undeclared (first use in this function)
   20 |   while(r!=0){
      |         ^
Language: C

#include <stdio.h>

int main(void)
{

  int a, b, c, d;


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

  /* 自然数 a > b を確認・入替 */
  if(a<b){
    c = a;
    a = b;
    b = c;
  }

  /* ユークリッドの互除法 */
  d = a % b;
  while(r!=0){
    a = b;
    b = d;
    d = a % b;
  }

  /* 最大公約数を出力 */
  printf("%d\n",b);

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'r' undeclared (first use in this function)
   20 |   while(r!=0){
      |         ^
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c:2:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    2 | void swap(x,y);
      | ^~~~
main.c: In function 'swap':
main.c:24:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
   24 | void swap(x,y){
      |      ^~~~
main.c:24:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:27:9: error: invalid type argument of unary '*' (have 'int')
   27 |     tmp=*x;
      |         ^~
main.c:29:5: error: invalid type argument of unary '*' (have 'int')
   29 |     *y=tmp;
      |     ^~
Language: C

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


Compiler output:
main.c:2:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    2 | void swap(x,y);
      | ^~~~
main.c: In function 'swap':
main.c:24:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
   24 | void swap(x,y){
      |      ^~~~
main.c:24:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:27:9: error: invalid type argument of unary '*' (have 'int')
   27 |     tmp=*x;
      |         ^~
main.c:29:5: error: invalid type argument of unary '*' (have 'int')
   29 |     *y=tmp;
      |     ^~
Language: C

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


Compiler output:
main.c: In function 'swap':
main.c:24:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
   24 | void swap(x,y){
      |      ^~~~
main.c:24:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:27:9: error: invalid type argument of unary '*' (have 'int')
   27 |     tmp=*x;
      |         ^~
main.c:29:5: error: invalid type argument of unary '*' (have 'int')
   29 |     *y=tmp;
      |     ^~
Language: C

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


Compiler output:
main.c: In function 'swap':
main.c:24:6: error: type of 'x' defaults to 'int' [-Wimplicit-int]
   24 | void swap(x,y){
      |      ^~~~
main.c:24:6: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:27:11: error: invalid type argument of unary '*' (have 'int')
   27 |     tmp = *x;
      |           ^~
main.c:29:5: error: invalid type argument of unary '*' (have 'int')
   29 |     *y = tmp;
      |     ^~
Language: C

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


Compiler output:
/usr/bin/ld: /tmp/ccq1Kktb.o: in function `main':
main.c:(.text+0x3c): undefined reference to `swap'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main(){

  int x,y,r;

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

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

  printf("%d",b);
 return 0;
}





Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'b' undeclared (first use in this function)
    9 |   if(x<b){
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: 'a' undeclared (first use in this function)
   10 |     r=a;
      |       ^
Language: C

#include <stdio.h>

int main(){

  int x,y,r;

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

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

  printf("%d",b);
 return 0;
}




Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'b' undeclared (first use in this function)
    9 |   if(x<b){
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: 'a' undeclared (first use in this function)
   10 |     r=a;
      |       ^
Language: C

#include <stdio.h>

int main(){

  int x,y,r;

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

  if(x<b){
    r=a;
    a=b;
    b=r;
  }
  r=a%b;
  while(r!=0){
    a=b;
    b=r;
    r=a%b;
  }
  
  printf("%d",b);


  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'b' undeclared (first use in this function)
    9 |   if(x<b){
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: 'a' undeclared (first use in this function)
   10 |     r=a;
      |       ^
Language: C

include <stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    while((z=x%y)!=0){
        x=y;
        y=z;
    }
    printf("%d",y);
    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 x,y,z;
    
    scanf("%d%d",&x,&y);
    if(x<y){
        a=x;
        x=y;
        y=a;
    }
    while(x>=1 && x<=1000000000 && y>=1 && y<=1000000000 && z!=0){
        z = x % y;
        x = y;
        if(z != 0)
        y = z;
    }
    if(z==0)
    printf("%d\n",y);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'a' undeclared (first use in this function)
    8 |         a=x;
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:24: error: 'x' undeclared (first use in this function)
    4 |         scanf("%d %d",&x,y);
      |                        ^
main.c:4:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:26: error: 'y' undeclared (first use in this function)
    4 |         scanf("%d %d",&x,y);
      |                          ^
Language: C

#include<stdio.h>

int main()
{
int x, y, z, w;

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


if(x<y) {
x = y;
y = w;
w = x; }
r = x % y
while (r != 0) {
 x = y;
 y = r;
 r = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'r' undeclared (first use in this function)
   15 | r = x % y
      | ^
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:10: error: expected ';' before 'while'
   15 | r = x % y
      |          ^
      |          ;
   16 | while (r != 0) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
r = x % y
while (r!=0) {
 x = y;
 y = r;
 r = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:1: error: 'r' undeclared (first use in this function)
   16 | r = x % y
      | ^
main.c:16:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:10: error: expected ';' before 'while'
   16 | r = x % y
      |          ^
      |          ;
   17 | while (r!=0) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
z = x % y
while (z != 0) {
 x = y;
 y = z;
 z = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
   16 | z = x % y
      |          ^
      |          ;
   17 | while (z != 0) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
z = x % y
while (z != 0 ) {
 x = y;
 y = z;
 z = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
   16 | z = x % y
      |          ^
      |          ;
   17 | while (z != 0 ) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
z = x % y
while(z != 0) {
 x = y;
 y = z;
 z = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
   16 | z = x % y
      |          ^
      |          ;
   17 | while(z != 0) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
z = x % y
while(z!=0) {
 x = y;
 y = z;
 z = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
   16 | z = x % y
      |          ^
      |          ;
   17 | while(z!=0) {
      | ~~~~~
Language: C

#include<stdio.h>

int main( )
{
int x, y, z, w;

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


if(x < y) {
x = y;
y = w;
w = x;
 }
z = x % y;
while(z!=0) {
 x = y;
 y = z;
 z = x % y;
}
printf("%d\n", y)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:18: error: expected ';' before 'return'
   22 | printf("%d\n", y)
      |                  ^
      |                  ;
   23 | return 0;
      | ~~~~~~
Language: C

#include<stdiio.h>

main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    while(){
        z = x % y;
        if(z == 0)break;
        }
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


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

#include<stdiio.h>

main(){
    int x,y,z;
    scanf("%d%d",&x &y);
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    while(){
        z = x % y;
        if(z == 0)break;
        }
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


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

#include<stdio.h>

main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    while(){
        z = x % y;
        if(z == 0)break;
        }
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:11: error: expected expression before ')' token
   11 |     while(){
      |           ^
main.c: At top level:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d",y);
      |            ^~~~
main.c:18:17: error: unknown type name 'y'
   18 |     printf("%d",y);
      |                 ^
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    while(){
        z = x % y;
        if(z == 0)break;
        }
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected expression before ')' token
   11 |     while(){
      |           ^
main.c: At top level:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d",y);
      |            ^~~~
main.c:18:17: error: unknown type name 'y'
   18 |     printf("%d",y);
      |                 ^
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    
    while(){
        z = x % y;
        if(z == 0)break;
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected expression before ')' token
   13 |     while(){
      |           ^
Language: C

#include<stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    
    while(){
        z = x % y;
        if(z == 0) break;
        x = y;
        y = z;
    }
    printf("%d",y);
    
}


Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected expression before ')' token
   13 |     while(){
      |           ^
Language: C

#include<stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    if(x < 0 || y >1000000000) break;
    while(1){
        z = x % y;
        if(z == 0) break;
        x = y;
        y = z;
    }
    printf("%d\n",y);
    
}


Compiler output:
main.c: In function 'main':
main.c:12:32: error: break statement not within loop or switch
   12 |     if(x < 0 || y >1000000000) break;
      |                                ^~~~~
Language: C

#include<stdio.h>

int main(){
    int x,y,z;
    scanf("%d%d",&x,&y);
    
    if(y>x){
        z = y;
        y = x;
        x = y;
    }
    
    if(x < 0 || y >1000000000) break;
    
    while(1){
        z = x % y;
        if(z == 0) break;
        x = y;
        y = z;
    }
    printf("%d\n",y);
    
}


Compiler output:
main.c: In function 'main':
main.c:13:32: error: break statement not within loop or switch
   13 |     if(x < 0 || y >1000000000) break;
      |                                ^~~~~
Language: C

#include<stdio.h>

int main(){
    int x,y,temp,result;
    
    scanf("%d%d",&x,&y);
    
    if(X<y){
        temp=x;
        x=y;
        y=temp;
    }
    
    result=x%y;
    
    while(result!=0){
        x=y;
        y=result;
        result=x%y;
    }
    
    printf("%d\n",y);
    result 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'X' undeclared (first use in this function)
    8 |     if(X<y){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:11: error: expected ';' before numeric constant
   23 |     result 0;
      |           ^~
      |           ;
Language: C

int division(int n,int m)
 2 {
 3     if(n<m)
 4         division(m,n); //交换n，m的值
 5     else if(n==m)
 6         return n;
 7     else
 8     {
 9         int temp=n;
10         n=m;
11         m=temp-n;
12         division(n,m); //重复上述过程
13     }
14 }    


Compiler output:
main.c: In function 'division':
main.c:2:2: error: expected declaration specifiers before numeric constant
    2 |  2 {
      |  ^
main.c:15: error: expected '{' at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:1: error: stray '\343' in program
    4 | <U+3000><U+3000>int x,y,z;<U+3000><U+3000>
      | ^~~~~~~~
main.c:4:3: error: stray '\343' in program
    4 | <U+3000><U+3000>int x,y,z;<U+3000><U+3000>
      |         ^~~~~~~~
main.c:4:15: error: stray '\343' in program
    4 | <U+3000><U+3000>int x,y,z;<U+3000><U+3000>
      |                           ^~~~~~~~
main.c:4:17: error: stray '\343' in program
    4 | <U+3000><U+3000>int x,y,z;<U+3000><U+3000>
      |                                   ^~~~~~~~
main.c:5:1: error: stray '\343' in program
    5 | <U+3000><U+3000>scanf("%d%d",&x,&y);
      | ^~~~~~~~
main.c:5:3: error: stray '\343' in program
    5 | <U+3000><U+3000>scanf("%d%d",&x,&y);
      |         ^~~~~~~~
main.c:6:1: error: stray '\343' in program
    6 | <U+3000><U+3000>while(x!=0)
      | ^~~~~~~~
main.c:6:3: error: stray '\343' in program
    6 | <U+3000><U+3000>while(x!=0)
      |         ^~~~~~~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>{
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>{
      |         ^~~~~~~~
main.c:8:5: error: stray '\343' in program
    8 |     <U+3000><U+3000>z=x%y;
      |     ^~~~~~~~
main.c:8:7: error: stray '\343' in program
    8 |     <U+3000><U+3000>z=x%y;
      |             ^~~~~~~~
main.c:9:5: error: stray '\343' in program
    9 |     <U+3000><U+3000>x=y;
      |     ^~~~~~~~
main.c:9:7: error: stray '\343' in program
    9 |     <U+3000><U+3000>x=y;
      |             ^~~~~~~~
main.c:10:5: error: stray '\343' in program
   10 |     <U+3000><U+3000>y=z;
      |     ^~~~~~~~
main.c:10:7: error: stray '\343' in program
   10 |     <U+3000><U+3000>y=z;
      |             ^~~~~~~~
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000>}
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000>}
      |         ^~~~~~~~
main.c:12:1: error: stray '\343' in program
   12 | <U+3000><U+3000>printf("%d\n",z);
      | ^~~~~~~~
main.c:12:3: error: stray '\343' in program
   12 | <U+3000><U+3000>printf("%d\n",z);
      |         ^~~~~~~~
Language: C

#include <stdio.h>
int main(){
  int a=147 b=105;
  int r;

    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:3:13: error: expected ',' or ';' before 'b'
    3 |   int a=147 b=105;
      |             ^
main.c:6:13: error: 'b' undeclared (first use in this function)
    6 |     r = a % b;
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c:16:10: error: expected declaration specifiers or '...' before string constant
   16 |   printf("\n");
      |          ^~~~
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

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

  scanf("%d%d",&a,&b);
  if(a<b){
      c = a;
      a = b;
      b = c;
    }
    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:7:7: error: 'c' undeclared (first use in this function)
    7 |       c = a;
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

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

int main()
{
	int a, b;

	a = in(), b = in();
	printf("%d\n", gcd(a, b));
	return 0;
}



Compiler output:
main.c:17:5: error: redefinition of 'main'
   17 | int main()
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
main.c: In function 'main':
main.c:21:13: error: implicit declaration of function 'in'; did you mean 'main'? [-Wimplicit-function-declaration]
   21 |         a = in(), b = in();
      |             ^~
      |             main
Language: C

// AOJ ALDS1_1_B Greatest Common Divisor
// 2018.4.26 bal4u

#include <stdio.h>

//#define getchar_unlocked()  getchar()
int main()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

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

int main()
{
	int a, b;

	a = in(), b = in();
	printf("%d\n", gcd(a, b));
	return 0;
}




Compiler output:
main.c:21:5: error: redefinition of 'main'
   21 | int main()
      |     ^~~~
main.c:7:5: note: previous definition of 'main' with type 'int()'
    7 | int main()
      |     ^~~~
main.c: In function 'main':
main.c:25:13: error: implicit declaration of function 'in'; did you mean 'main'? [-Wimplicit-function-declaration]
   25 |         a = in(), b = in();
      |             ^~
      |             main
Language: C

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

  scaf("%d%d",a,b);
  
  if(a > b) num = a;
  else num = b;

  for(i=0; i<=num; i++){
    if(a%i==0 && b&i==0) Max = a%i;
  }
  printf("%d\n",Max);
}



Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scaf("%d%d",a,b);
      |   ^~~~
      |   scanf
main.c:11:26: error: 'Max' undeclared (first use in this function)
   11 |     if(a%i==0 && b&i==0) Max = a%i;
      |                          ^~~
main.c:11:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
  int a,b,i,num,Max=1;

  scanf("%d%d",&a,&b);
  
  if(a > b) num = a;
  else num = b;

  for(i=num; i<=num; i--){
    if(a%i==0 && b%i==0){
        Max =  i;
        break;
  }
  printf("%d\n",Max);
}



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

include <stdio.h>

int main(){
  int x;
  int y;
  int a=1;

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

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

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

  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 x,y,gcd = 0,i;
  scanf("%d",&x); scanf("%d",&y);
  if(x < y)small = x;
  else small = y;
  for(i = 0; i < small / 2; i++){
    if(x % i == 0 && y % i == 0)gcd = i;
  }
  printf("%d\n",small);
}


Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'small' undeclared (first use in this function)
    6 |   if(x < y)small = x;
      |            ^~~~~
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  int i,x,y,small;
  scanf("%d",&x); scanf("%d",&y);
  if(x < y){
    small = x; big = y;
  }
  else{
    small = y; big = x;
  }
  big = big % small;

  for(i = big; i > 0; i--){
    if(big % i == 0 && small % i == 0){
      printf("%d\n",i);
      break;
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'big' undeclared (first use in this function)
    7 |     small = x; big = y;
      |                ^~~
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

main(){
  int a,b,c,d;
  
  scanf("%d %d",&a,&b);
     if( a<=1 || 1000000000<a || b<=1 || 100000000<b )
        printf("Error\n");
        return;
    }
    while(1){
        c = a/b;
        d = a - c*b;
        if(d == 0) break;
        a = b;
        b = d;
    }
    printf("%d\n",b);

return 0
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   10 |         return;
      |         ^~~~~~
main.c:4:1: note: declared here
    4 | main(){
      | ^~~~
main.c: At top level:
main.c:12:5: error: expected identifier or '(' before 'while'
   12 |     while(1){
      |     ^~~~~
main.c:19:12: error: expected declaration specifiers or '...' before string constant
   19 |     printf("%d\n",b);
      |            ^~~~~~
main.c:19:19: error: unknown type name 'b'
   19 |     printf("%d\n",b);
      |                   ^
main.c:21:1: error: expected identifier or '(' before 'return'
   21 | return 0
      | ^~~~~~
Language: C

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

main(){
  int a,b,c,d;
  
  scanf("%d %d",&a,&b);
     if( a<=1 || 1000000000<a || b<=1 || 100000000<b )
        printf("Error\n");
        return;
    }
    while(1){
        c = a/b;
        d = a - c*b;
        if(d == 0) break;
        a = b;
        b = d;
    }
    printf("%d\n",b);

return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   10 |         return;
      |         ^~~~~~
main.c:4:1: note: declared here
    4 | main(){
      | ^~~~
main.c: At top level:
main.c:12:5: error: expected identifier or '(' before 'while'
   12 |     while(1){
      |     ^~~~~
main.c:19:12: error: expected declaration specifiers or '...' before string constant
   19 |     printf("%d\n",b);
      |            ^~~~~~
main.c:19:19: error: unknown type name 'b'
   19 |     printf("%d\n",b);
      |                   ^
main.c:21:1: error: expected identifier or '(' before 'return'
   21 | return 0;
      | ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

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

main(){
  int a,b,c,d;
  
  scanf("%d %d",&a,&b);
     if( a<=1 || 1000000000<=a || b<=1 || 100000000<=b )
        printf("Error\n");
        return;
    }
    while(1){
        c = a/b;
        d = a - c*b;
        if(d == 0) break;
        a = b;
        b = d;
    }
    printf("%d\n",b);

return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:10:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   10 |         return;
      |         ^~~~~~
main.c:4:1: note: declared here
    4 | main(){
      | ^~~~
main.c: At top level:
main.c:12:5: error: expected identifier or '(' before 'while'
   12 |     while(1){
      |     ^~~~~
main.c:19:12: error: expected declaration specifiers or '...' before string constant
   19 |     printf("%d\n",b);
      |            ^~~~~~
main.c:19:19: error: unknown type name 'b'
   19 |     printf("%d\n",b);
      |                   ^
main.c:21:1: error: expected identifier or '(' before 'return'
   21 | return 0;
      | ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^