problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02396 | #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Cace " << i << " " << a << endl;
}
}
}
| #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Case " << i << ": " << a << endl;
}
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,503 | 175,504 | u547001778 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Cace " << i << ": " << a << endl;
}
}
}
| #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Case " << i << ": " << a << endl;
}
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,506 | 175,504 | u547001778 | cpp |
p02396 | #include <stdio.h>
int main(void) {
int x, i;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d:%d\n", i, x);
i++;
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x, i;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,507 | 175,508 | u632711632 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 0; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << "\n";
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1; i < 10001; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << "\n";
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 175,509 | 175,510 | u849667252 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1; i < 10001; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << " :" << x << "\n";
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1; i < 10001; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << "\n";
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,511 | 175,510 | u849667252 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int x;
for (int i = 0; i < 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int x;
for (int i = 0; i < 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i + 1 << ":"
<< " " << x << endl;
}
}
| [
"expression.operation.binary.add"
] | 175,517 | 175,516 | u848141104 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "case" << ' ' << i << ':' << ' ' << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case" << ' ' << i << ':' << ' ' << x << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,518 | 175,519 | u486874156 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0, e = 0;
for (int i = 1; i <= 1000; i++) {
cin >> a;
if (a == 0) {
break;
}
cout << "Case" << ' ' << i + 1 << ": " << a << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0, e = 0;
for (int i = 1; i <= 10000; i++) {
cin >> a;
if (a == 0) {
break;
}
cout << "Case" << ' ' << i << ": " << a << endl;
}
return 0;
}
| [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 175,521 | 175,522 | u108180792 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0, e = 0;
for (int i = 1; i <= 10000; i++) {
cin >> a;
if (a == 0) {
break;
}
cout << "Case" << ' ' << i + 1 << ": " << a << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, c = 0, d = 0, e = 0;
for (int i = 1; i <= 10000; i++) {
cin >> a;
if (a == 0) {
break;
}
cout << "Case" << ' ' << i << ": " << a << endl;
}
return 0;
}
| [
"expression.operation.binary.remove"
] | 175,523 | 175,522 | u108180792 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case" << ' ' << i << ':' << x << endl;
i++;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case" << ' ' << i << ": " << x << endl;
i++;
}
}
| [
"variable_declaration.value.change"
] | 175,527 | 175,528 | u707206451 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case" << ' ' << i << ':' << x << endl;
i++;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case" << ' ' << i << ": " << x << endl;
i++;
}
}
| [] | 175,529 | 175,528 | u707206451 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i++ << ": " << x << endl;
}
}
| [] | 175,530 | 175,531 | u506686860 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 0;
while (true) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "case"
<< " " << i << ":"
<< " " << x << endl;
i = i + 1;
}
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
while (true) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i = i + 1;
}
}
| [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,532 | 175,533 | u560213033 | cpp |
p02396 | #include <stdio.h>
int main(void) {
int i, x;
for (i = 0; i++;) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i, x;
for (i = 1; i++;) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i - 1, x);
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 175,535 | 175,536 | u800408401 | cpp |
p02396 | #include <cstdio>
#include <iostream>
int main() {
int buf, count;
count = 0;
while (buf != 0) {
scanf("%d", &buf);
if (buf == 0)
break;
count++;
printf("Case %d: %d\n", count, buf);
}
return 0;
}
| #include <cstdio>
#include <iostream>
int main() {
int buf, count;
count = 0;
while (true) {
scanf("%d", &buf);
if (buf == 0)
break;
count++;
printf("Case %d: %d\n", count, buf);
}
return 0;
}
| [
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 175,537 | 175,538 | u647196518 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x[10000], i, j;
for (i = 1; i <= 10000; i++) {
cin >> x[i];
if (x[i] == 0) {
break;
}
}
for (j = 1; j <= 10000; j++) {
if (x[j] == 0) {
break;
}
cout << "Case " << j << ":" << x[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x[10000], i, j;
for (i = 1; i <= 10000; i++) {
cin >> x[i];
if (x[i] == 0) {
break;
}
}
for (j = 1; j <= 10000; j++) {
if (x[j] == 0) {
break;
}
cout << "Case " << j << ": " << x[j] << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,541 | 175,542 | u332021134 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x = 0;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Case " << x << ": " << a << endl;
}
x++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x = 1;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
} else {
cout << "Case " << x << ": " << a << endl;
}
x++;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change"
] | 175,543 | 175,544 | u160560403 | cpp |
p02396 | #include <stdio.h>
int main(void) {
int x;
int y = 0;
while (1) {
scanf("%d\n", &x);
if (x == 0)
break;
printf("Case %d: %d", ++y, x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x;
int y = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", ++y, x);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 175,547 | 175,548 | u258445230 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 0;
while (true) {
int x;
cin >> x;
if (x == 0)
break;
++i;
cout << "Case" << i << ": " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 0;
while (true) {
int x;
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,549 | 175,550 | u276663438 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 1;
int n;
while (true) {
cin >> n;
if (n == 0)
break;
cout << "case" << i << ":" << n << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
int n;
while (true) {
cin >> n;
if (n == 0)
break;
cout << "Case " << i << ": " << n << endl;
i++;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,551 | 175,552 | u332655195 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
for (int i = 1; i <= 10000; i++) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << " " << x << endl;
}
}
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
for (int i = 1; i <= 10000; i++) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
}
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,553 | 175,554 | u722421339 | cpp |
p02396 | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int i;
i == 1;
while (1) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
i++;
}
}
return 0;
}
| #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int i;
i = 1;
while (1) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
i++;
}
}
return 0;
}
| [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 175,555 | 175,556 | u138224929 | cpp |
p02396 | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int i;
i == 1;
while (1) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
i++;
}
}
return 0;
}
| #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int i;
i = 1;
while (1) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
i++;
}
}
return 0;
}
| [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 175,557 | 175,556 | u138224929 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << n << ":" << x << endl;
n++;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << n << ": " << x << endl;
n++;
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,561 | 175,562 | u635106154 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
int test[1000];
for (int i = 0; i < 1000; i++) {
cin >> test[i];
if (test[i] == 0) {
break;
}
cout << "Case"
<< " " << i << " : " << test[i] << std::endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int test[10000];
for (int i = 1; i <= 10000; i++) {
cin >> test[i];
if (test[i] == 0) {
break;
}
cout << "Case"
<< " " << i << ": " << test[i] << std::endl;
}
}
| [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"literal.string.change",
"io.output.change"
] | 175,563 | 175,564 | u237800109 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
int test[10000];
for (int i = 0; i < 10000; i++) {
cin >> test[i];
if (test[i] == 0) {
break;
}
cout << "Case"
<< " " << i << " : " << test[i] << std::endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int test[10000];
for (int i = 1; i <= 10000; i++) {
cin >> test[i];
if (test[i] == 0) {
break;
}
cout << "Case"
<< " " << i << ": " << test[i] << std::endl;
}
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 175,565 | 175,564 | u237800109 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int in;
int i = 1;
while (true) {
cin >> in;
if (in == 0) {
break;
}
cout << "Case " << i << ':' << in << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int in;
int i = 1;
while (true) {
cin >> in;
if (in == 0) {
break;
}
cout << "Case " << i << ": " << in << endl;
i++;
}
return 0;
}
| [] | 175,570 | 175,571 | u220050324 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int in;
int i = 1;
while (true) {
cin >> in;
if (in == 0) {
break;
}
cout << "Case " << i << ': ' << in << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int in;
int i = 1;
while (true) {
cin >> in;
if (in == 0) {
break;
}
cout << "Case " << i << ": " << in << endl;
i++;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,572 | 175,571 | u220050324 | cpp |
p02396 |
#include <cstdio>
int main() {
int x;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x != 0) {
printf("case %d: %d\n", i, x);
} else {
break;
}
}
return 0;
}
|
#include <cstdio>
int main() {
int x;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d: %d\n", i, x);
} else {
break;
}
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 175,575 | 175,576 | u228144846 | cpp |
p02396 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int i;
i = 0;
int x;
while (1) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i += 1;
}
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int i;
i = 1;
int x;
while (1) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i += 1;
}
}
| [
"literal.number.change",
"assignment.value.change"
] | 175,577 | 175,578 | u139348161 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i = 1;
while (1) {
int x;
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", x, i);
i += 1;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i = 1;
while (1) {
int x;
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i += 1;
}
return 0;
}
| [
"call.arguments.change",
"call.arguments.add"
] | 175,579 | 175,580 | u363745648 | cpp |
p02396 | #include <stdio.h>
int main() {
int count = 0;
while (1) {
int a = 0;
scanf("%d", &a);
if (a == 0) {
break;
}
printf("Case %d: %d\n", count, a);
}
return 0;
}
| #include <stdio.h>
int main() {
int count = 1;
while (1) {
int a = 0;
scanf("%d", &a);
if (a == 0) {
break;
}
printf("Case %d: %d\n", count++, a);
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"call.arguments.change"
] | 175,581 | 175,582 | u126627194 | cpp |
p02396 | #include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
if (x == 0) {
break;
}
if (x > 1 && 10000 < x) {
break;
}
printf("Case%d;%d\n", i, x);
}
}
| #include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
if (x == 0) {
break;
}
if (x > 1 && 10000 < x) {
break;
}
printf("Case %d: %d\n", i, x);
}
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,583 | 175,584 | u897258339 | cpp |
p02396 | #include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
if (x == 0) {
break;
}
if (x > 1 && 10000 < x) {
break;
}
printf("Case %d;%d\n", i, x);
}
}
| #include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%5d", &x);
if (x == 0) {
break;
}
if (x > 1 && 10000 < x) {
break;
}
printf("Case %d: %d\n", i, x);
}
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,585 | 175,584 | u897258339 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case" << i << ":" << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,587 | 175,588 | u024801339 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,589 | 175,588 | u024801339 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << " :" << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,590 | 175,588 | u024801339 | cpp |
p02396 |
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
cin >> x;
while (x != 0) {
cout << "Case " << i << ": " << x;
i++;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
cin >> x;
while (x != 0) {
cout << "Case " << i << ": " << x << endl;
i++;
cin >> x;
}
return 0;
} | [
"io.output.newline.add"
] | 175,596 | 175,595 | u423758855 | cpp |
p02396 | #include <iostream>
int main() {
int i, x;
while (1) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int i = 1, x;
while (1) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << i << ": " << x << std::endl;
i++;
}
return 0;
} | [
"variable_declaration.value.change",
"expression.unary.arithmetic.add"
] | 175,597 | 175,598 | u648595971 | cpp |
p02396 | #include <iostream>
using namespace std;
int a;
int b;
int main() {
for (b = 1; b == 0; b++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << b << ": " << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int a;
int b;
int main() {
for (b = 1; b > 0; b++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << b << ": " << a << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 175,599 | 175,600 | u346042277 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int n, i = 1;
while (cin >> n) {
cout << "Case " << i << ": " << n << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, i = 1;
while (cin >> n, n) {
cout << "Case " << i << ": " << n << endl;
i++;
}
return 0;
} | [
"control_flow.loop.condition.change"
] | 175,601 | 175,602 | u527975163 | cpp |
p02396 | #include <cstdio>
int main() {
int x = 1, i = 1;
while (true) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
i = i + 1;
}
return 0;
} | #include <cstdio>
int main() {
int x = 1, i = 1;
while (true) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i = i + 1;
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 175,603 | 175,604 | u864253534 | cpp |
p02396 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int suuji;
int i = 1;
while (true) {
cin >> suuji;
if (suuji == 0) {
break;
}
cout << "Case " << i << ": " << suuji;
i++;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int suuji;
int i = 1;
while (true) {
cin >> suuji;
if (suuji == 0)
break;
cout << "Case " << i << ": " << suuji << endl;
i++;
}
return 0;
} | [
"io.output.newline.add"
] | 175,605 | 175,606 | u599926280 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 1, x = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x = 0;
for (;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [
"control_flow.loop.for.update.change"
] | 175,609 | 175,610 | u177698314 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 0, in;
while (cin >> in) {
if (in == 0)
break;
cout << "case " << i << ": " << in << endl;
++i;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, in;
while (cin >> in) {
if (in == 0)
break;
cout << "Case " << i << ": " << in << endl;
++i;
}
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,611 | 175,612 | u941914960 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 1, in;
while (cin >> in) {
if (in == 0)
break;
cout << "case " << i << ": " << in << endl;
++i;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, in;
while (cin >> in) {
if (in == 0)
break;
cout << "Case " << i << ": " << in << endl;
++i;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,613 | 175,612 | u941914960 | cpp |
p02396 | // Print Test Cases
#include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
i++;
}
} | // Print Test Cases
#include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [
"io.output.newline.add"
] | 175,615 | 175,616 | u580310523 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 0; cin >> x, x; i++) {
cout << "Case " << i << ": " << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; cin >> x, x; i++) {
cout << "Case " << i << ": " << x << endl;
}
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 175,617 | 175,618 | u879745691 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while ((x > 0) && (y > 0)) {
if (x > y) {
cout << y << " " << x << endl;
} else
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while ((x > 0) || (y > 0)) {
if (x > y) {
cout << y << " " << x << endl;
} else
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
}
| [
"misc.opposites",
"control_flow.loop.condition.change"
] | 176,983 | 176,984 | u363467163 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y, temp;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
return 0;
}
if (x > y) {
temp = x;
x = y;
y = temp;
}
cout << x << y << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y, temp;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
return 0;
}
if (x > y) {
temp = x;
x = y;
y = temp;
}
cout << x << " " << y << endl;
}
}
| [
"io.output.change"
] | 176,985 | 176,986 | u829576116 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x > 0 && y > 0) {
if (x <= y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
cin >> x >> y;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x > 0 || y > 0) {
if (x <= y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
cin >> x >> y;
}
return 0;
}
| [
"misc.opposites",
"control_flow.loop.condition.change"
] | 176,987 | 176,988 | u749884951 | cpp |
p02397 | #include <iostream>
using namespace std;
#define for_(i, a, b) for (int i = (a); i < (b); i++)
#define rfor_(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for_(i, 0, (n))
#define rrep(i, n) rfor_(i, 0, (n))
int n, m;
int main() {
cin.tie(0);
while (cin >> n >> m, n || m)
cout << (n < m ? n :... | #include <iostream>
using namespace std;
#define for_(i, a, b) for (int i = (a); i < (b); i++)
#define rfor_(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for_(i, 0, (n))
#define rrep(i, n) rfor_(i, 0, (n))
int n, m;
int main() {
cin.tie(0);
while (cin >> n >> m, n || m)
cout << (n < m ? n :... | [
"io.output.change"
] | 176,989 | 176,990 | u851513436 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int x, y;
for (int i = 0; i <= 3000; i++) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x >= y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << y << endl;
}
}
retur... | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int x, y;
for (int i = 0; i <= 3000; i++) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x >= y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << " " << y << endl;
}
}
... | [
"io.output.change"
] | 176,991 | 176,992 | u849721539 | cpp |
p02397 | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C&lang=jp
#include <iostream>
using namespace std;
int main() {
int x[3000];
int y[3000];
int exchange; // xとyを交換するときに一時的に使う変数
for (int i = 1; i <= 3000; i = i + 1) {
cin >> x[i] >> y[i];
if (x[i] == 0) {
if (y[i] == 0) {
... | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C&lang=jp
#include <iostream>
using namespace std;
int main() {
int x[3000];
int y[3000];
int exchange; // xとyを交換するときに一時的に使う変数
for (int i = 1; i <= 3000; i = i + 1) {
cin >> x[i] >> y[i];
if (x[i] == 0) {
if (y[i] == 0) {
... | [
"io.output.change"
] | 176,993 | 176,994 | u053643559 | cpp |
p02397 | #include <iostream>
int main(int argc, char **argv) {
int a = 0;
int b = 0;
while (true) {
std::cin >> a >> b;
if (a == b) {
break;
}
if (a < b) {
std::cout << a << " " << b << std::endl;
} else {
std::cout << b << " " << a << std::endl;
}
}
return 0;
}
| #include <iostream>
int main(int argc, char **argv) {
int a = 0;
int b = 0;
while (true) {
std::cin >> a >> b;
if (a == 0 && b == 0) {
break;
}
if (a < b) {
std::cout << a << " " << b << std::endl;
} else {
std::cout << b << " " << a << std::endl;
}
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 176,995 | 176,996 | u126627194 | cpp |
p02397 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, tmp;
int len = 0;
vector<int> data;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
len += 2;
if (b < a) {
tmp = a;
b = a;
a = tmp;
}
data.push_back(a);
data.push_back(b... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, tmp;
int len = 0;
vector<int> data;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
len += 2;
if (b < a) {
tmp = b;
b = a;
a = tmp;
}
data.push_back(a);
data.push_back(b... | [
"assignment.value.change",
"identifier.change"
] | 176,997 | 176,998 | u928491417 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == 0 && y == 0)
return 0;
if (x > y)
swap(x, y);
cout << x << ' ' << y;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == 0 && y == 0)
return 0;
if (x > y)
swap(x, y);
cout << x << ' ' << y << endl;
}
}
| [
"io.output.newline.add"
] | 176,999 | 177,000 | u915296224 | cpp |
p02397 | #include <stdio.h>
int main() {
int a, b;
while (1) {
scanf("%d %d", &a, &b);
if (!a && !b)
break;
if (a > b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
}
return 0;
}
| #include <stdio.h>
int main() {
int a, b;
while (1) {
scanf("%d %d", &a, &b);
if ((!a) && (!b))
break;
if (a < b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
}
return 0;
}
| [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 177,001 | 177,002 | u331071112 | cpp |
p02397 | #include <iostream>
int main() {
int x, y;
for (std::cin >> x >> y; x != 0 && y != 0; std::cin >> x >> y) {
if (x < y) {
std::cout << x << ' ' << y << std::endl;
} else {
std::cout << y << ' ' << x << std::endl;
}
}
}
| #include <iostream>
int main() {
int x, y;
for (std::cin >> x >> y; x != 0 || y != 0; std::cin >> x >> y) {
if (x < y) {
std::cout << x << ' ' << y << std::endl;
} else {
std::cout << y << ' ' << x << std::endl;
}
}
}
| [
"misc.opposites",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 177,003 | 177,004 | u529602958 | cpp |
p02397 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#undef int
#define mk make_pair
#define pb push_back
typedef pair<int, int> pii;
const int mod = 1000000007;
const int INF = 1000000009;
signed main() {
int x, y;
while (cin >> x >> y, x, y) {
printf("%d %d\n", min(x, y), max(x, y));
}
re... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#undef int
#define mk make_pair
#define pb push_back
typedef pair<int, int> pii;
const int mod = 1000000007;
const int INF = 1000000009;
signed main() {
int x, y;
while (cin >> x >> y, x || y) {
printf("%d %d\n", min(x, y), max(x, y));
}
... | [
"control_flow.loop.condition.change"
] | 177,005 | 177,006 | u360943149 | cpp |
p02397 | #include <stdio.h>
using namespace std;
int main() {
int x, y;
for (int i = 1;; i++) {
scanf("%d %d", &x, &y);
if (x == 0)
break;
if (x > y) {
printf("%d %d\n", y, x);
} else {
printf("%d %d\n", x, y);
}
}
}
| #include <stdio.h>
using namespace std;
int main() {
int x, y;
for (int i = 1;; i++) {
scanf("%d %d", &x, &y);
if (x == 0 and y == 0)
break;
if (x > y) {
printf("%d %d\n", y, x);
} else {
printf("%d %d\n", x, y);
}
}
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 177,007 | 177,008 | u972675635 | cpp |
p02397 | #include <cstdio>
int main() {
int x, y;
while (1) {
scanf("%d %d", &x, &y);
if (x * x + y * y == 0)
break;
else if (x <= y)
printf("%d < %d\n", x, y);
else
printf("%d < %d\n", y, x);
}
return 0;
}
| #include <cstdio>
int main() {
int x, y;
while (1) {
scanf("%d %d", &x, &y);
if (x * x + y * y == 0)
break;
else if (x <= y)
printf("%d %d\n", x, y);
else
printf("%d %d\n", y, x);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 177,009 | 177,010 | u423353834 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x != 0 && y != 0) {
if (x <= y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
} else {
return 0;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x != 0 || y != 0) {
if (x <= y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
} else {
return 0;
}
}
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 177,011 | 177,012 | u279759025 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x >> y;
while (x || y) {
if (x > y) {
int tmp = x;
x = y;
y = tmp;
}
cout << x << " " << y;
cin >> x >> y;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x >> y;
while (x || y) {
if (x > y) {
int tmp = x;
x = y;
y = tmp;
}
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
}
| [
"io.output.newline.add"
] | 177,013 | 177,014 | u717906793 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (!(x == 0 && y == 0)) {
if (x > y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
cin >> x >> y;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (!(x == 0 && y == 0)) {
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
cin >> x >> y;
}
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,015 | 177,016 | u854483494 | cpp |
p02397 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int x, y;
vector<string> v;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
else if (x > y)
v.push_back(to_string(y) + " " + to_string(x));
else
v.push_back(to_string(y) + " " + ... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int x, y;
vector<string> v;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
else if (x > y)
v.push_back(to_string(y) + " " + to_string(x));
else
v.push_back(to_string(x) + " " + ... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 177,017 | 177,018 | u072016202 | cpp |
p02397 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 || y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
}
if (x < y) {
cout << x << " " << y << endl;
}
if (x == y) {
cout << x << " " << y <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
}
if (x < y) {
cout << x << " " << y << endl;
}
if (x == y) {
cout << x << " " << y <<... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 177,019 | 177,020 | u680147730 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y)
;
{ swap(x, y); }
cout << x << " " << y << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
}
}
| [] | 177,021 | 177,022 | u777425674 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y)
;
{ swap(x, y); }
cout << x << " " << y << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
}
}
| [] | 177,021 | 177,023 | u777425674 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
//変数の宣言
int x, y;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
//各Caseの値を入力
cin >> x >> y;
// if文を使用してxの値とyの値が「 0 」なら終了の条件を考える
if (x == 0 && y == 0) {
break;
}
// else if: ifを満たしてない・成立してない条件下で条件を考える
e... | #include <iostream>
using namespace std;
int main(void) {
//変数の宣言
int x, y;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
//各Caseの値を入力
cin >> x >> y;
// if文を使用してxの値とyの値が「 0 」なら終了の条件を考える
if (x == 0 && y == 0) {
break;
}
// else if: ifを満たしてない・成立してない条件下で条件を考える
e... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,024 | 177,025 | u046354912 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
//変数の宣言
int x, y;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
//各Caseの値を入力
cin >> x >> y;
// if文を使用してxの値とyの値が「 0 」なら終了の条件を考える
if (x == 0 && y == 0) {
break;
}
// else if: ifを満たしてない・成立してない条件下で条件を考える
e... | #include <iostream>
using namespace std;
int main(void) {
//変数の宣言
int x, y;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
//各Caseの値を入力
cin >> x >> y;
// if文を使用してxの値とyの値が「 0 」なら終了の条件を考える
if (x == 0 && y == 0) {
break;
}
// else if: ifを満たしてない・成立してない条件下で条件を考える
e... | [
"identifier.change",
"io.output.change"
] | 177,024 | 177,026 | u046354912 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
}
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
}
| [
"control_flow.loop.condition.change",
"identifier.change",
"io.output.change"
] | 177,036 | 177,037 | u685769121 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
}
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
}
| [
"control_flow.loop.condition.change"
] | 177,038 | 177,037 | u685769121 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
}
if (x <= y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
}
| [
"control_flow.loop.condition.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,039 | 177,037 | u685769121 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
while (1) {
cin >> x;
cin >> y;
if (x == 0 && y == 0)
break;
}
if (x < y) {
cout << x;
cout << " ";
cout << y;
} else {
cout << y;
cout << " ";
cout << x;
}
cout << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y;
while (1) {
{
cin >> x;
cin >> y;
if (x == 0 && y == 0)
break;
}
if (x < y) {
cout << x;
cout << " ";
cout << y;
} else {
cout << y;
cout << " ";
cout << x;
}
cou... | [] | 177,041 | 177,042 | u577978368 | cpp |
p02397 | #include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b;
while (cin >> a >> b and a and b) {
cout << min(a, b) << ' ' << max(a, b) << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b;
while (cin >> a >> b and (a or b)) {
cout << min(a, b) << ' ' << max(a, b) << endl;
}
}
| [
"control_flow.loop.condition.change",
"identifier.change"
] | 177,043 | 177,044 | u534831970 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x >= y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,045 | 177,046 | u306715188 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 & y == 0)
break;
if (x > y)
cout << y << " " << x << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 & y == 0)
break;
if (x >= y)
cout << y << " " << x << endl;
else
cout << x << " " << y << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 177,047 | 177,048 | u584028891 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
return 0;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| [] | 177,051 | 177,052 | u776248715 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
while (true) {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0)
break;
else if (x > y) {
cout << y << " " << y << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
while (true) {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0)
break;
else if (x > y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| [
"identifier.change",
"io.output.change"
] | 177,053 | 177,054 | u518072348 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int n = 1;
int x, y;
while (n == 1) {
cin >> x >> y;
if (x == 0 || y == 0)
break;
if (x >= y)
cout << y << " " << x << endl;
if (y > x)
cout << x << " " << y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n = 1;
int x, y;
while (n == 1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x >= y)
cout << y << " " << x << endl;
if (y > x)
cout << x << " " << y << endl;
}
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 177,059 | 177,060 | u606517027 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
}
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| [] | 177,061 | 177,062 | u804804606 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
}
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| [] | 177,064 | 177,062 | u804804606 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
return 0;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
}
| [] | 177,066 | 177,062 | u804804606 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == y == 0)
break;
if (x >= y)
cout << y << " " << x << endl;
else
cout << x << " " << y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 & y == 0)
break;
if (x >= y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 177,068 | 177,069 | u983984357 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == y == 0)
break;
if (x >= y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 & y == 0)
break;
if (x >= y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 177,072 | 177,069 | u983984357 | cpp |
p02397 | #include <bits/stdc++.h>
using namespace std;
int main() {
while (true) {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0)
break;
printf("%d %d", min(x, y), max(x, y));
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
while (true) {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0)
break;
printf("%d %d\n", min(x, y), max(x, y));
}
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 177,073 | 177,074 | u252054808 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
while (1) {
if (x == 0 && y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
}
if (y > x) {
cout << x << " " << y << endl;
}
cin >> x >> y;
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
while (1) {
if (x == 0 && y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
cin >> x >> y;
}
return 0;
}
| [] | 177,075 | 177,076 | u627562958 | cpp |
p02397 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
} // Your code here!
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
} // Your code here!
}
| [
"control_flow.branch.else.add"
] | 177,078 | 177,079 | u078233585 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b) {
cout << a << " " << b << endl;
} else {
cout << b << " " << a << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b) {
cout << b << " " << a << endl;
} else {
cout << a << " " << b << endl;
}
}
return 0;
}
| [
"control_flow.branch.else.add"
] | 177,080 | 177,081 | u886726907 | cpp |
p02397 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %D", &a, &b);
while (a != 0 || b != 0) {
if (a > b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
scanf("%d %D", &a, &b);
}
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 || b != 0) {
if (a < b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
scanf("%d %d", &a, &b);
}
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,085 | 177,086 | u994696641 | cpp |
p02397 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %D", &a, &b);
while (a != 0 || b != 0) {
if (a < b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
scanf("%d %D", &a, &b);
}
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 || b != 0) {
if (a < b)
printf("%d %d\n", a, b);
else
printf("%d %d\n", b, a);
scanf("%d %d", &a, &b);
}
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 177,087 | 177,086 | u994696641 | cpp |
p02397 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x != 0 && y != 0) {
if (x <= y) {
cout << x << " " << y << endl;
} else if (x > y) {
cout << y << " " << x << endl;
}
cin >> x >> y;
};
return 0;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while ((x != 0) || (y != 0)) {
if (x <= y) {
cout << x << " " << y << endl;
} else if (x > y) {
cout << y << " " << x << endl;
}
cin >> x >> y;
};
return 0;
}
| [
"control_flow.loop.condition.change"
] | 177,088 | 177,089 | u024639066 | cpp |
p02397 | #include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 1; i <= 3000; i++) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
else if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
return 0;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 1; i <= 3000; i++) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
else if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
}
return 0;
}
| [] | 177,090 | 177,091 | u469023922 | cpp |
p02397 | #include <bits/stdc++.h>
#define int long long
#define double long double
#define INF 1e18
#define MOD 1000000007
using namespace std;
signed main() {
int a, b;
while (cin >> a >> b, a || b) {
swap(a, b);
cout << a << " " << b << endl;
}
}
| #include <bits/stdc++.h>
#define int long long
#define double long double
#define INF 1e18
#define MOD 1000000007
using namespace std;
signed main() {
int a, b;
while (cin >> a >> b, a || b) {
if (a > b)
swap(a, b);
cout << a << " " << b << endl;
}
}
| [
"control_flow.branch.if.add"
] | 177,092 | 177,093 | u491451674 | cpp |
p02397 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0;; i++) {
int x, y;
cin >> x >> y;
if (x == 0 || y == 0) {
break;
} else if (x < y) {
cout << x << ' ' << y << endl;
} else {
cout << y << ' ' << x << endl;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0;; i++) {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x < y) {
cout << x << ' ' << y << endl;
} else {
cout << y << ' ' << x << endl;
}
}
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 177,094 | 177,095 | u850248593 | cpp |
p02397 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x || y) {
cout << min(x, y) << " " << max(x, y);
}
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x || y) {
cout << min(x, y) << " " << max(x, y) << endl;
}
} | [
"io.output.newline.add"
] | 177,098 | 177,099 | u017200929 | cpp |
p02397 | #include <iostream>
int main(int argc, char *argv[]) {
int x, y, t;
while (std::cin >> x >> y) {
if (x == 0 && y == 0)
break;
if (x > y) {
t = x;
x = y;
x = t;
}
std::cout << x << " " << y << std::endl;
}
return 0;
} | #include <iostream>
int main(int argc, char *argv[]) {
int x, y, t;
while (std::cin >> x >> y) {
if (x == 0 && y == 0)
break;
if (x > y) {
t = x;
x = y;
y = t;
}
std::cout << x << " " << y << std::endl;
}
return 0;
} | [
"assignment.variable.change",
"identifier.change"
] | 177,100 | 177,101 | u132849699 | cpp |
p02397 | #include <iostream>
using namespace std;
bool data_end(int x, int y);
void print_asc(int x, int y);
int main() {
int x, y;
while (cin >> x >> y && data_end(x, y)) {
print_asc(x, y);
}
return 0;
}
bool data_end(int x, int y) {
if (x == 0 && y == 0)
return true;
return false;
}
void print_asc(int x... | #include <iostream>
using namespace std;
bool data_end(int x, int y);
void print_asc(int x, int y);
int main() {
int x, y;
while (cin >> x >> y && !data_end(x, y)) {
print_asc(x, y);
}
return 0;
}
bool data_end(int x, int y) {
if (x == 0 && y == 0)
return true;
return false;
}
void print_asc(int ... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 177,102 | 177,103 | u076937067 | cpp |
p02397 | #include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y, x & y) {
if (x > y)
std::cout << y << " " << x << '\n';
else
std::cout << x << " " << y << '\n';
}
return 0;
} | #include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y, (x | y)) {
if (x > y)
std::cout << y << " " << x << '\n';
else
std::cout << x << " " << y << '\n';
}
return 0;
} | [
"control_flow.loop.condition.change"
] | 177,105 | 177,106 | u076937067 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.