submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s406539307 | p02256 | C | #include <stdio.h>
int gcd(int a,int b)
{
int r;
if (a < b){
swap(a, b);
while (b > 0){
r = a % b;
a = b;
b = r;
}
return x;
}
}
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",gcd(a,b));
return 0;
} | main.c: In function 'gcd':
main.c:7:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
7 | swap(a, b);
| ^~~~
main.c:13:12: error: 'x' undeclared (first use in this function)
13 | return x;
| ^
main.c:13:12: note: each undeclared identif... |
s230095403 | p02256 | C | #include <stdio.h>
int gcd(int a,int b)
{
int r;
if (a < b){
swap(a, b);
while (b > 0){
r = a % b;
a = b;
b = r;
}
return a;
}
}
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",gcd(a,b));
return 0;
} | main.c: In function 'gcd':
main.c:7:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
7 | swap(a, b);
| ^~~~
|
s568942295 | p02256 | C | #include<stdio.h>
int main(){
int x, y;
scanf("%d %d",&x, &y); | main.c: In function 'main':
main.c:7:3: error: expected declaration or statement at end of input
7 | scanf("%d %d",&x, &y);
| ^~~~~
|
s109348041 | p02256 | C | #include <stdio.h>
int main (void)
{
int x,y,s,r;
scanf("%d %d\n",&x,&y);
if(x < y){
s = x;
x = y;
y = s;
}
r = x % y;
while(r! = 0){
x = y;
b = r;
r = x;
}
printf("%d\n",y);
return 0;
} | main.c: In function 'main':
main.c:17:8: error: expected ')' before '!' token
17 | while(r! = 0){
| ~ ^
| )
main.c:19:3: error: 'b' undeclared (first use in this function)
19 | b = r;
| ^
main.c:19:3: note: each undeclared identifier is reported only once for each function it app... |
s716158844 | p02256 | C | #include <stdio.h>
int main (void)
{
int x,y,s,r;
scanf("%d %d\n",&x,&y);
if(x < y){
s = x;
x = y;
y = s;
}
r = x % y;
while(r! = 0){
x = y;
b = r;
r = x % y;
}
printf("%d\n",y);
return 0;
} | main.c: In function 'main':
main.c:17:8: error: expected ')' before '!' token
17 | while(r! = 0){
| ~ ^
| )
main.c:20:3: error: 'b' undeclared (first use in this function)
20 | b = r;
| ^
main.c:20:3: note: each undeclared identifier is reported only once for each function it app... |
s279983990 | p02256 | C | #include <stdio.h>
int main() {
int x, y, m, n;
scanf("%d %d", &x, &y)
while(1) {
if (x >= y){
x = x % y;
if (x == 0){
printf("%d", y);
break;
}
}
else {
y= y % x;
if (y == 0){
... | main.c: In function 'main':
main.c:7:26: error: expected ';' before 'while'
7 | scanf("%d %d", &x, &y)
| ^
| ;
8 | while(1) {
| ~~~~~
|
s046656558 | p02256 | C | #include <stdio.h>
int main (void)
{
int x,y,s,r;
scanf("%d %d\n",&x,&y);
if(x < y){
s = x;
x = y;
y = s;
}
r = x % y;
while(r!= 0){
x = y;
b = r;
r = x % y;
}
printf("%d\n",y);
return 0;
} | main.c: In function 'main':
main.c:20:3: error: 'b' undeclared (first use in this function)
20 | b = r;
| ^
main.c:20:3: note: each undeclared identifier is reported only once for each function it appears in
|
s767708447 | p02256 | C | #include <stdio.h>
int main() {
int x, y, m, n;
scanf("%d %d", &x, &y)
while(1) {
if (x >= y){
x = x % y;
if (x == 0){
printf("%d\n", y);
break;
}
}
else {
y= y % x;
if (y == 0){
... | main.c: In function 'main':
main.c:7:26: error: expected ';' before 'while'
7 | scanf("%d %d", &x, &y)
| ^
| ;
8 | while(1) {
| ~~~~~
|
s021565833 | p02256 | C |
#include <stdio.h>
int main(void)
{
int a, b, c, ans;
scanf("%d %d", &a,&b);
if(a<b){
ans = a;
a = b;
b = ans;
}
r = a % b;
while(r!=0){
a = b;
b = c;
c = a % b;
}
printf("%d\n", b);
return 0;
} | main.c: In function 'main':
main.c:18:3: error: 'r' undeclared (first use in this function)
18 | r = a % b;
| ^
main.c:18:3: note: each undeclared identifier is reported only once for each function it appears in
|
s565272173 | p02256 | C |
#include <stdio.h>
int main(void)
{
int a, b, c, ans;
scanf("%d %d", &a,&b);
if(a<b){
ans = a;
a = b;
b = ans;
}
c = a % b;
while(r!=0){
a = b;
b = c;
c = a % b;
}
printf("%d\n", b);
return 0;
} | main.c: In function 'main':
main.c:21:9: error: 'r' undeclared (first use in this function)
21 | while(r!=0){
| ^
main.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
|
s076475677 | p02256 | C | #include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y)
while(1) {
if (x >= y){
x = x % y;
if (x == 0){
printf("%d\n", y);
break;
}
}
else {
y= y % x;
if (y == 0){
... | main.c: In function 'main':
main.c:7:26: error: expected ';' before 'while'
7 | scanf("%d %d", &x, &y)
| ^
| ;
8 | while(1) {
| ~~~~~
|
s794274719 | p02256 | C | #include <stdio.h>
int main(void)
{
int x,y,r;
scanf("%d %d",&x,&y);
if(x>y){
while(y>0){
r=x%y;
x=y;
y=r;
return x;
}
else if(y>x){
while(y>0){
r=y%x;
y=x;
x=r;
return y;
}
printf("%d",r); | main.c: In function 'main':
main.c:16:4: error: expected '}' before 'else'
16 | else if(y>x){
| ^~~~
main.c:25:5: error: expected declaration or statement at end of input
25 | printf("%d",r);
| ^~~~~~
main.c:25:5: error: expected declaration or statement at end of input
|
s274326110 | p02256 | C | #include <stdio.h>
int main(void)
{
int n,x;
int i,j,k;
int sum;
scanf(???%d %d???, &n,&x);
while(n != 0 && x != 0) {
sum = 0;
for(i = 1; i <= n-2; i++) {
for(j = i+1; j <= n-1; j++) {
for(k = j+1; k <= n; k++) {
if(i + j + k == x)
sum = sum + 1;
}
... | main.c: In function 'main':
main.c:9:9: error: expected expression before '?' token
9 | scanf(???%d %d???, &n,&x);
| ^
main.c:22:12: error: expected expression before '?' token
22 | printf(???%d\n???, sum);
| ^
main.c:22:17: error: stray '\' in program
22 | printf(???%... |
s008043829 | p02256 | C | #include<stdio.h>
int main(){
int x, y, i;
scanf("%d %d", &x, &y);
if (x>y) {
min = y;
} else {
min = x;
}
for (i=min; i>1; i--) {
if (x%i==0 && y%i==0) {
printf("%d", i);
break;
}
}
return 0;
} | main.c: In function 'main':
main.c:7:5: error: 'min' undeclared (first use in this function); did you mean 'main'?
7 | min = y;
| ^~~
| main
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
|
s342414892 | p02256 | C | #include <stdio.h>
int main(void) {
int i, j = 1, d = 0, r, x, y;
scanf("%d %d", &x, &y);
if (x > y) {
r = x % y;
max = x;
}
else {
r = y % x;
max = y;
}
for (i = 1; i <= max; i++) {
if (r % d == 0) {
d = i * j;
j = i;
}
}
printf("%d?\n", d);
ret... | main.c: In function 'main':
main.c:9:5: error: 'max' undeclared (first use in this function)
9 | max = x;
| ^~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
|
s256599502 | p02256 | C | #include <stdio.h>
int main(void) {
int i, j = 1, d = 0, r, x, y;
scanf("%d %d", &x, &y);
if (x > y) {
r = x % y;
max = x;
}
else {
r = y % x;
max = y;
}
for (i = 1; i <= max; i++) {
if (r % i == 0) {
d = i * j;
j = i;
}
}
printf("%d?\n", d);
ret... | main.c: In function 'main':
main.c:9:5: error: 'max' undeclared (first use in this function)
9 | max = x;
| ^~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
|
s239164133 | p02256 | C | #include <stdio.h>
int main(void) {
int x, y, r, tmp;
if (a < b){
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;
} | main.c: In function 'main':
main.c:5:7: error: 'a' undeclared (first use in this function)
5 | if (a < b){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:11: error: 'b' undeclared (first use in this function)
5 | if (a < b){
... |
s420567825 | p02256 | C | #include <stdio.h>
int main(void) {
int x, y, r, tmp;
scanf("%d %d", &x, &y);
if (a < b){
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;
} | main.c: In function 'main':
main.c:6:7: error: 'a' undeclared (first use in this function)
6 | if (a < b){
| ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:11: error: 'b' undeclared (first use in this function)
6 | if (a < b){
... |
s153511080 | p02256 | C | #include <stdio.h>
int main(void)
{
int x,y;
if (x < y)
swap(x, y);
while (y > 0){
r = x % y
x = y
y = r
return x
}
printf("%d",r);
return 0;
} | main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
8 | swap(x, y);
| ^~~~
main.c:11:9: error: 'r' undeclared (first use in this function)
11 | r = x % y
| ^
main.c:11:9: note: each undeclared identif... |
s219370950 | p02256 | 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
return x
}
printf("%d",r);
return 0;
} | main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
9 | swap(x, y);
| ^~~~
main.c:12:18: error: expected ';' before 'x'
12 | r = x % y
| ^
| ;
13 | x = y
... |
s033060681 | p02256 | 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;
return x;
}
printf("%d",r);
return 0;
} | main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
9 | swap(x, y);
| ^~~~
|
s195666086 | p02256 | 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 (y > 0){
r = x % y;
x = y;
y = r;
}
}
printf("%d",r);
return 0;
} | 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;
| ^... |
s304825971 | p02256 | 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;
} | 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;
| ^... |
s415355244 | p02256 | 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;
} | main.c: In function 'main':
main.c:17:1: error: expected expression before '?' token
17 | ????????????r = x % y;
| ^
|
s675246666 | p02256 | 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;
} | main.c: In function 'main':
main.c:13:20: error: expected ')' before '!' token
13 | while ((r =x % y)!> 0){
| ~ ^
| )
|
s670872801 | p02256 | 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;
} | main.c: In function 'main':
main.c:13:11: error: expected ';' before 'while'
13 | r =x % y
| ^
| ;
14 | while (r!> 0){
| ~~~~~
|
s909299123 | p02256 | 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;
} | main.c: In function 'main':
main.c:14:11: error: expected ')' before '!' token
14 | while (r!> 0){
| ~ ^
| )
|
s125931812 | p02256 | 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;
} | main.c:4:1: error: expected identifier or '(' before '?' token
4 | ??
| ^
|
s671568608 | p02256 | 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... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s559702005 | p02256 | 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);
??
?????... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s292792074 | p02256 | 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);
??
?... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s500186998 | p02256 | 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;
?????... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s302185156 | p02256 | 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;
?????... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s042878913 | p02256 | 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;
?????... | main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s313758802 | p02256 | 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;
} | 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
|
s292505402 | p02256 | 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;
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s739490316 | p02256 | 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));
} | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s938139937 | p02256 | 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;
} | main.c: In function 'main':
main.c:15:15: error: expected ';' before 'return'
15 | printf(" ")
| ^
| ;
16 | return 0;
| ~~~~~~
|
s290248414 | p02256 | 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){
// "大きい値"を"小さい値"で割って余りを取得する。余りがゼロの場合、終了。
// そうでないなら、"余り"... | 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>
... |
s917000153 | p02256 | 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){
// "大きい値"を"小さい値"で割って余りを取得する。余りがゼロの場合、終了。
// そうでないなら、"余り"... | 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>
... |
s320916680 | p02256 | 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;
}
| 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 ... |
s168776944 | p02256 | 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);
}
| main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <studio.h>
| ^
|
s468425978 | p02256 | 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;
}
| 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
|
s978135305 | p02256 | 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);
}
| 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
|
s603515894 | p02256 | 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)
}
| 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){
| ~~~~~
|
s605069768 | p02256 | 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)
}
| main.c: In function 'main':
main.c:10:10: error: expected ';' before 'while'
10 | r=x%y
| ^
| ;
11 | while(r!=0){
| ~~~~~
|
s750161660 | p02256 | 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)
}
| main.c: In function 'main':
main.c:15:10: error: expected ';' before 'while'
15 | r=x%y
| ^
| ;
16 | while(r!=0){
| ~~~~~
|
s710285054 | p02256 | 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)
}
| main.c: In function 'main':
main.c:22:21: error: expected ';' before '}' token
22 | printf("%d\n",y)
| ^
| ;
23 |
24 | }
| ~
|
s327354036 | p02256 | 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;
}
| main.c: In function 'gcd':
main.c:5:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
5 | swap(x,y);
| ^~~~
|
s944309029 | p02256 | 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;
}
| main.c: In function 'gcd':
main.c:5:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
5 | swap(x,y);
| ^~~~
|
s372236064 | p02256 | 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;
}
| 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
|
s087192031 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s748503738 | p02256 | C | x,y = map(int, input().split())
if y < x:
x,y = y,x
while x%y:
x,y = y,x%y
print(y)
| 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())
... |
s228323759 | p02256 | 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 ==... | main.c: In function 'main':
main.c:34:19: error: expected ';' before 'return'
34 | printf("%d\n",v)
| ^
| ;
......
37 | return 0;
| ~~~~~~
|
s910476907 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s360957719 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s840909760 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s959037366 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s231701346 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s305579604 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s080946363 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s031202886 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s746666278 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s954058294 | p02256 | 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;
}
| main.c: In function 'main':
main.c:5:11: error: expected expression before ')' token
5 | while(){
| ^
|
s650551304 | p02256 | 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;... | 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
|
s328449485 | p02256 | 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;
... | main.c: In function 'main':
main.c:52:1: error: expected declaration or statement at end of input
52 | }
| ^
|
s265051807 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s048700599 | p02256 | 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;
}
| 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);
| ^
|
s999353670 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s580472772 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s215288841 | p02256 | 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)
{
... | 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... |
s191554719 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s991556779 | p02256 | 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;
}
| 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;
... |
s451512862 | p02256 | 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;
}
| 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){
... |
s352357888 | p02256 | 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;
}
| 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
|
s490680046 | p02256 | 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;
}
| 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' ... |
s888424250 | p02256 | 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;
}
| 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' ... |
s943667175 | p02256 | 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;
}
| 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' ... |
s499967503 | p02256 | 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;
}
| 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... |
s047587725 | p02256 | 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;
}
| 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... |
s943690095 | p02256 | 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;
}
| /usr/bin/ld: /tmp/ccq1Kktb.o: in function `main':
main.c:(.text+0x3c): undefined reference to `swap'
collect2: error: ld returned 1 exit status
|
s191865899 | p02256 | C | /home/student/s1250137/Algo/Ex01/ex1_B.c
| main.c:1:1: error: expected identifier or '(' before '/' token
1 | /home/student/s1250137/Algo/Ex01/ex1_B.c
| ^
|
s767275978 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s607832544 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s802242065 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s566713694 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s888337567 | p02256 | 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;
}
| 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;
| ... |
s382233496 | p02256 | 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;
}
| 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;
| ... |
s283969338 | p02256 | 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;
}
| 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;
| ... |
s233133623 | p02256 | 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;
}
| main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s390173857 | p02256 | C | #include<stdio.h>
int main(void){
int x,y,z;
int a;
scanf("%d%d",&x,&y);
if(x<y){
z=x;
x=y;
y=z;
}
a=x%y;
while(a!=0){
x=y;
y=a;
a=x%y;
}
printf("%d\n",y);
return 0;
}
| main.c: In function 'main':
main.c:3:1: error: stray '\302' in program
3 | <U+00A0><U+00A0>int x,y,z;
| ^~~~~~~~
main.c:3:2: error: stray '\302' in program
3 | <U+00A0><U+00A0>int x,y,z;
| ^~~~~~~~
main.c:4:1: error: stray '\302' in program
4 | <U+00A0><U+00A0>int a;
| ^~~~~~~~
mai... |
s690683958 | p02256 | 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... | 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
|
s468240187 | p02256 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s330031607 | p02256 | 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;
}
| 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 func... |
s135751604 | p02256 | 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;
}
| 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
| ^
| ... |
s898410439 | p02256 | 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;
}
| 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
| ^
| ... |
s448617143 | p02256 | 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;
}
| main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
16 | z = x % y
| ^
| ;
17 | while (z != 0) {
| ~~~~~
|
s861744477 | p02256 | 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;
}
| main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
16 | z = x % y
| ^
| ;
17 | while (z != 0 ) {
| ~~~~~
|
s117434322 | p02256 | 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;
}
| main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
16 | z = x % y
| ^
| ;
17 | while(z != 0) {
| ~~~~~
|
s477833832 | p02256 | 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;
}
| main.c: In function 'main':
main.c:16:10: error: expected ';' before 'while'
16 | z = x % y
| ^
| ;
17 | while(z!=0) {
| ~~~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.